急急急!oracle所在磁盘空间要用尽了,大大家快来帮忙啊 删除临时表空间没有危险!!这个我做过你得先建立另外的临时表空间TEMP2,然后把系统的临时表空间指向他TEMP2然后删除现在的TEMP就可以释放20几G的空间了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 具体方法 1先建立个临时表空间, create temporary tablespace temp2 tempfile './temp2.dbf' size 1mextent management local uniform size 1m;2把系统默认临时表空间给TEMP2ALTER DATABASE DAFAULT TEMPORARY TABLESPACE TEMP2;3删除原来临时表空间 drop tablespace temp including contents and datafiles; 我先试试,谢谢楼上二位兄弟, 对了飘,问个题外话,size 1m够不够用啊?还有tempfile './temp2.dbf' 中的./是不是表示在当前路径下? 可以建立新的datafile在其他目录. tempfile './temp2.dbf' 你也可以写全路径的,也可以添加reuse autoextend on比如:create temporary tablespace tempbaktempfile '****\tempbak.dbf' size 100M reuse autoextend onextent management local uniform size 1M; alter database default temporary tablespace tempbak;desc v$tempfile;select name,file# from v$tempfile;把你前边的TEMPFILE先offline比较保险~alter database tempfile 2 offline; 谢谢楼上各位问题已经解决了,我是这样做的:1、 --启动数据库sqlplus /nologconn sys/pwd@ora92 as sysdbastartup2、--创建中转临时表空间create temporary tablespace TEMP2 TEMPFILE '/export/home/oracle/oradata/ora92/temp02.dbf' SIZE 512M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED;3、--改变系统默认临时表空间 为刚刚创建的新临时表空间temp2alter database default temporary tablespace temp2;4、--删除原来临时表空间tempdrop tablespace temp including contents and datafiles;5、--重新创建临时表空间tempcreate temporary tablespace TEMP TEMPFILE '/export/home/oracle/oradata/ora92/temp01.dbf' SIZE 512M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED;6、 --重置系统默认临时表空间alter database default temporary tablespace temp; 7、--删除中转临时表空间temp2drop tablespace temp2 including contents and datafiles; 有关csdn博客的问题 如何使用oo4o连接数据库 遍历查询问题 如何用oracle存储过程动态建表.. 简单问题 小小的问一下。. 10g 如何自动更新全文索引呢? 请问ORA-12571:TNS packet writer failure. 写入数据包失败是什么原因???? 数据库突然Down,restart后ok,是什么问题? 两表间的分组统计 在linux as3上面安装oracle 9i,这个错误该怎么解?急~~~ 请教oracle9i中删除大型对象记录后空间为什么没有还给操作系统
比如:
create temporary tablespace tempbak
tempfile '****\tempbak.dbf' size 100M reuse autoextend on
extent management local uniform size 1M;
desc v$tempfile;
select name,file# from v$tempfile;
把你前边的TEMPFILE先offline比较保险~
alter database tempfile 2 offline;
1、 --启动数据库
sqlplus /nolog
conn sys/pwd@ora92 as sysdba
startup
2、--创建中转临时表空间
create temporary tablespace TEMP2 TEMPFILE '/export/home/oracle/oradata/ora92/temp02.dbf' SIZE 512M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED;
3、--改变系统默认临时表空间 为刚刚创建的新临时表空间temp2
alter database default temporary tablespace temp2;
4、--删除原来临时表空间temp
drop tablespace temp including contents and datafiles;
5、--重新创建临时表空间temp
create temporary tablespace TEMP TEMPFILE '/export/home/oracle/oradata/ora92/temp01.dbf' SIZE 512M REUSE AUTOEXTEND ON NEXT 640K MAXSIZE UNLIMITED;
6、 --重置系统默认临时表空间
alter database default temporary tablespace temp;
7、--删除中转临时表空间temp2
drop tablespace temp2 including contents and datafiles;