创建用户时,可以使用临时表空间组来提高对临时表空间的使用。
SQL> create temporary tablespace temp02
2 tempfile '+DATA/orcl/tempfile/temp02.dbf'
3 size 1g;
Tablespace created.
SQL> alter tablespace temp02 tablespace group tbs_group1;
Tablespace altered.
SQL> alter tablespace temp tablespace group tbs_group1;
Tablespace altered.
SQL> select * from dba_tablespace_groups;
GROUP_NAME TABLESPACE_NAME
------------------------------ ------------------------------
TBS_GROUP1 TEMP
TBS_GROUP1 TEMP02
SQL> create user cui
2 identified by cui
3 temporary tablespace tbs_group1;
User created.
删除临时表空间组中的其中一个表空间(只是从组中分离出来而已)
SQL> alter tablespace temp tablespace group '';
Tablespace altered.
SQL> select * from dba_tablespace_groups;
GROUP_NAME TABLESPACE_NAME
------------------------------ ------------------------------
TBS_GROUP1 TEMP02
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10037372/viewspace-701158/
,如需转载,请注明出处,否则将追究法律责任。