create temporarytablespace temp_name
tempfile‘路径+文件名‘ size 大小 [autoextend on];--size单位m兆 autoextend on 自动增长
create temporarytablespace temp2
tempfile‘D:\app\Administrator\oradata\orcl\temp2a.dbf‘size 10m autoextendon;
创建一个临时表空间属于组:create temporary tablespace temp_name tempfile‘路径+文件名‘size 大小[autoextend on] tablespace groupgroup_name ;create temporarytablespace temp3
tempfile‘D:\app\Administrator\oradata\orcl\temp3a.dbf‘size 10m autoextendon tablespace group temp_grp;
有关临时表空间的相关操作:
将临时表空间temp2加入到临时表空间组temp_grp中:
alter tablespace temp2 tablespace group temp_grp;
将临时表空间temp2从临时表空间组temp_grp中移除:
alter tablespace temp2 tablespace group ‘‘ ; --组名置空
给temp表空间添加一个临时文件temp3aa.dbf :
altertablespace temp2add tempfile ‘D:\app\Administrator\oradata\orcl\temp3aa.dbf‘size 10m autoextendon ;
修改系统默认的临时表空间:
①将默认临时表空间改成临时表空间组 temp_grp (可包含多个临时表空间):
alter database default temporary tablespace temp_grp;
②将默认临时表空间改成临时表空间temp2:
alter database default temporary tablespace temp_grp;
oracle11g中的临时表空间
标签:大小 mini alter 排序 覆盖 emp_table ble hash 修改
本条技术文章来源于互联网,如果无意侵犯您的权益请点击此处反馈版权投诉 本文系统来源:https://www.cnblogs.com/Melissa888/p/13530097.html