01 2007 档案

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   阅读全文

posted @ 2007-01-09 16:40 【Xine】中文站 阅读(2943) | 评论 (1)  编辑

Oracle的UNDOTBS01.DBF文件太大的解决办法
     摘要: 三种解决办法:
1.升级到9205
2.禁止undo tablespace自动增长

3.如果要缩小现在的undo tablespace,则:
-- 创建一个新的小空间的undo tablespace
create undo tablespace undotBS2 datafile 'C:\oracle\oradata\eoffice\UNDOTBS1.DBF' size 100m;
-- 设置新的表空间为系统undo_tablespace
alter system set undo_tablespace=undotBS2;
-- Drop 旧的表空间
drop tablespace undotbs1 including contents;

--查看所有表空间的情况
select * from dba_tablespaces
  阅读全文

posted @ 2007-01-09 15:58 【Xine】中文站 阅读(1166) | 评论 (0)  编辑

<2024年3月>
252627282912
3456789
10111213141516
17181920212223
24252627282930
31123456

导航

统计

常用链接

留言簿(8)

随笔分类(40)

随笔档案(40)

文章分类(33)

文章档案(34)

相册

BLOG 联盟

搜索

最新评论

阅读排行榜

评论排行榜