oracle 清空临时表空间

清空临时表空间
1.startup --启动数据库

2.create temporary tablespace TEMP2 TEMPFILE '/home2/oracle/oradata/sysmon/temp02.dbf' SIZE 512M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED; --创建中转临时表空间

3.alter database default temporary tablespace temp2;--改变缺省临时表空间 为刚刚创建的新临时表空间temp2

4.drop tablespace temp including contents and datafiles;--删除原来临时表空间

5.create temporary tablespace TEMP TEMPFILE '/home2/oracle/oradata/sysmon/temp01.dbf' SIZE 512M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED; --重新创建临时表空间

6.alter database default temporary tablespace temp;--重置缺省临时表空间为新建的temp表空间

7.drop tablespace temp2 including contents and datafiles;--删除中转用临时表空间

8.alter user roll temporary tablespace temp; --重新指定用户表空间为重建的临时表空间

posted on 2007-01-09 16:40 【Xine】中文站 阅读(2943) 评论(1)  编辑  收藏 所属分类: Oracle Elite

评论

# re: oracle 清空臨時表空間[未登录] 2008-03-18 21:29 Jason

實在很感謝站長高手的如此詳盡的教學! 讓小弟受用無窮~
順便請教第8點
alter user roll temporary tablespace temp;

不是已經alter database default temporary tablespace temp;將整個預設值改回了嗎?
那user的預設還要再改一遍嗎?

謝謝!  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航:
 
<2008年3月>
2425262728291
2345678
9101112131415
16171819202122
23242526272829
303112345

导航

统计

常用链接

留言簿(8)

随笔分类(40)

随笔档案(40)

文章分类(33)

文章档案(34)

相册

BLOG 联盟

搜索

最新评论

阅读排行榜

评论排行榜