当然不是了!数据库设置为归档日志模式后在一点程度上的确会影响数据库的性能,因为它会增加系统的压力。
但是带来的好处是数据库可以恢复到任一时间点上。对于越来越多的归档日志,不是没有办法的。
因为你不可能只有归档日志而没有别的数据库备份方式(比如exp),这样在其他数据库备份方案实施后,之前的数据库归档日志文件就可以清除了。也就是说,知道了哪些归档日志文件过期后就可以放心的删除了。

解决方案 »

  1.   

    同意楼上,作了一次备份以后,以前的log file就可以删除了,因为log file记录你对数据库的修改情况以用作恢复的
      

  2.   

    对于dmp有没有增量备份的方法
      

  3.   

    对于exp备份,日志是没有用的。
    只有基于文件的热备份或冷备份,才用到日志。
    在下一次备份后,以前的日志都可以删除了。
    我这里一天要产生5G的日志,如果不删除的话,我哪里来的空间保存,呵呵。
    exp可以实现增量备份的。
      

  4.   

    请问如何做到基于文件的热备份或冷备份,谢谢!!对于dmp如何做到增量备份
      

  5.   

    如果有当天的全备份,就不需要过去的ARCHIVELOG了。
    但以后的一定要保留。当然你的数据库是ARCHIVILOG 模式的。
      

  6.   

    我只给你一个基于文件备份的热备份,它必须要求在归档模式下。
    我的数据库就是这种备份方式
    rem     script:hotbak.sql
    rem     creater:chenjiping
    rem     date:4.4.2002
    rem     desc:backup database datafile in archive--connect database
    connect internal/virpure;--archive
    alter system checkpoint;
    alter system archive log all;
    alter system switch logfile;
    --start
    alter tablespace afis_remote begin backup;
    !xcopy e:\orant\database\remote_data1.ora f:\databak/H/R;
    !xcopy e:\orant\database\remote_data2.ora f:\databak/H/R; 
    alter tablespace afis_remote end backup;alter tablespace afis_rmtafis begin backup;
    !xcopy e:\orant\database\rmtafis_data1.ora f:\databak/H/R;
    !xcopy e:\orant\database\rmtafis_data2.ora f:\databak/H/R; 
    alter tablespace afis_rmtafis end backup;alter tablespace afis_lquser begin backup;
    !xcopy e:\orant\database\lquser_data.ora f:\databak/H/R;
    alter tablespace afis_lquser end backup;alter tablespace afis_transf begin backup;
    !xcopy e:\orant\database\transf1_data.ora f:\databak/H/R;
    !xcopy e:\orant\database\transf2_data.ora f:\databak/H/R; 
    alter tablespace afis_transf end backup;alter tablespace system begin backup;
    !xcopy e:\orant\database\sys1afis.ora f:\databak/H/R;
    alter tablespace system end backup;alter tablespace rbs begin backup;
    !xcopy e:\orant\database\rbs1afis.ora f:\databak/H/R;
    alter tablespace rbs end backup;alter tablespace usr begin backup;
    !xcopy e:\orant\database\usr1afis.ora f:\databak/H/R;
    alter tablespace usr end backup;
    alter tablespace temporary begin backup;
    !xcopy e:\orant\database\tmp1afis.ora f:\databak/H/R;
    alter tablespace temporary end backup;
    --end--bak control file
    --bin
    alter database backup controlfile to 'f:\databak\controlbinbak.000';
    --ascii
    alter database backup controlfile to trace;alter system switch logfile;
    alter system switch logfile;
    这是调用备份的例子
    rem     script:hotbak.bat
    rem     creater:chenjiping
    rem     date:4.4.2002
    rem     desc:backup database datafile in archiveecho del old temp backup file
    del f:\datatmp\*.*/q
    echo bak backup file to temp
    move f:\databak\*.* f:\datatmp\
    move f:\Archive\*.* f:\datatmp\
    echo start new bak to f:\databak
    svrmgrl @e:\sql\hotbak.sql