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>