Executing an Operating System Copy Within RMAN: Example This example shuts down the database, makes a backup of datafile system01.dbf, then executes the UNIX ls command to display all backed up datafiles:
SHUTDOWN IMMEDIATE;
STARTUP MOUNT;
BACKUP DATAFILE '?/oradata/trgt/system01.dbf'
FORMAT '/tmp/system01.dbf';
HOST 'ls -l /tmp/*dbf'; ---就在rman中执行os命令,标记为:host 'os命令';
ALTER DATABASE OPEN;
Hosting to the Operating System Within a Backup: Example This example makes an image copy of datafile 3, hosts out to the UNIX prompt to check that the copy is in the directory (the UNIX session output is indented and displayed in bold), then resumes the RMAN session:
RMAN> BACKUP DATAFILE 3 FORMAT '?/oradata/df3.cpy';
RMAN> HOST; ---在rman中以host;进入os提示符下,以列运行os命令
% ls $ORACLE_HOME/oradata/df3.cpy
/net/oracle/oradata/df3.cpy
% exit --从os提示符退到rman提示符下
RMAN> LIST COPY;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9240380/viewspace-615368/ ,如需转载,请注明出处,否则将追究法律责任。