oracle DBA创建表空间,用户和授权

一.创建临时表空间,如果是小型数据库,也可以选择不用创建 此处的文件夹oracle/ts要提前创建好

create temporary tablespace TS_OA_temp 
tempfile 'c:\oracle\ts\OA_temp.dbf' 
size 100m 
autoextend on 
next 10m maxsize 20480m 
extent management local;

二. 创建表空间

create tablespace TS_OA 
logging 
datafile 'C:\oracle\ts\OA_data.dbf' 
size 100m 
autoextend on 
next 10m maxsize 20480m 
extent management local; 

三.创建用户

create user OA identified by root
default tablespace TS_OA
temporary tablespace TS_OA_temp;

四.授权

grant connect,resource,dba to OA; 

猜你喜欢

转载自blog.csdn.net/m0_38068812/article/details/82623197