採用sys or system / manager as sysdba; 鏈接數據庫。
mysql
建立普通用戶konglin: create user konglin identified by pwd_oracle;sql
刪除用戶, drop user konglin;
數據庫
授予用戶登陸數據庫的權限: grant create session to konglin;session
授予用戶操做表空間的權限: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
授予用戶操做表的權限:
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;
轉自:http://hi.baidu.com/0316long/item/92eaf1c6862952d69744523b