Rman配置设置
二、Rman配置
1 配置archivelog模式运行
在ORACLE 10g 之前,在将数据库置入Archivelog 模式后,需要启动arch进程。 设置参数LOG_ARCHIVE_START 为true,也可启动arch进程。在10g以后,不需要使用该方法,当数据库处于archivelog模式时,Oracle 会自动启动arch进程。
Oracle10g 提供了2种不同的位置来保存归档日志: ArchiveLog 目标目录和闪回区。
1.1 ARCHIVELOG 模式之间的切换
Oracle 归档与非归档的切换
https://blog.csdn.net/weixin_44167712/article/details/85296397
2 rman命令的分类
2.1 独立的命令
在rman提示符下面,输入一条命令,立即执行
[oracle@ZHUANHU ~]$ rman
Recovery Manager: Release 10.2.0.1.0 - Production on Thu Dec 27 10:55:00 2018
Copyright (c) 1982, 2005, Oracle. All rights reserved.
RMAN>
linux os下能获取帮助
[oracle@ZHUANHU ~]$ rman help
Argument Value Description
-----------------------------------------------------------------------------
target quoted-string connect-string for target database
catalog quoted-string connect-string for recovery catalog
nocatalog none if specified, then no recovery catalog
cmdfile quoted-string name of input command file
log quoted-string name of output message log file
trace quoted-string name of output debugging message log file
append none if specified, log is opened in append mode
debug optional-args activate debugging
msgno none show RMAN-nnnn prefix for all messages
send quoted-string send a command to the media manager
pipe string building block for pipe names
timeout integer number of seconds to wait for pipe input
checksyntax none check the command file for syntax errors
-----------------------------------------------------------------------------
Both single and double quotes (' or ") are accepted for a quoted-string.
Quotes are not required unless the string contains embedded white-space.
其中log、cmdfile、append比较常用。
[oracle@ZHUANHU DBbackup]$
[oracle@ZHUANHU DBbackup]$ rman target rmanadmin/rmanadmin log=/DBbackup/rmantest.log append cmdfile=/DBbackup/rmantest.rcv
RMAN> 2>
另开窗口查看
[root@ZHUANHU oracle]# tail -f /DBbackup/rmantest.log
channel ORA_DISK_1: sid=1625 devtype=DISK
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
input datafile fno=00006 name=/oradata/cappp_tbs01.dbf
input datafile fno=00008 name=/u01/app/oracle/oradata/ZHDB/datafile/undotbs2.dbf
input datafile fno=00001 name=/u01/app/oracle/oradata/ZHDB/datafile/o1_mf_system_fg2kfloo_.dbf
input datafile fno=00003 name=/u01/app/oracle/oradata/ZHDB/datafile/o1_mf_sysaux_fg2kflq4_.dbf
input datafile fno=00005 name=