oracle清理数据库的临时表空间
2012-01-17 17:03
337 查看
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; --重新指定用户表空间为重建的临时表空间
但解决办法的根本还是优化你的SQL.或者加内存.
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; --重新指定用户表空间为重建的临时表空间
但解决办法的根本还是优化你的SQL.或者加内存.
相关文章推荐
- Oracle中临时表空间的清理
- oracle临时表空间的清理
- oracle如何把一个dmp数据库备份还原成空库,并清理表空间
- Oracle中临时表空间的清理
- oracle 数据库,表空间的问题,临时表空间清理的问题
- 问题3:怎样计算Oracle数据库总的空间大小
- Oracle - 数据库的实例、表空间、用户、表之间关系
- 三、Oracle - 数据库的实例、表空间、用户、表之间关系
- Oracle丢失表空间,导致数据库起不来
- mysql对GIS的支持 & oracle 空间数据库说明
- Oracle - 数据库的实例、表空间、用户、表之间关系
- sys用户查看数据库表空间使用情况(ORACLE)
- oracle 数据库表空间的导出
- Oracle - 数据库的实例、表空间、用户、表之间关系
- Oracle从创建数据库到导入数据的具体步骤(创建数据库,表空间,用户,导入数据乱码等)
- ArcGIS oracle空间数据库的备份,导入
- Oracle - 数据库的实例、表空间、用户、表之间关系
- oracle 表 表空间 数据库 用户之间的关系
- oracle的空间数据库
- oracle使用cmd命令导入数据库、删除用户、删除表空间