Oracle所在磁盘只装了oracle,没有其它东西;
现在数据库正在运行。其中一个DBF有10G,其它的较小些。
磁盘整理,去掉回收站空间 都不能解决问题。
还有其它的办法吗?
比如删除某些文件?
其它盘最大的空间也只有5G。

解决方案 »

  1.   

    我对oracle不太熟悉的,只会用,不太懂其它方面的,所以需要步骤。
      

  2.   

    1.先按如下方法把缺省temp表空间切换到空间比较大的磁盘上
    修改缺省temp表空间create temporary tablespace temptest tempfile  '/dev/vgqrya01/rlv_08_temp_002';
    alter database default temporary tablespace temptest;
    drop tablespace temp;
    create temporary tablespace temp tempfile  '/dev/vgqrya01/rlv_08_temp_001';
    alter database default temporary tablespace temp;
    drop tablespace temptest;2.在空闲的磁盘新建一个表空间
    create tablespace example_data 
    datafile '/u01/oradata/exampledata01.dbf' size 2000M 
    extent management local segment space management AUTO;
    3.找出你数据库里一些比较大的表,用如下方法做个备份
    create table xxx_bak tablespace example_data as 
    select * from xxx ;4.drop 正式表;
    5.对这个备份表按照正式表那样建索引,主键,外键,有必要的话再做个表分析。