Oracle中的使用者許可權操作

2021-09-02 12:57:00 字數 683 閱讀 2494

oracle中使用者許可權:

1 、 系統許可權

resource : 建立表、序列、過程、觸發器、索引 等。

connect:建立會話

create session:建立會話

unlimited tablespace:表空間,如果沒有表空間,即使有建立表的許可權,也不能正真的插入資料。

dba:系統管理員許可權。

2、普通使用者許可權(可以由系統管理員給使用者授權):

grant create session to ly;//授予ly使用者建立session的許可權,即登陸許可權

grant unlimited tablespace to ly;//授予ly使用者使用表空間的許可權

grant create table to ly;//授予建立表的許可權  c

grant insert table to ly;//插入表的許可權     

grant update table to ly;//修改表的許可權

grant all to public;    /* 授予所有的許可權 */

grante drop table to 

ly;//授予刪除表的許可權

3、普通使用者給普通使用者授權

許可權有 select on tablename  、 drop、insert、update、all等許可權,如果想取消許可權,則用revoke**許可權。

oracle使用者許可權操作(2)

1.建立使用者 create user 使用者名稱 identfied by 密碼 示例 sql create user sqy identified by sqy 使用者已建立。2.刪除使用者 drop user 使用者名稱 cascade 刪除使用者時,如果已經建立表,那麼就需要乙個引數,cas...

oracle中檢視使用者許可權

oracle sql 1.檢視所有使用者 select from dba users select from all users select from user users 2.檢視使用者或角色系統許可權 直接賦值給使用者或角色的系統許可權 select from dba sys privs se...

oracle中檢視使用者許可權

1.檢視所有使用者 select from dba users select from all users select from user users 2.檢視使用者或角色系統許可權 直接賦值給使用者或角色的系統許可權 select from dba sys privs select from u...