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;
總結
以上是生活随笔為你收集整理的Oracle如何创建普通用户并赋予权限的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 有道云笔记不需要通过开通会员的方式来去除
- 下一篇: Java如何计算hashcode值