sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Fri Feb 6 21:05:43 2015

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

Connected to an idle instance.

SQL> startup nomount
ORACLE instance started.

Total System Global Area 1068937216 bytes
Fixed Size                  2220200 bytes
Variable Size             624955224 bytes
Database Buffers          436207616 bytes
Redo Buffers                5554176 bytes
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@DB200 ~]$ rman target sys/Aa7788123@dadifilma auxiliary sys/Aa7788123@dadifilmb

Recovery Manager: Release 11.2.0.1.0 - Production on Fri Feb 6 21:05:57 2015

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

connected to target database: DADIFILM (DBID=4240448887)
connected to auxiliary database: DADIFILM (not mounted)

RMAN> duplicate target database for standby nofilenamecheck from active database;

Starting Duplicate Db at 06-FEB-15
using target database control file instead of recovery catalog
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=156 device type=DISK

contents of Memory Script:
{
   backup as copy reuse
   targetfile  '/data/DBSoftware/app/oracle/product/11.2.0/dbhome_1/dbs/orapwdadifilm' auxiliary format
 '/data/DBSoftware/app/oracle/product/11.2.0/dbhome_1/dbs/orapwdadifilm'   ;
}
executing Memory Script

Starting backup at 06-FEB-15
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=128 device type=DISK
Finished backup at 06-FEB-15

contents of Memory Script:
{
   backup as copy current controlfile for standby auxiliary format  '/data/DBData/oradata/dadifilm/control01.ctl';
   restore clone controlfile to  '/data/DBSoftware/app/oracle/flash_recovery_area/dadifilm/control02.ctl' from
 '/data/DBData/oradata/dadifilm/control01.ctl';
}
executing Memory Script

Starting backup at 06-FEB-15
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
copying standby control file
output file name=/data/DBSoftware/app/oracle/product/11.2.0/dbhome_1/dbs/snapcf_dadifilm.f tag=TAG20150206T210609 RECID=2 STAMP=870987969
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 06-FEB-15

Starting restore at 06-FEB-15
using channel ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: copied control file copy
Finished restore at 06-FEB-15

contents of Memory Script:
{
   sql clone 'alter database mount standby database';
}
executing Memory Script

sql statement: alter database mount standby database

contents of Memory Script:
{
   set newname for tempfile  1 to
 "/data/DBData/oradata/dadifilm/temp01.dbf";
   switch clone tempfile all;
   set newname for datafile  1 to
 "/data/DBData/oradata/dadifilm/system01.dbf";
   set newname for datafile  2 to
 "/data/DBData/oradata/dadifilm/sysaux01.dbf";
   set newname for datafile  3 to
 "/data/DBData/oradata/dadifilm/undotbs01.dbf";
   set newname for datafile  4 to
 "/data/DBData/oradata/dadifilm/users01.dbf";
   set newname for datafile  5 to
 "/data/DBData/oradata/dadifilm/example01.dbf";
   backup as copy reuse
   datafile  1 auxiliary format
 "/data/DBData/oradata/dadifilm/system01.dbf"   datafile
 2 auxiliary format
 "/data/DBData/oradata/dadifilm/sysaux01.dbf"   datafile
 3 auxiliary format
 "/data/DBData/oradata/dadifilm/undotbs01.dbf"   datafile
 4 auxiliary format
 "/data/DBData/oradata/dadifilm/users01.dbf"   datafile
 5 auxiliary format
 "/data/DBData/oradata/dadifilm/example01.dbf"   ;
   sql 'alter system archive log current';
}
executing Memory Script

executing command: SET NEWNAME

renamed tempfile 1 to /data/DBData/oradata/dadifilm/temp01.dbf in control file

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting backup at 06-FEB-15
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile copy
input datafile file number=00001 name=/data/DBData/oradata/dadifilm/system01.dbf
output file name=/data/DBData/oradata/dadifilm/system01.dbf tag=TAG20150206T210617
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile copy
input datafile file number=00002 name=/data/DBData/oradata/dadifilm/sysaux01.dbf
output file name=/data/DBData/oradata/dadifilm/sysaux01.dbf tag=TAG20150206T210617
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile copy
input datafile file number=00003 name=/data/DBData/oradata/dadifilm/undotbs01.dbf
output file name=/data/DBData/oradata/dadifilm/undotbs01.dbf tag=TAG20150206T210617
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
channel ORA_DISK_1: starting datafile copy
input datafile file number=00005 name=/data/DBData/oradata/dadifilm/example01.dbf
output file name=/data/DBData/oradata/dadifilm/example01.dbf tag=TAG20150206T210617
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:03
channel ORA_DISK_1: starting datafile copy
input datafile file number=00004 name=/data/DBData/oradata/dadifilm/users01.dbf
output file name=/data/DBData/oradata/dadifilm/users01.dbf tag=TAG20150206T210617
channel ORA_DISK_1: datafile copy complete, elapsed time: 00:00:01
Finished backup at 06-FEB-15

sql statement: alter system archive log current

contents of Memory Script:
{
   switch clone datafile all;
}
executing Memory Script

datafile 1 switched to datafile copy
input datafile copy RECID=2 STAMP=870988015 file name=/data/DBData/oradata/dadifilm/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=3 STAMP=870988015 file name=/data/DBData/oradata/dadifilm/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=4 STAMP=870988015 file name=/data/DBData/oradata/dadifilm/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=5 STAMP=870988015 file name=/data/DBData/oradata/dadifilm/users01.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=6 STAMP=870988015 file name=/data/DBData/oradata/dadifilm/example01.dbf
Finished Duplicate Db at 06-FEB-15

dg rman的更多相关文章

  1. Oracle ADG环境搭建

    部署 环境介绍 1,软件安装前基础部署 (两台做同样操作) 1.1,关闭selinux和防火墙 因为centos7里面没有/etc/sysconfig/iptables这个配置文件所以我们首先用yum ...

  2. DG环境数据库RMAN备份策略制定

    DG环境数据库RMAN备份策略制定: 主库(Primary) 全库备份 归档备份 删除历史文件夹 备库(Standby) 删除归档 引用说明 主库(Primary) $ crontab -l 0 1 ...

  3. asm单机dg dbca报错ORA-01031 CRS-2676,rman restore主库控制文件报错ORA-15081

    dg-> ll $ORACLE_HOME/bin/oracle -r-xr-s--x 1 oracle asmadmin 210824714 Nov 20 16:41 /u01/app/orac ...

  4. RHEL6.4 + Oracle 11g DG测试环境快速搭建参考

    环境现状: 两台虚拟主机A和B: 1. A机器已安装ASM存储的Oracle 11g 实例      参考:http://www.cnblogs.com/jyzhao/p/4332410.html 2 ...

  5. Oracle 11g DG配置简明版

    环境: 主库A机:在线生产环境,RHEL 6.4 + Oracle 11.2.0.3 备库B机:新增备机,RHEL 6.4 需求: 对生产环境最小影响前提下配置DG备库. 目录: 一.B机安装相同版本 ...

  6. DG gap sequence修复一例

    环境:Oracle 11.2.0.4 DG 故障现象: 客户在备库告警日志中发现GAP sequence提示信息: Mon Nov 21 09:53:29 2016 Media Recovery Wa ...

  7. oracle11G使用DGbroker创建dg

    1.环境: a.主机环境:centos6.5 b.软件环境:oracle 11.2.0.4 c.主机信息: DG1:192.168.100.51(数据库sid:atest) DG2:192.168.1 ...

  8. 利用增量备份恢复因归档丢失造成的DG gap

    故障现象:data guard归档出现gap,悲剧的是丢失的归档在主库上被rman备份时删除了,丢失的归档大约有20几个,数据库大小约2T,如果重建DG将非常耗时间,因此决定利用增量备份的方式恢复DG ...

  9. RMAN笔记小结

    首先感谢junsansi和leshani两位大师的文笔:我可是好好看了很多遍:这两位哦:我跟你们说:对rman的解说那是相当精彩:文章形如流水,通俗易懂:内容那是入木三分...;好了我也不多说了,反正 ...

随机推荐

  1. XML_PULL解析

    一.在Android应用中的XML文件来源 1.本地xml文件     本地XML文件可以放在应用根目录assets文件夹.res/xml.res/raw.SDcard卡.应用的data目录等: 除r ...

  2. Flex中如何通过设置GridLines对象的horizontalAlternateFill样式交错显示LineSeries图表背景颜色的例子

    原文 http://blog.minidx.com/2008/11/27/1652.html 接下来的例子演示了Flex中如何通过设置GridLines对象的horizontalAlternateFi ...

  3. haproxy hdr_beg 配置

    v-dev-app01:/root# ping www.zjdev.com PING www.zjdev.com (192.168.32.16) 56(84) bytes of data. 64 by ...

  4. perl 一个简单的面向对象的例子

    <pre name="code" class="python">[root@wx03 wx]# cat x1.pm package x1; use ...

  5. Dialog 顶部黑线问题

    Dialog 顶部黑线问题 样式如下: [java] view plaincopyprint? <style name="Transparent_Dialog"> &l ...

  6. MYSQL 简单的循环存储过程

    BEGIN ; ; DO DO ); ; ) THEN ; END IF; END WHILE; ; ; END WHILE; END

  7. makefile编写差异

    由于zlib动态库在linux下引用的问题引出了对于简练的makefile的学习.之前通过看网络上的一些文章自己也算简单了解如何编写一个makefile,可总是不那么美观,今天经过辉哥的指点,对于ma ...

  8. AndroidUI 视图动画-混合动画效果 (AnimationSet)/动画效果监听

    在前面介绍了几种动画效果:透明动画效果(AlphsAnimation).移动动画效果(TranslateAnimation).旋转动画效果(RotateAnimation).缩放动画效果(ScaleA ...

  9. 30分钟学会使用grunt打包前端代码【mark】

    grunt 是一套前端自动化工具,一个基于nodeJs的命令行工具,一般用于:① 压缩文件② 合并文件③ 简单语法检查 对于其他用法,我还不太清楚,我们这里简单介绍下grunt的压缩.合并文件,初学, ...

  10. 【JavaScript脚本编程技术详解-----(一)】

    首先说明,本系列教程是写给有一定的JavaScript编程基础的同学看的,最好还有其它的编程语言经验,因为里面可能涉及一些其它的程序设计语言写的源代码,这都是我自己总结的经验,我喜欢在学习一门新的编程 ...