oracle 11g 怎样创建用户
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了oracle 11g 怎样创建用户相关的知识,希望对你有一定的参考价值。
oracle 11g 怎样创建用户
Oracle数据库创建用户
在dba权限的用户下执行命令"create user 用户名 identified by 密码;"
用这个命令创建的用户还不能登录,需要进行授权
赋予connect和resource权限
grant connect,resource to 用户名;
参考技术A 方法一: 用OEM ,先创建表空间,再创建用户方法二: 用 sqlplus 直接写SQL语句 参考技术B create user username identified by password本回答被提问者采纳
oracle创建用户
每个数据文件20G,共200G
create tablespace stg datafile ‘h:/ORA_TBS/stg01.dbf‘ size 20G extent management local segment space management auto; alter tablespace stg add datafile ‘h:/ORA_TBS/stg02.DBF‘ size 20G ; alter tablespace stg add datafile ‘h:/ORA_TBS/stg03.DBF‘ size 20G ; alter tablespace stg add datafile ‘h:/ORA_TBS/stg04.DBF‘ size 20G ; alter tablespace stg add datafile ‘h:/ORA_TBS/stg05.DBF‘ size 20G ; alter tablespace stg add datafile ‘h:/ORA_TBS/stg06.DBF‘ size 20G ; alter tablespace stg add datafile ‘h:/ORA_TBS/stg07.DBF‘ size 20G ; alter tablespace stg add datafile ‘h:/ORA_TBS/stg08.DBF‘ size 20G ; alter tablespace stg add datafile ‘h:/ORA_TBS/stg09.DBF‘ size 20G ; alter tablespace stg add datafile ‘h:/ORA_TBS/stg10.DBF‘ size 20G ; create user stg identified by stg default tablespace stg temporary tablespace TEMP; grant connect,resource to stg; grant dba to stg; --表空间用户授权 alter user stg quota unlimited on stg; grant create any table to stg; grant update any table to stg; grant select any table to stg; grant insert any table to stg; grant drop any table to stg; grant delete any table to stg; grant create any index to stg; grant drop any index to stg; grant comment any table to stg; grant execute any procedure to stg; --create or replace directory ORA_DMP as ‘/home/oracle/ORA_DMP‘; --grant write,read on directory ORA_DMP to jmbsuser; grant select on dba_jobs_running to stg; grant select on dba_jobs to stg; grant select on v_$session to stg; grant select on v_$process to stg; grant execute on dbms_lock to stg; grant execute on dbms_job to stg; grant alter session to stg; grant alter system to stg; grant select on DBA_DATA_FILES to stg; grant select on DBA_FREE_SPACE to stg; grant create any view to stg; grant drop any view to stg;
以上是关于oracle 11g 怎样创建用户的主要内容,如果未能解决你的问题,请参考以下文章