oracle為用戶賦予各種權限,僅作為一個普通的用戶


  • 采用sys or system / manager as sysdba; 連接數據庫。
  • 創建普通用戶konglin: create user konglin identified by pwd_oracle;

刪除用戶, drop user konglin;

  • 授予用戶登錄數據庫的權限: grant create session to konglin;
  • 授予用戶操作表空間的權限:

 

grant unlimited tablespace to konglin;

grant create tablespace to konglin;

grant alter tablespace to konglin;

grant drop tablespace to konglin;

grant manage tablespace to konglin;

  • 授予用戶操作表的權限:

 

grant create table to konglin; (包含有create index權限, alter table, drop table權限)

  • 授予用戶操作視圖的權限:

grant create view to konglin; (包含有alter view, drop view權限)

  • 授予用戶操作觸發器的權限:

grant create trigger to konglin; (包含有alter trigger, drop trigger權限)

  • 授予用戶操作存儲過程的權限:

grant create procedure to konglin;(包含有alter procedure, drop procedure 和function 以及 package權限)

  • 授予用戶操作序列的權限:

grant create sequence to konglin; (包含有創建、修改、刪除以及選擇序列)

  • 授予用戶回退段權限:

grant create rollback segment to konglin;

grant alter rollback segment to konglin;

grant drop rollback segment to konglin;

  • 授予用戶同義詞權限:

grant create synonym to konglin;(包含drop synonym權限)

grant create public synonym to konglin;

grant drop public synonym to konglin;

  • 授予用戶關於用戶的權限:

grant create user to konglin;

grant alter user to konglin;

grant become user to konglin;

grant drop user to konglin;

  • 授予用戶關於角色的權限:

grant create role to konglin;

  • 授予用戶操作概要文件的權限

grant create profile to konglin;

grant alter profile to konglin;

grant drop profile to konglin;

  • 允許從sys用戶所擁有的數據字典表中進行選擇

grant select any dictionary to konglin;

 

create user wzl identified by 123;

 

grant connect to wzl;

 

grant resource to wzl;

 

grant create table to wzl;

 

grant create view to wzl;

 

grant create trigger to wzl;

 

grant create procedure to wzl;

 

grant create sequence to wzl;

 

grant create rollback segment to wzl;

 

grant alter rollback segment to wzl;

 

grant drop rollback segment to wzl;

 

grant create synonym to wzl;

 

grant create public synonym to wzl;

 

grant drop public synonym to wzl;

 

grant create user to wzl;

 

grant alter user to wzl;

 

grant become user to wzl;

 

grant drop user to wzl;

 

grant create role to wzl;

 

grant create profile to wzl;

 

grant alter profile to wzl;

 

grant drop profile to wzl;

 

grant select any dictionary to wzl;

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM