您的位置:首页技术开发数据库教程 → 关于oracle 10g rman 全库备份脚本实例

关于oracle 10g rman 全库备份脚本实例

时间:2011/2/13 16:28:40来源:本站原创作者:佚名我要评论(0)

全库备份加切换归档,并删除已备份归档:
CONFIGURE MAXSETSIZE to 295m;
backup database format='db_%U.bak' plus archivelog delete all input;

测试:
run
{
allocate channel t1 device type disk format='db_%U.bak';
backup database plus archivelog delete all input;
release channel t1;
}

 -------------
Starting backup at 11-JUN-09
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=5 recid=22 stamp=689273809
channel ORA_DISK_1: starting piece 1 at 11-JUN-09
channel ORA_DISK_1: finished piece 1 at 11-JUN-09
piece handle=/u04/app/oracle/product/9.2.0/dbs/05khauui_1_1 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
channel ORA_DISK_1: deleting archive log(s)
archive log filename=/u04/arch/1_5.dbf recid=22 stamp=689273809
Finished backup at 11-JUN-09
Starting backup at 11-JUN-09
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current controlfile in backupset
input datafile fno=00001 name=/u04/app/oracle/oradata/test/system01.dbf
channel ORA_DISK_1: starting piece 1 at 11-JUN-09
channel ORA_DISK_1: finished piece 1 at 11-JUN-09
piece handle=/u04/app/oracle/product/9.2.0/dbs/db_06khauuk_1_1.bak comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:56
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00006 name=/u04/app/oracle/oradata/test/test01.dbf
input datafile fno=00004 name=/u04/app/oracle/oradata/test/tools01.dbf
channel ORA_DISK_1: starting piece 1 at 11-JUN-09
channel ORA_DISK_1: finished piece 1 at 11-JUN-09
piece handle=/u04/app/oracle/product/9.2.0/dbs/db_07khav29_1_1.bak comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:55
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00002 name=/u04/app/oracle/oradata/test/undotbs01.dbf
input datafile fno=00003 name=/u04/app/oracle/oradata/test/indx01.dbf
input datafile fno=00005 name=/u04/app/oracle/oradata/test/users01.dbf
channel ORA_DISK_1: starting piece 1 at 11-JUN-09
channel ORA_DISK_1: finished piece 1 at 11-JUN-09
piece handle=/u04/app/oracle/product/9.2.0/dbs/db_08khav40_1_1.bak comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:01:05
Finished backup at 11-JUN-09
Starting backup at 11-JUN-09
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archive log backupset
channel ORA_DISK_1: specifying archive log(s) in backup set
input archive log thread=1 sequence=6 recid=23 stamp=689274050
channel ORA_DISK_1: starting piece 1 at 11-JUN-09
channel ORA_DISK_1: finished piece 1 at 11-JUN-09
piece handle=/u04/app/oracle/product/9.2.0/dbs/09khav63_1_1 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:02
channel ORA_DISK_1: deleting archive log(s)
archive log filename=/u04/arch/1_6.dbf recid=23 stamp=689274050
Finished backup at 11-JUN-09

 

相关视频

    没有数据

相关阅读 Oracle PRKC-1002错误原因和解决方案oracle10g安装图解(win7)Oracle错误代码大全oracle查看实例名方法Oracle表空间恢复方案微软亚太研发集团总部大楼 扎根中国"硅谷"亚马逊网络服务推出Oracle RDS如何关闭oracle rac选项 make rac_off

文章评论
发表评论

热门文章 oracle10g安装图解(wi

最新文章 数据库流行度排行2019oracle10g安装图解(wi SQL2008全部数据导出导入两种方法SQL2005新建复制“找不到存储过程 错误:28Dos远程登录mysql数据库详细图文教程mysql怎么开启远程登录功能

人气排行 mysql自动定时备份数据库的最佳方法-支持wiVisual Foxpro 6.0安装向导图文教程SQL Server 2008 安装图文教程SQL2008全部数据导出导入两种方法SQL 2000/2005/2008 的收缩日志方法,和清理mysql出 Can't connect to MySQL server onoracle10g安装图解(win7)sql2005安装图解_(sql server2005)安装教程