0.查看oracle数据库的数据文件的目录:
select FILE_NAME FROM DBA_DATA_FILES;
1.创建表空间(注意修改目录位置,以上面查处结果一致)
建立表空间:
create tablespace DATA_DIDU_TBS datafile '+DATA/linkaged/datafile/data_didu_tbs01' size 30720m uniform size 64k;
增加表空间:
alter tablespace DATA_DIDU_TBS add datafile '+DATA/linkaged/datafile/data_didu_tbs02' size 30720m AUTOEXTEND OFF;
3.创建用户并赋予权限
create user hcloud identified by 密码 ACCOUNT UNLOCK DEFAULT TABLESPACE DATA_DIDU_TBS TEMPORARY TABLESPACE TEMP;
GRANT CREATE USER,DROP USER,ALTER USER,CREATE ANY VIEW,DROP ANY VIEW,EXP_FULL_DATABASE,IMP_FULL_DATABASE,DBA,CONNECT,RESOURCE,CREATE SESSION TO hcloud;
#表空间写权限(可能会修改,一般不需要):
ALTER USER HCLOUD QUOTA UNLIMITED ON DATA_DIDU_TBS;
网友评论