Rman系列专题(二)·····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=
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值