oracle中创建数据库用户,并授权

Posted lynnchen

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle中创建数据库用户,并授权相关的知识,希望对你有一定的参考价值。

--查看表空间文件路径
select * from dba_data_files where tablespace_name=$TABLESPACE

CREATE TABLESPACE usr_aa DATAFILE ‘+ORADATA/racdb/datafile/usr_aa.dbf‘ SIZE 50 M AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED NOLOGGING PERMANENT EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO ;

 

CREATE USER usr_aa IDENTIFIED BY password DEFAULT TABLESPACE usr_aa QUOTA UNLIMITED ON EDU_DATA QUOTA 5 M ON system ACCOUNT UNLOCK ;
grant dba to usr_aa with admin option;
grant connect , resource to usr_aa with admin option;
grant unlimited tablespace to usr_aa with admin option;
grant analyze any to usr_aa with admin option;
grant create table to usr_aa with admin option;
grant drop any table to usr_aa with admin option ;
grant alter any table to usr_aa with admin option ;
grant comment any table to usr_aa with admin option ;
grant select any table to usr_aa with admin option ;
grant insert any table to usr_aa with admin option ;
grant update any table to usr_aa with admin option ;
grant delete any table to usr_aa with admin option ;
grant select any sequence to usr_aa with admin option ;
grant execute any procedure to usr_aa with admin option ;
grant CREATE ANY JOB to usr_aa;

以上是关于oracle中创建数据库用户,并授权的主要内容,如果未能解决你的问题,请参考以下文章

如何在MySQL中创建数据库及添加用户并授权用户

怎么新建一个oracle用户?

oracle中创建一个用户,只能查看指定的视图,如何授权

oracle中创建用户角色权限表空间简单使用

怎么给oracle数据库创建用户,并赋权限

各位高手,请问,在oracle中创建的用户都分配哪些权限?一般分配哪些权限?