1. 程式人生 > >Oracle 創建普通用戶,並賦予權限

Oracle 創建普通用戶,並賦予權限

oracle 創建 普通用戶

Oracle 創建普通用戶,並賦予權限


1) 采用sys or system / manager as sysdba; 連接數據庫。


2) 創建普通用戶peng: create user peng identified by pwd_oracle;

刪除用戶, drop user peng;


3) 授予用戶登錄數據庫的權限: grant create session to peng;


4) 授予用戶操作表空間的權限:

grant unlimited tablespace to peng;

grant create tablespace to peng;

grant alter tablespace to peng;

grant drop tablespace to peng;

grant manage tablespace to peng;


5) 授予用戶操作表的權限:

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


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

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


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

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


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

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


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

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


10) 授予用戶回退段權限:

grant create rollback segment to peng;

grant alter rollback segment to peng;

grant drop rollback segment to peng;


11) 授予用戶同義詞權限:

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

grant create public synonym to peng;

grant drop public synonym to peng;


12) 授予用戶關於用戶的權限:

grant create user to peng;

grant alter user to peng;

grant become user to peng;

grant drop user to peng;


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

grant create role to peng;


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

grant create profile to peng;

grant alter profile to peng;

grant drop profile to peng;


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

grant select any dictionary to peng;


本文出自 “一點點” 博客,請務必保留此出處http://pengai.blog.51cto.com/6326789/1976439

Oracle 創建普通用戶,並賦予權限