myheart-new

重建临时表空间

 

1、创建中转临时表空间

create temporary tablespace TEMP1 tempfile \'/oradata/HXDB/datafile/temp02.dbf\' size 256M reuse autoextend on next 16M maxsize 1024M;

 

2、修改缺省临时表空间

alter database default temporary tablespace temp1;

 

3、删除原来临时表空间

drop tablespace temp including contents and datafiles;

 

4、重建临时表空间

create temporary tablespace TEMP tempfile \'/oradata/HXDB/datafile/temp01.dbf\' size 256M reuse autoextend on next 16M maxsize 1024M;

 

5、修改缺省临时表空间

alter database default temporary tablespace temp;

 

6、删除中转用临时表空间

drop tablespace temp1 including contents and datafiles;

注意:执行该条语句时数据库会一直处于等待中,原因是这个会话仍然在使用temp1表空间,解决办法是退出该会话,重新登录并删除。

分类:

技术点:

相关文章:

  • 2021-10-15
  • 2022-01-09
  • 2021-11-22
  • 2022-01-11
  • 2021-04-26
  • 2022-12-23
  • 2021-05-01
  • 2021-12-06
猜你喜欢
  • 2021-12-10
  • 2022-01-22
  • 2022-01-14
  • 2021-12-29
  • 2021-12-25
相关资源
相似解决方案