rman 屏幕日志 输出到文件

RMAN> rman  log /home/oracle/nosetdesc/logs/rman_log.txt;

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found ";": expecting one of: "append, at, auxiliary, catalog, cmdfile, clone, checksyntax, debug, log, msglog, mask, msgno, nocatalog, pipe, rcvcat, script, slaxdebug, send, target, timeout, trace"
RMAN-01007: at line 1 column 51 file: standard input

RMAN> exit


Recovery Manager complete.
[oracle@MasterHadoop50 ~]$  rman  log /home/oracle/nosetdesc/logs/rman_log.txt;
RMAN> report obsolete  log /home/oracle/nosetdesc/logs/rman_log.txt;
RMAN> report obsolete;
RMAN> connect target /
RMAN> report obsolete;
RMAN> show all;

tail -f 实时刷新文件内容

[oracle@MasterHadoop50 nosetdesc]$ pwd
/home/oracle/nosetdesc
[oracle@MasterHadoop50 nosetdesc]$ mkdir logs
[oracle@MasterHadoop50 nosetdesc]$ ls -ltr
total 4
drwxr-xr-x 2 oracle dba 4096 Feb  1 12:55 logs
[oracle@MasterHadoop50 nosetdesc]$ pwd
/home/oracle/nosetdesc
[oracle@MasterHadoop50 nosetdesc]$ ls
logs
[oracle@MasterHadoop50 nosetdesc]$ cd logs/
[oracle@MasterHadoop50 logs]$ cat rman_log.txt 

Recovery Manager: Release 10.2.0.1.0 - Production on Sun Feb 1 12:57:46 2015

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

RMAN> 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "log": expecting one of: "device, high, orphan, redundancy, recovery, ;, until"
RMAN-01007: at line 1 column 18 file: standard input

RMAN> 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of report command at 02/01/2015 12:58:05
RMAN-06171: not connected to target database

[oracle@MasterHadoop50 logs]$ cat rman_log.txt 

Recovery Manager: Release 10.2.0.1.0 - Production on Sun Feb 1 12:57:46 2015

Copyright (c) 1982, 2005, Oracle.  All rights reserved.

RMAN> 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "log": expecting one of: "device, high, orphan, redundancy, recovery, ;, until"
RMAN-01007: at line 1 column 18 file: standard input

RMAN> 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of report command at 02/01/2015 12:58:05
RMAN-06171: not connected to target database

RMAN> 
connected to target database: DB01 (DBID=1467107934)

[oracle@MasterHadoop50 logs]$ tail -f rman_log.txt 
RMAN> 
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of report command at 02/01/2015 12:58:05
RMAN-06171: not connected to target database

RMAN> 
connected to target database: DB01 (DBID=1467107934)

RMAN> 
using target database control file instead of recovery catalog
RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
no obsolete backups found

RMAN> 
RMAN configuration parameters are:
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default
CONFIGURE BACKUP OPTIMIZATION OFF; # default
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default
CONFIGURE CONTROLFILE AUTOBACKUP OFF;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '%F'; # default
CONFIGURE DEVICE TYPE DISK PARALLELISM 3 BACKUP TYPE TO BACKUPSET;
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE CHANNEL 1 DEVICE TYPE DISK FORMAT   '/home/oracle/disk1/user_bs_%d%p%s.bkp';
CONFIGURE CHANNEL 2 DEVICE TYPE DISK FORMAT   '/home/oracle/disk2/user_bs_%d%p%s.bkp';
CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT   '/home/oracle/disk2/same_bs_%d%p%s.bkp';
CONFIGURE MAXSETSIZE TO UNLIMITED; # default
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default
CONFIGURE ENCRYPTION ALGORITHM 'AES128'; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
CONFIGURE SNAPSHOT CONTROLFILE NAME TO '/u01/oracle/11G/dbs/snapcf_db01.f'; # default

--------------------------------------------------------------------------------------------------------

<span style="color:#ff0000;">要想重新输出日志信息到屏幕,只需exit 载登录rman即可。</span>



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

5icode.top

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值