ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle10g_rman_语法测试_7

oracle10g_rman_语法测试_7

原创 Linux操作系统 作者:wisdomone1 时间:2009-09-23 01:39:24 0 删除 编辑

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/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
提供针对oracle初学者及进阶的数据库培训,欢迎大家咨询: 微信: wisdomone 微信公众号: lovedb 工作经历: 中国普天 北京科蓝 北京云和恩墨 北京神州新桥

注册时间:2008-04-04

  • 博文量
    2189
  • 访问量
    12689910