cmd
sqlplus /as sysdba ;
1:创建临时表空间
create temporary tablespace sjztjpt_temp
tempfile ‘D:\app\chenxp\oradata\orcl\sjztjpt_temp.dbf‘
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
2:创建数据表空间
create tablespace sjztjpt_data
logging
datafile ‘D:\app\chenxp\oradata\orcl\sjztjpt_data.dbf‘
size 50m
autoextend on
next 50m maxsize 20480m
extent management local;
第3步:创建用户并指定表空间
create user sjztjpt identified by 123
default tablespace sjztjpt_data
temporary tablespace sjztjpt_temp;
第4步:给用户授予权限
grant dba to sjztjpt;
原文地址:https://www.cnblogs.com/2016-cxp/p/8654815.html
时间: 2024-10-28 16:44:45