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

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

  1. 採用sys or system / manager as sysdba; 鏈接數據庫
    mysql

  2. 建立普通用戶konglin: create user konglin identified by pwd_oracle;sql

    刪除用戶, drop user konglin;
    數據庫

  3. 授予用戶登陸數據庫的權限: grant create session to konglin;session

  4. 授予用戶操做表空間的權限:oracle


    grant unlimited tablespace to konglin;
    ide

    grant create tablespace to konglin;spa

    grant alter tablespace to konglin;.net

    grant drop tablespace to konglin;orm

    grant manage tablespace to konglin;get

  5. 授予用戶操做表的權限:


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

  6. 授予用戶操做視圖的權限:

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

  7. 授予用戶操做觸發器的權限:

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

  8. 授予用戶操做存儲過程的權限:

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

  9. 授予用戶操做序列的權限:

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

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

    grant create rollback segment to konglin;

    grant alter rollback segment to konglin;

    grant drop rollback segment to konglin;

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

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

    grant create public synonym to konglin;

    grant drop public synonym to konglin;

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

    grant create user to konglin;

    grant alter user to konglin;

    grant become user to konglin;

    grant drop user to konglin;

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

    grant create role to konglin;

  14. 授予用戶操做概要文件的權限

    grant create profile to konglin;

    grant alter profile to konglin;

    grant drop profile to konglin;

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

    grant select any dictionary to konglin;


轉自:http://hi.baidu.com/0316long/item/92eaf1c6862952d69744523b

相關文章
相關標籤/搜索