当然不是了!数据库设置为归档日志模式后在一点程度上的确会影响数据库的性能,因为它会增加系统的压力。
但是带来的好处是数据库可以恢复到任一时间点上。对于越来越多的归档日志,不是没有办法的。
因为你不可能只有归档日志而没有别的数据库备份方式(比如exp),这样在其他数据库备份方案实施后,之前的数据库归档日志文件就可以清除了。也就是说,知道了哪些归档日志文件过期后就可以放心的删除了。
但是带来的好处是数据库可以恢复到任一时间点上。对于越来越多的归档日志,不是没有办法的。
因为你不可能只有归档日志而没有别的数据库备份方式(比如exp),这样在其他数据库备份方案实施后,之前的数据库归档日志文件就可以清除了。也就是说,知道了哪些归档日志文件过期后就可以放心的删除了。
只有基于文件的热备份或冷备份,才用到日志。
在下一次备份后,以前的日志都可以删除了。
我这里一天要产生5G的日志,如果不删除的话,我哪里来的空间保存,呵呵。
exp可以实现增量备份的。
但以后的一定要保留。当然你的数据库是ARCHIVILOG 模式的。
我的数据库就是这种备份方式
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