创建用户
打开命令提示框输入以下内容
1.输入:sqlplus /nolog
//进入oralce控制台
2.输入:conn /as sysdba
//以管理员权限登录
3.输入:create user abc identified by 123456;
//创建用户名adc密码123456
4.输入:grant dba to abc;
//授予DBA权限
表空间
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
create temporary tablespace user_temp tempfile 'C:\Software\oracle\product\12.2.0\dbhome_1\oradata\user_temp.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local;
create tablespace user_data logging datafile 'C:\Software\oracle\product\12.2.0\dbhome_1\oradata\user_data.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local;
create user username identified by password default tablespace user_data temporary tablespace user_temp;
grant connect,resource,dba to username;
|
用户
1 2 3 4 5 6 7 8 9
| SQL> create user terwer identified by 123456;
用户已创建。
SQL> grant dba to terwer;
授权成功。
SQL>
|
实例
1 2 3 4 5 6 7 8 9
| create user kms15 identified by 123456 default tablespace user_data temporary tablespace user_temp; grant dba to kms15;
create user kms16 identified by 123456 default tablespace user_data temporary tablespace user_temp; grant dba to kms16;
|