做了一个测试后,磁盘空间被用光了
ORA-01652:unable to extend temp segment by 128 in tablespace name (无法通过 128 (在表空间 TEMP 中) 扩展 temp 段)
重启数据库后,TEMP表空间并不会自动收缩,需要手工执行shrink命令进行收缩。
收缩临时表空间的步骤:
--查看临时表空间情况
--数据库重启后,监听还没开起来时最适合做收缩
SQL> select tablespace_name,tablespace_size
2 ,to_char((tablespace_size-free_space)/1024/1024,'fm999990.00')||'M' notfreeMB
3 ,to_char(free_space/tablespace_size*100,'fm990.00')||'%'