当前位置:操作系统 > Unix/Linux >>

Rman如何记录日志

Rman如何记录日志
 
rman记录日志:
 
1.rman target / log=/home/oracle/rman.log
 
----->>>这种日志只记录在文件,无法在操作界面显示
 
2.在rman里面spool
spool log to '/home/oracle/rman.log';
spool log off;
----->>>这种日志只记录在文件,无法在操作界面显示
 
3.rman target / |tee rman.log
----->>>这种方式既能显示出来,又可以记录操作的日志到文件
 
4.使用script命令记录日志
script -a rman.log
rman target /
show all;
exit    ----->>>退出rman
exit    ----->>>退出script
 
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,