临时表空间组是ORACLE 10g引入的一个新特性,它是一个逻辑概念,不需要显示的创建和删除。只要把一个临时表空间分配到一个组中,临时表空间组就自动创建,所有的临时表空间从临时表空间组中移除就自动删除。
一个临时表空间组必须由至少一个临时表空间组成,并且无明确的最大数量限制.
A temporary tablespace group contains at least one tablespace. There is no limit for a group to have a maximum number of tablespaces
如果删除一个临时表空间组的所有成员,该组也自动被删除。
临时表空间的名字不能与临时表空间组的名字相同。
It shares the namespace of tablespaces, thus its name cannot be the same as that of any tablespace.
可以在创建临时表空间是指定表空间组,即隐式创建。
create temporary tablespace temp2 tempfile '/u01/temp2_1.dbf' size 10m tablespace group grp_temp;
查看临时表空间组:
select * from dba_tablespace_groups;
也可以指定已经创建好的临时表空间的临时表空间组。
alter tablespace temp tablespace group grp_temp;
select * from dba_tablespace_groups;
从组中移除:
alter tablespace temp tablespace group '';
当为数据库指定临时表空间或为用户指定临时表空间时,可以使用临时表空间组的名称
alter user xxx temporary tablespace grp_temp;
最后修改时间:2022-07-22 09:12:54
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




