Oracle创建用户表空间
# 创建用户
打开命令提示框输入以下内容
1.输入:sqlplus /nolog
//进入oralce控制台
2.输入:conn /as sysdba
//以管理员权限登录
3.输入:create user abc identified by 123456;
//创建用户名adc密码123456
4.输入:grant dba to abc;
//授予DBA权限
# 表空间
/*分为四步 */
/*第1步:创建临时表空间 */
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;
/*第2步:创建数据表空间 */
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;
/*第3步:创建用户并指定表空间 */
create user username identified by password
default tablespace user_data
temporary tablespace user_temp;
/*第4步:给用户授予权限 */
grant connect,resource,dba to username;
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
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 用户
SQL> create user terwer identified by 123456;
用户已创建。
SQL> grant dba to terwer;
授权成功。
SQL>
1
2
3
4
5
6
7
8
9
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;
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
编辑 (opens new window)
上次更新: 2023/02/22, 13:47:25
- 01
- 解决css部分border被圆角切掉之后圆角的边框消失问题03-18
- 02
- 使用TypeScript开发一个自定义的Node-js前端开发脚手架03-08
- 03
- Github-Actions使用release-please实现自动发版03-06