oracle 10g 資料庫系統學習筆記《安全管理》2008-09-26 20:20建立test使用者
利用企業管理工具建立test使用者的sql語法
create user "test" profile "default" identified by "******" account unlock
grant "connect" to "test"
利用sql*plus建立test使用者
sql> conn / as sysdba
sql> create user test identified by test1234
default tablespace ts1
grant connect to test;
授予test使用者查詢的許可權
sql> conn / as sysdba
sql> grant select on scott.dept to test;
sql> conn test/test1234
sql> select * from scott.dept;
更改test使用者的預設表空間為ts1
sql> conn / as sysdba
sql> alter user test default tablespace ts1;
修改test使用者的密碼
sql> conn / as sysdba
sql> alter user test identified by test1234;
鎖定test使用者帳號
sql> conn / as sysdba
sql> alter user test account lock;
物件授權(許可權下放)
sql> conn / as sysdba
sql> grant select on scott.dept to test with grant option;
授予test2使用者查詢scott.dept表的許可權
sql> conn test/test1234
sql> grant select on scott.dept to test2;
將scott.dept表的所有許可權授予test使用者
sql> conn / as sysdba
sql> grant all on scott.dept to test [with grant option];
授予test使用者執行ts1.trigger1觸發器的許可權
sql> conn / as sysdba
sql> grant execute on ts1.trigger1 to test;
系統授權,授予test使用者建立使用者的許可權
sql> conn / as sysdba
sql> grant create user to test;
建立使用者test2
sql> conn test/test134
sql> create user test2 identified by test2;
授權test刪除使用者的許可權
sql> conn / as sysdba
sql> grant drop user to test;
刪除使用者test2
sql> conn test/test1234
sql> drop user test2;
級聯系統授權方式
sql> conn / as sysdba
sql> grant create user to test with admin option;
sql> conn test/test134
sql> grant create user to test2;
撤銷使用者許可權
sql> conn / as sysdba
sql> revoke select on scott.dept from test;
建立角色
sql> conn / as sysdba
sql> create role myrole;
給角色授權
sql> grant select on scott.emp to myrole;
sql> grant select on scott.dept to myrole;
給使用者分配角色
sql> grant myrole to test;
sql> conn test/test1234
sql> select * from scott.emp;
ORACLE安全管理
cmd 進入dos頁面 鍵入命令 sqlplus as sysdba進入oracle 超級管理 1 用dba角色的使用者登陸,進行解鎖,先設定具體時間格式,以便檢視具體時間 sql alter session set nls date format yyyy mm dd hh24 mi ss ses...
Oracle安全管理
oracle的資料安全控制機制包括以下6個方面 1 使用者管理 2 許可權管理使用者許可權分類 將許可權授予使用者有兩種辦法 範例 為public組使用者收取create session許可權 grant create session to public 為使用者user2授予create sess...
oracle使用者安全管理
oracle使用者安全管理 http blog.csdn.net wyzxg archive 2008 04 09 2270974.aspx oracle的使用者安全 作為dba一定要保證資料庫的安全,備份是要時刻準備的,個人覺得資料庫就好比乙個座樓 要想最好的的保護樓,最好是整個樓沒有窗戶和門等入...