oracle建立使用者賦予許可權,刪除許可權
阿新 • • 發佈:2018-11-27
--刪除使用者及及使用者下的所有資料 drop user xxx cascade; --建立使用者賦予密碼 create user xxx identified by 1234; --賦予許可權 grant dba to xxx; --刪除許可權 revoke dba from xxx; --賦予使用者登入資料庫的許可權 grant create session to xxx; --授予使用者操作表的許可權 grant unlimited tablespace to xxx; grant create tablespace to xxx; grant alter tablespace toxxx; grant drop tablespace to xxx; grant manage tablespace to xxx; --撤銷使用者操作表空間的許可權 revoke unlimited tablespace from xxx; revoke create tablespace from xxx; revoke alter tablespace from xxx; revoke drop tablespace from xxx; revoke manage tablespace from xxx; grant create session to zhangsan;--授予zhangsan使用者建立session的許可權,即登陸許可權grant unlimited session to zhangsan;--授予zhangsan使用者使用表空間的許可權 grant create table to zhangsan;--授予建立表的許可權 grant drop table to zhangsan;--授予刪除表的許可權 grant insert table to zhangsan;--插入表的許可權 grant update table to zhangsan;--修改表的許可權 grant select on tablename to zhangsan;--授予zhangsan使用者檢視指定表的許可權 grant dropon tablename to zhangsan--授予刪除表的許可權 grant insert on tablename to zhangsan;--授予插入的許可權 grant update on tablename to zhangsan;--授予修改表的許可權
select * from user_sys_privs;--檢視當前使用者所有許可權 select * from user_tab_privs;--檢視所用使用者對錶的許可權 select * from user_sys_privs;--檢視當前使用者所有許可權 select * from user_tab_privs;--檢視所用使用者對錶的許可權