求助 !
在scott用戶下設定只讀事務是好使的。
但是在sys用戶下設定只讀事務不好使。
在sys用戶下設定只讀事務,在scott用戶下依舊能對表進行修改。
uj5u.com熱心網友回復:
說一下你的實驗程序。uj5u.com熱心網友回復:
sqlplus 開了兩個視窗,一個是scott,一個是sys as sysdba。在scott用戶下設定只讀事務,正常;
在sys用戶下設定只讀事務,不能體現只讀的作用;
在sys用戶下設定只讀事務,在scott操作,不能體現只讀的作用;
scott用戶下:
對一個名為emp2的表操作:
delete from emp2 where deptno='10';
commit;
然后測驗只讀事務:
set transaction read only;
delete from emp2 where deptno='10';
提示無法進行;
sys用戶下:
sys>set transation read only;
sys>delete from emp2 where deptno='10';
洗掉成功;
scott用戶下,sys用戶下:
sys>set transation read only;
scott>delete from emp2 where deptno='10';
scott>commit;
sys>select * from emp2;
結果為deptno=10的行被刪掉。
所以我的疑問為,只讀權限是不是只對普通用戶有效,對于sys無效。
uj5u.com熱心網友回復:
已經解決了,就是對普通用戶有效,對sys無效轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/10022.html
標籤:基礎和管理
