Showing posts with label rman duplicate. Show all posts
Showing posts with label rman duplicate. Show all posts

Friday, June 20, 2014

Upgrade database to 12c using RMAN duplicate


A.Installation of 12c software in the target host





















B. Pre-upgrade steps in the source database for database upgradation  to 12c from 11.2.0.3
 1.copy the preupgrade.sql and utluppkg.sql script from the 12.1.0.1.0 $ORACLE_HOME/rdbms/admin location to the source database /tmp directory
[oracle@ol6-112-rac1 admin]$ scp preupgrd.sql utluppkg.sql  oracle@ol6-112-racDat2:/tmp
preupgrd.sql                                                                                        100% 5231     5.1KB/s   00:00
utluppkg.sql                                                                                        100%  373KB 372.9KB/s   00:00
                                                                                     100% 5231     5.1KB/s   00:00

2.Run the preupgrade.sql
-rw-r--r--  1 oracle  oinstall   5231 Jun 19 14:56 preupgrd.sql
-rw-r--r--  1 oracle  oinstall 381893 Jun 19 14:56 utluppkg.sql
[oracle@ol6-112-rac2 tmp]$ echo $ORACLE_SID
dupdb
[oracle@ol6-112-rac2 tmp]$ sqlplus / as sysdba @preupgrd.sql

SQL*Plus: Release 11.2.0.3.0 Production on Thu Jun 19 14:58:00 2014

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Loading Pre-Upgrade Package...
Executing Pre-Upgrade Checks...
Pre-Upgrade Checks Complete.
      ************************************************************

Results of the checks are located at:
 /u01/app/orcl/oracle/cfgtoollogs/DUPDB/preupgrade/preupgrade.log

Pre-Upgrade Fixup Script (run in source database environment):
 /u01/app/orcl/oracle/cfgtoollogs/DUPDB/preupgrade/preupgrade_fixups.sql

Post-Upgrade Fixup Script (run shortly after upgrade):
 /u01/app/orcl/oracle/cfgtoollogs/DUPDB/preupgrade/postupgrade_fixups.sql

      ************************************************************

         Fixup scripts must be reviewed prior to being executed.

      ************************************************************

      ************************************************************
                   ====>> USER ACTION REQUIRED  <<====
      ************************************************************

 The following are *** ERROR LEVEL CONDITIONS *** that must be addressed
                    prior to attempting your upgrade.
            Failure to do so will result in a failed upgrade.

           You MUST resolve the above errors prior to upgrade

      ************************************************************


3.Check the logs and preupgrade fixup scripts
[oracle@ol6-112-rac2 tmp]$ sqlplus / as sysdba @preupgrd.sql

SQL*Plus: Release 11.2.0.3.0 Production on Thu Jun 19 14:58:00 2014

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

Loading Pre-Upgrade Package...
Executing Pre-Upgrade Checks...
Pre-Upgrade Checks Complete.
      ************************************************************

Results of the checks are located at:
 /u01/app/orcl/oracle/cfgtoollogs/DUPDB/preupgrade/preupgrade.log

Pre-Upgrade Fixup Script (run in source database environment):
 /u01/app/orcl/oracle/cfgtoollogs/DUPDB/preupgrade/preupgrade_fixups.sql

Post-Upgrade Fixup Script (run shortly after upgrade):
 /u01/app/orcl/oracle/cfgtoollogs/DUPDB/preupgrade/postupgrade_fixups.sql

      ************************************************************

         Fixup scripts must be reviewed prior to being executed.

      ************************************************************

      ************************************************************
                   ====>> USER ACTION REQUIRED  <<====
      ************************************************************

 The following are *** ERROR LEVEL CONDITIONS *** that must be addressed
                    prior to attempting your upgrade.
            Failure to do so will result in a failed upgrade.

           You MUST resolve the above errors prior to upgrade

      ************************************************************

SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@ol6-112-rac2 tmp]$ more /u01/app/orcl/oracle/cfgtoollogs/DUPDB/preupgrade/preupgrade.log
Oracle Database Pre-Upgrade Information Tool 06-19-2014 14:58:21
Script Version: 12.1.0.1.0 Build: 006
**********************************************************************
   Database Name:  DUPDB
         Version:  11.2.0.3.0
      Compatible:  11.2.0.0.0
       Blocksize:  8192
        Platform:  Linux x86 64-bit
   Timezone file:  V14
**********************************************************************
                          [Renamed Parameters]
                     [No Renamed Parameters in use]
**********************************************************************
**********************************************************************
                    [Obsolete/Deprecated Parameters]
             [No Obsolete or Desupported Parameters in use]
**********************************************************************
                            [Component List]
**********************************************************************
--> Oracle Catalog Views                   [upgrade]  VALID
--> Oracle Packages and Types              [upgrade]  VALID
--> JServer JAVA Virtual Machine           [upgrade]  VALID
--> Oracle XDK for Java                    [upgrade]  VALID
--> Oracle Workspace Manager               [upgrade]  VALID
--> OLAP Analytic Workspace                [upgrade]  VALID
--> Oracle Enterprise Manager Repository   [upgrade]  VALID
--> Oracle Text                            [upgrade]  VALID
--> Oracle XML Database                    [upgrade]  VALID
--> Oracle Java Packages                   [upgrade]  VALID
--> Oracle Multimedia                      [upgrade]  VALID
--> Oracle Spatial                         [upgrade]  VALID
--> Expression Filter                      [upgrade]  VALID
--> Rule Manager                           [upgrade]  VALID
--> Oracle Application Express             [upgrade]  VALID
--> Oracle OLAP API                        [upgrade]  VALID
**********************************************************************
                              [Tablespaces]
**********************************************************************
--> SYSTEM tablespace is adequate for the upgrade.
     minimum required size: 1231 MB
--> SYSAUX tablespace is adequate for the upgrade.
     minimum required size: 1469 MB
--> UNDOTBS1 tablespace is adequate for the upgrade.
     minimum required size: 400 MB
--> TEMP tablespace is adequate for the upgrade.
     minimum required size: 60 MB
--> EXAMPLE tablespace is adequate for the upgrade.
     minimum required size: 310 MB

                      [No adjustments recommended]

**********************************************************************
**********************************************************************
                          [Pre-Upgrade Checks]
**********************************************************************
WARNING: --> Process Count may be too low

     Database has a maximum process count of 150 which is lower than the
     default value of 300 for this release.
     You should update your processes value prior to the upgrade
     to a value of at least 300.
     For example:
        ALTER SYSTEM SET PROCESSES=300 SCOPE=SPFILE
     or update your init.ora file.

WARNING: --> Inactive DBIDs found in AWR

     AWR contains inactive DBIDs which may need additional updating after
     upgrading.

WARNING: --> Enterprise Manager Database Control repository found in the database

     In Oracle Database 12c, Database Control is removed during
     the upgrade. To save time during the Upgrade, this action
     can be done prior to upgrading using the following steps after
     copying rdbms/admin/emremove.sql from the new Oracle home
   - Stop EM Database Control:
    $> emctl stop dbconsole

   - Connect to the Database using the SYS account AS SYSDBA:

   SET ECHO ON;
   SET SERVEROUTPUT ON;
   @emremove.sql
     Without the set echo and serveroutput commands you will not
     be able to follow the progress of the script.

WARNING: --> Existing DBMS_LDAP dependent objects

     Database contains schemas with objects dependent on DBMS_LDAP package.
     Refer to the Upgrade Guide for instructions to configure Network ACLs.
     USER APEX_030200 has dependent objects.

INFORMATION: --> OLAP Catalog(AMD) exists in database

     Starting with Oracle Database 12c, OLAP is desupported.
     If you are not using the OLAP Catalog component and want
     to remove it, then execute the
     ORACLE_HOME/oraolap/admin/catnoamd.sql script before or
     after the upgrade.

INFORMATION: --> Older Timezone in use

     Database is using a time zone file older than version 18.
     After the upgrade, it is recommended that DBMS_DST package
     be used to upgrade the 11.2.0.3.0 database time zone version
     to the latest version which comes with the new release.
     Please refer to My Oracle Support note number 977512.1 for details.


**********************************************************************
                      [Pre-Upgrade Recommendations]
**********************************************************************

                        *****************************************
                        ********* Dictionary Statistics *********
                        *****************************************

Please gather dictionary statistics 24 hours prior to
upgrading the database.
To gather dictionary statistics execute the following command
while connected as SYSDBA:
    EXECUTE dbms_stats.gather_dictionary_stats;

^^^ MANUAL ACTION SUGGESTED ^^^

**********************************************************************
                     [Post-Upgrade Recommendations]
**********************************************************************

                        *****************************************
                        ******** Fixed Object Statistics ********
                        *****************************************

Please create stats on fixed objects two weeks
after the upgrade using the command:
   EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;

^^^ MANUAL ACTION SUGGESTED ^^^

**********************************************************************
                   ************  Summary  ************

 0 ERRORS exist in your database.
 4 WARNINGS that Oracle suggests are addressed to improve database performance.
 2 INFORMATIONAL messages that should be reviewed prior to your upgrade.

 After your database is upgraded and open in normal mode you must run
 rdbms/admin/catuppst.sql which executes several required tasks and completes
 the upgrade process.

 You should follow that with the execution of rdbms/admin/utlrp.sql, and a
 comparison of invalid objects before and after the upgrade using
 rdbms/admin/utluiobj.sql

 If needed you may want to upgrade your timezone data using the process
 described in My Oracle Support note 977512.1
                  ***********************************


3.Run the preupgrade fixup script present in the /u01/app/orcl/oracle/cfgtoollogs/DUPDB/preupgrade/preupgrade_fixups.sql
[oracle@ol6-112-rac2 preupgrade]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Thu Jun 19 15:06:53 2014

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


Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> @ preupgrade_fixups.sql
Pre-Upgrade Fixup Script Generated on 2014-06-19 14:58:18  Version: 12.1.0.1 Build: 006
Beginning Pre-Upgrade Fixups...

PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


**********************************************************************
Check Tag:     DEFAULT_PROCESS_COUNT
Check Summary: Verify min process count is not too low
Fix Summary:   Review and increase if needed, your PROCESSES value.
**********************************************************************
Fixup Returned Information:
WARNING: --> Process Count may be too low

     Database has a maximum process count of 150 which is lower than the
     default value of 300 for this release.
     You should update your processes value prior to the upgrade
     to a value of at least 300.
     For example:
        ALTER SYSTEM SET PROCESSES=300 SCOPE=SPFILE
     or update your init.ora file.
**********************************************************************


PL/SQL procedure successfully completed.


**********************************************************************
Check Tag:     EM_PRESENT
Check Summary: Check if Enterprise Manager is present
Fix Summary:   Execute emremove.sql prior to upgrade.
**********************************************************************
Fixup Returned Information:
WARNING: --> Enterprise Manager Database Control repository found in the database

     In Oracle Database 12c, Database Control is removed during
     the upgrade. To save time during the Upgrade, this action
     can be done prior to upgrading using the following steps after
     copying rdbms/admin/emremove.sql from the new Oracle home
   - Stop EM Database Control:
    $> emctl stop dbconsole

   - Connect to the Database using the SYS account AS SYSDBA:

   SET ECHO ON;
   SET SERVEROUTPUT ON;
   @emremove.sql
     Without the set echo and serveroutput commands you will not
     be able to follow the progress of the script.
**********************************************************************


PL/SQL procedure successfully completed.


**********************************************************************
Check Tag:     DBMS_LDAP_DEPENDENCIES_EXIST
Check Summary: Check for dependency on DBMS_LDAP package
Fix Summary:   Network Objects must be reviewed manually.
**********************************************************************
Fixup Returned Information:
WARNING: --> Existing DBMS_LDAP dependent objects

     Database contains schemas with objects dependent on DBMS_LDAP package.
     Refer to the Upgrade Guide for instructions to configure Network ACLs.
     USER APEX_030200 has dependent objects.
**********************************************************************


PL/SQL procedure successfully completed.


**********************************************************************
Check Tag:     AMD_EXISTS
Check Summary: Check to see if AMD is present in the database
Fix Summary:   Manually execute ORACLE_HOME/oraolap/admin/catnoamd.sql script to remove OLAP.
**********************************************************************
Fixup Returned Information:
INFORMATION: --> OLAP Catalog(AMD) exists in database

     Starting with Oracle Database 12c, OLAP is desupported.
     If you are not using the OLAP Catalog component and want
     to remove it, then execute the
     ORACLE_HOME/oraolap/admin/catnoamd.sql script before or
     after the upgrade.
**********************************************************************


PL/SQL procedure successfully completed.


**********************************************************************
                      [Pre-Upgrade Recommendations]
**********************************************************************


PL/SQL procedure successfully completed.

                        *****************************************
                        ********* Dictionary Statistics *********
                        *****************************************

Please gather dictionary statistics 24 hours prior to
upgrading the database.
To gather dictionary statistics execute the following command
while connected as SYSDBA:
    EXECUTE dbms_stats.gather_dictionary_stats;

^^^ MANUAL ACTION SUGGESTED ^^^


PL/SQL procedure successfully completed.


           **************************************************
                ************* Fixup Summary ************

 4 fixup routines generated INFORMATIONAL messages that should be reviewed.


PL/SQL procedure successfully completed.

**************** Pre-Upgrade Fixup Script Complete *********************

PL/SQL procedure successfully completed.


4.Copy the rdbms/admin/emremove.sql from the new oracle home to the source database and run the script against the database to be upgraded
oracle@ol6-112-rac1 admin]$ pwd
/u03/app/oracle/product/12.1.0/dbhome_1/rdbms/admin
[oracle@ol6-112-rac1 admin]$ scp emremove.sql oracle@ol6-112-rac2:/tmp
emremove.sql                                                                                        100%   19KB  19.2KB/s   00:00
[oracle@ol6-112-rac1 admin]$
=============================
[oracle@ol6-112-rac2 tmp]$ export ORACLE_UNQNAME=dupdb
[oracle@ol6-112-rac2 tmp]$ emctl stop dbconsole
OC4J Configuration issue. /u01/app/orcl/oracle/product/11.2.0.3/db_1/oc4j/j2ee/OC4J_DBConsole_ol6-112-rac2_dupdb not found.
=========================================
SQL> set echo on
SQL> set serveroutput on
SQL> @emremove.sql
SQL> Rem
SQL> Rem $Header: rdbms/admin/emremove.sql /main/2 2012/07/27 01:19:53 spramani Exp $
SQL> Rem
SQL> Rem emremove.sql
SQL> Rem
SQL> Rem Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
SQL> Rem
SQL> Rem    NAME
SQL> Rem emremove.sql - This script removes EM Schema from RDBMS
SQL> Rem
SQL> Rem    DESCRIPTION
Dropping synonym : SMP_EMD_NVPAIR ...
Dropping synonym : SMP_EMD_NVPAIR_ARRAY ...
Dropping synonym : SMP_EMD_STRING_ARRAY ...
Dropping synonym : SMP_EMD_STRING_ARRAY_ARRAY ...
Dropping synonym : SMP_EMD_TARGET_OBJ ...
Dropping synonym : SMP_EMD_TARGET_OBJ_ARRAY ...
Finished phase 5
Starting phase 6 : Dropping Oracle Enterprise Manager related other roles ...
Finished phase 6
The Oracle Enterprise Manager related schemas and objects are dropped.
Do the manual steps to studown the DB Control if not done before running this
script and then delete the DB Control configuration files

PL/SQL procedure successfully completed.

============================

5.gather dictionary statistics
SQL>
SQL>  EXECUTE dbms_stats.gather_dictionary_stats;
PL/SQL procedure successfully completed.

6.configure the controlfile autobackup 'ON' on the source database and take full backup of the database.
[oracle@ol6-112-rac2 rman]$
[oracle@ol6-112-rac2 rman]$ rman target="/"

Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jun 19 14:36:28 2014

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

connected to target database: DUPDB (DBID=575818374)
RMAN> configure controlfile autobackup on;

new RMAN configuration parameters:
CONFIGURE CONTROLFILE AUTOBACKUP ON;
new RMAN configuration parameters are successfully stored


7. Scrip to take full backup of database plus archivelog
run
{
set controlfile autobackup format for device type disk to '/u03/backup_db2/cntrl_%F';
backup database
format="/u03/backup_db2/%U"
plus archivelog
format="/u03/backup_db2/%U";
}

8. Take backup of the database
[oracle@ol6-112-rac2 rman]$ rman target="/"

Recovery Manager: Release 11.2.0.3.0 - Production on Thu Jun 19 15:30:37 2014

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

connected to target database: DUPDB (DBID=575818374)

RMAN> @ rman_backup_db_full.cmd

RMAN> run
2> {
3> set controlfile autobackup format for device type disk to '/u03/backup_db2/cntrl_%F';
4> backup database
5> format="/u03/backup_db2/%U"
6> plus archivelog
7> format="/u03/backup_db2/%U";
8> }
executing command: SET CONTROLFILE AUTOBACKUP FORMAT


Starting backup at 19-JUN-14
current log archived
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=42 device type=DISK
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=1 RECID=1 STAMP=850663295
input archived log thread=1 sequence=2 RECID=2 STAMP=850663336
input archived log thread=1 sequence=3 RECID=3 STAMP=850663357
input archived log thread=1 sequence=4 RECID=4 STAMP=850663378
input archived log thread=1 sequence=5 RECID=5 STAMP=850663396
input archived log thread=1 sequence=6 RECID=6 STAMP=850663676
input archived log thread=1 sequence=7 RECID=7 STAMP=850663844
channel ORA_DISK_1: starting piece 1 at 19-JUN-14
channel ORA_DISK_1: finished piece 1 at 19-JUN-14
piece handle=/u03/backup_db2/01pb86d5_1_1 tag=TAG20140619T153045 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:35
Finished backup at 19-JUN-14

Starting backup at 19-JUN-14
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u03/oradata/dupdb/system01.dbf
input datafile file number=00002 name=/u03/oradata/dupdb/sysaux01.dbf
input datafile file number=00005 name=/u03/oradata/dupdb/example01.dbf
input datafile file number=00003 name=/u03/oradata/dupdb/undotbs01.dbf
input datafile file number=00004 name=/u03/oradata/dupdb/users01.dbf
channel ORA_DISK_1: starting piece 1 at 19-JUN-14
channel ORA_DISK_1: finished piece 1 at 19-JUN-14
piece handle=/u03/backup_db2/02pb86e9_1_1 tag=TAG20140619T153121 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:02:05
Finished backup at 19-JUN-14

Starting backup at 19-JUN-14
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=8 RECID=8 STAMP=850664007
channel ORA_DISK_1: starting piece 1 at 19-JUN-14
channel ORA_DISK_1: finished piece 1 at 19-JUN-14
piece handle=/u03/backup_db2/03pb86i8_1_1 tag=TAG20140619T153327 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 19-JUN-14

Starting Control File and SPFILE Autobackup at 19-JUN-14
piece handle=/u03/backup_db2/cntrl_c-575818374-20140619-00 comment=NONE
Finished Control File and SPFILE Autobackup at 19-JUN-14

RMAN> **end-of-file**


9.copy the backup pieces and the password file to the target location with the new 12c database home installed.
 [oracle@ol6-112-rac2 u03]$ scp -r backup_db2/ ol6-112-rac1:/u03/backup_dupdb
cntrl_c-575818374-20140619-00                                                                       100% 9920KB   9.7MB/s   00:00
03pb86i8_1_1                                                                                        100%   30KB  29.5KB/s   00:00
01pb86d5_1_1                                                                                        100%  288MB  10.3MB/s   00:28
02pb86e9_1_1                                                                                        100% 1211MB   7.6MB/s   02:40
[oracle@ol6-112-rac2 dbs]$ scp initdupdb.ora  oracle@ol6-112-rac1:/u03/app/oracle/product/12.1.0/dbhome_1/dbs
initdupdb.ora                                                                                       100% 1057     1.0KB/s   00:00

C. RMAN duplicate and upgradation of database to 12c from 11.2.0.3
 1.start the auxiliary database using the pfile with only parameter db_name
[oracle@ol6-112-rac1 dbs]$ cat initnew12cdb.ora
db_name=new12cdb
[oracle@ol6-112-rac1 dbs]$ export ORACLE_SID=new12cdb
[oracle@ol6-112-rac1 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.1.0 Production on Fri Jun 20 10:59:14 2014

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

Connected to an idle instance.

SQL> startup nomount pfile=?/dbs/initnew12cdb.ora
ORACLE instance started.

Total System Global Area  217157632 bytes
Fixed Size                  2286656 bytes
Variable Size             159386560 bytes
Database Buffers           50331648 bytes
Redo Buffers                5152768 bytes
SQL>

2. Create the password file for the auxiliary database
[oracle@ol6-112-rac1 dbs]$ orapwd file=orapwnew12cdb entries=10 password=sys123 force=y
[oracle@ol6-112-rac1 dbs]$ ls orapwnew12cdb
orapwnew12cdb

3.create a dedicated listener configuration for the auxiliary database
[oracle@ol6-112-rac1 admin]$ cat listener.ora
LISTEN_FOR_NEW12CDB=
(DESCRIPTION_LIST =
        (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.111)(PORT = 1524))
        )
)
SID_LIST_LISTEN_FOR_NEW12CDB=
(SID_LIST=
        (SID_DESC=
        (ORACLE_HOME=/u03/app/oracle/product/12.1.0/dbhome_1)
        (SID_NAME=new12cdb)
        )
 )

[oracle@ol6-112-rac1 admin]$ lsnrctl start LISTEN_FOR_NEW12CDB

LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 20-JUN-2014 11:06:43

Copyright (c) 1991, 2013, Oracle.  All rights reserved.

Starting /u03/app/oracle/product/12.1.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 12.1.0.1.0 - Production
System parameter file is /u03/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
Log messages written to /u03/app/oracle/diag/tnslsnr/ol6-112-rac1/listen_for_new12cdb/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.111)(PORT=1524)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.111)(PORT=1524)))
STATUS of the LISTENER
------------------------
Alias                     LISTEN_FOR_NEW12CDB
Version                   TNSLSNR for Linux: Version 12.1.0.1.0 - Production
Start Date                20-JUN-2014 11:06:44
Uptime                    0 days 0 hr. 0 min. 1 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u03/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora
Listener Log File         /u03/app/oracle/diag/tnslsnr/ol6-112-rac1/listen_for_new12cdb/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.111)(PORT=1524)))
Services Summary...
Service "new12cdb" has 1 instance(s).
  Instance "new12cdb", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully

4.Create the netservice name for the auxiliary database in $ORACLE_HOME/network/admin/tnsnames.ora file
[oracle@ol6-112-rac1 admin]$ vi tnsnames.ora
[oracle@ol6-112-rac1 admin]$ tnsping new12cdb

TNS Ping Utility for Linux: Version 12.1.0.1.0 - Production on 20-JUN-2014 11:14:51

Copyright (c) 1997, 2013, Oracle.  All rights reserved.

Used parameter files:


Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = ol6-112-rac1)(PORT = 1524)) (CONNECT_DATA = (SERVER = DEDICATED) (Service_NAME = new12cdb)))
OK (10 msec)

5.Check the auxiliary database is connecting using the password file
[oracle@ol6-112-rac1 dbs]$ sqlplus sys/sys123@new12cdb as sysdba

SQL*Plus: Release 12.1.0.1.0 Production on Fri Jun 20 11:18:23 2014

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


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL>

6.Check the backup of the source database is present in the backup location
[oracle@ol6-112-rac1 backup_db2]$ pwd
/u03/backup_dupdb/backup_db2
[oracle@ol6-112-rac1 backup_db2]$ ls -ltr
total 1544280
-rw-r----- 1 oracle oinstall   10158080 Jun 19 15:41 cntrl_c-575818374-20140619-00
-rw-r----- 1 oracle oinstall      30208 Jun 19 15:41 03pb86i8_1_1
-rw-r----- 1 oracle oinstall  301484544 Jun 19 15:41 01pb86d5_1_1
-rw-r----- 1 oracle oinstall 1269661696 Jun 19 15:44 02pb86e9_1_1

7.Duplicate the database using backup pieces in the backup location and connect only to the auxiliary database using the script.
run
{
duplicate database 'dupdb' to 'new12cdb'
backup location='/u03/backup_dupdb/backup_db2'
spfile
set db_name='new12cdb'
set control_files='/u03/oradata/new12cdb/control01.ctl','/u03/fra/new12cdb/control02.ctl'
set db_unique_name='new12cdb'
set audit_file_dest='/u01/app/orcl/oracle/admin/new12cdb/adump'
set dispatchers='(PROTOCOL=TCP) (SERVICE=new12cdbXDB)'
set memory_target='1024M'
set memory_max_target='1024M'
set sga_target='0'
set pga_aggregate_target='0'
set local_listener=''
set log_archive_dest_1='LOCATION=/u03/fra'
set log_file_name_convert='/u03/fra/DUPDB/onlinelog','/u03/oradata/new12cdb'
noopen #not open the database in resetlogs mode
db_file_name_convert='/u03/oradata/dupdb','/u03/oradata/new12cdb';
}

8.Output of execution of duplicate script
[oracle@ol6-112-rac1 rman]$ rman auxiliary="sys/sys123@new12cdb" @ rman_duplicate_noopen.cmd | tee -a rman_duplicate_noopen.log

Recovery Manager: Release 12.1.0.1.0 - Production on Fri Jun 20 11:37:18 2014

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

connected to auxiliary database: NEW12CDB (not mounted)

RMAN> run
2> {
3> set newname for tempfile 1 to '/u03/oradata/new12cdb/temp01.dbf';
4> duplicate database 'dupdb' to 'new12cdb'
5> backup location='/u03/backup_dupdb/backup_db2'
6> spfile
7> set db_name='new12cdb'
8> set control_files='/u03/oradata/new12cdb/control01.ctl','/u03/fra/new12cdb/control02.ctl'
9> set db_unique_name='new12cdb'
10> set audit_file_dest='/u01/app/orcl/oracle/admin/new12cdb/adump'
11> set dispatchers='(PROTOCOL=TCP) (SERVICE=new12cdbXDB)'
12> set memory_target='1024M'
13> set memory_max_target='1024M'
14> set sga_target='0'
15> set pga_aggregate_target='0'
16> set local_listener=''
17> set log_archive_dest_1='LOCATION=/u03/fra'
18> set log_file_name_convert='/u03/fra/DUPDB/onlinelog','/u03/oradata/new12cdb'
19> noopen #not open the database in resetlogs mode
20> db_file_name_convert='/u03/oradata/dupdb','/u03/oradata/new12cdb';
21> }
22>
23>
24>
executing command: SET NEWNAME

Starting Duplicate Db at 20-JUN-14

contents of Memory Script:
{
   restore clone spfile to  '/u03/app/oracle/product/12.1.0/dbhome_1/dbs/spfilenew12cdb.ora' from
 '/u03/backup_dupdb/backup_db2/cntrl_c-575818374-20140619-00';
   sql clone "alter system set spfile= ''/u03/app/oracle/product/12.1.0/dbhome_1/dbs/spfilenew12cdb.ora''";
}
executing Memory Script

Starting restore at 20-JUN-14
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=20 device type=DISK

channel ORA_AUX_DISK_1: restoring spfile from AUTOBACKUP /u03/backup_dupdb/backup_db2/cntrl_c-575818374-20140619-00
channel ORA_AUX_DISK_1: SPFILE restore from AUTOBACKUP complete
Finished restore at 20-JUN-14

sql statement: alter system set spfile= ''/u03/app/oracle/product/12.1.0/dbhome_1/dbs/spfilenew12cdb.ora''

contents of Memory Script:
{
   sql clone "alter system set  db_name =
 ''NEW12CDB'' comment=
 ''duplicate'' scope=spfile";
   sql clone "alter system set  db_name =
 ''new12cdb'' comment=
 '''' scope=spfile";
   sql clone "alter system set  control_files =
 ''/u03/oradata/new12cdb/control01.ctl'', ''/u03/fra/new12cdb/control02.ctl'' comment=
 '''' scope=spfile";
   sql clone "alter system set  db_unique_name =
 ''new12cdb'' comment=
 '''' scope=spfile";
   sql clone "alter system set  audit_file_dest =
 ''/u01/app/orcl/oracle/admin/new12cdb/adump'' comment=
 '''' scope=spfile";
   sql clone "alter system set  dispatchers =
 ''(PROTOCOL=TCP) (SERVICE=new12cdbXDB)'' comment=
 '''' scope=spfile";
   sql clone "alter system set  memory_target =
 1024M comment=
 '''' scope=spfile";
   sql clone "alter system set  memory_max_target =
 1024M comment=
 '''' scope=spfile";
   sql clone "alter system set  sga_target =
 0 comment=
 '''' scope=spfile";
   sql clone "alter system set  pga_aggregate_target =
 0 comment=
 '''' scope=spfile";
   sql clone "alter system set  local_listener =
 '''' comment=
 '''' scope=spfile";
   sql clone "alter system set  log_archive_dest_1 =
 ''LOCATION=/u03/fra'' comment=
 '''' scope=spfile";
   sql clone "alter system set  log_file_name_convert =
 ''/u03/fra/DUPDB/onlinelog'', ''/u03/oradata/new12cdb'' comment=
 '''' scope=spfile";
   shutdown clone immediate;
   startup clone nomount;
}
executing Memory Script

sql statement: alter system set  db_name =  ''NEW12CDB'' comment= ''duplicate'' scope=spfile

sql statement: alter system set  db_name =  ''new12cdb'' comment= '''' scope=spfile

sql statement: alter system set  control_files =  ''/u03/oradata/new12cdb/control01.ctl'', ''/u03/fra/new12cdb/control02.ctl'' comment= '''' scope=spfile

sql statement: alter system set  db_unique_name =  ''new12cdb'' comment= '''' scope=spfile

sql statement: alter system set  audit_file_dest =  ''/u01/app/orcl/oracle/admin/new12cdb/adump'' comment= '''' scope=spfile

sql statement: alter system set  dispatchers =  ''(PROTOCOL=TCP) (SERVICE=new12cdbXDB)'' comment= '''' scope=spfile

sql statement: alter system set  memory_target =  1024M comment= '''' scope=spfile

sql statement: alter system set  memory_max_target =  1024M comment= '''' scope=spfile

sql statement: alter system set  sga_target =  0 comment= '''' scope=spfile

sql statement: alter system set  pga_aggregate_target =  0 comment= '''' scope=spfile

sql statement: alter system set  local_listener =  '''' comment= '''' scope=spfile

sql statement: alter system set  log_archive_dest_1 =  ''LOCATION=/u03/fra'' comment= '''' scope=spfile

sql statement: alter system set  log_file_name_convert =  ''/u03/fra/DUPDB/onlinelog'', ''/u03/oradata/new12cdb'' comment= '''' scope=spfile

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area    1068937216 bytes

Fixed Size                     2296576 bytes
Variable Size                671089920 bytes
Database Buffers             390070272 bytes
Redo Buffers                   5480448 bytes

contents of Memory Script:
{
   sql clone "alter system set  db_name =
 ''DUPDB'' comment=
 ''Modified by RMAN duplicate'' scope=spfile";
   sql clone "alter system set  db_unique_name =
 ''NEW12CDB'' comment=
 ''Modified by RMAN duplicate'' scope=spfile";
   shutdown clone immediate;
   startup clone force nomount
   restore clone primary controlfile from  '/u03/backup_dupdb/backup_db2/cntrl_c-575818374-20140619-00';
   alter clone database mount;
}
executing Memory Script

sql statement: alter system set  db_name =  ''DUPDB'' comment= ''Modified by RMAN duplicate'' scope=spfile

sql statement: alter system set  db_unique_name =  ''NEW12CDB'' comment= ''Modified by RMAN duplicate'' scope=spfile

Oracle instance shut down

Oracle instance started

Total System Global Area    1068937216 bytes

Fixed Size                     2296576 bytes
Variable Size                671089920 bytes
Database Buffers             390070272 bytes
Redo Buffers                   5480448 bytes

Starting restore at 20-JUN-14
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=19 device type=DISK

channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
output file name=/u03/oradata/new12cdb/control01.ctl
output file name=/u03/fra/new12cdb/control02.ctl
Finished restore at 20-JUN-14

database mounted
released channel: ORA_AUX_DISK_1
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=19 device type=DISK

contents of Memory Script:
{
   set until scn  1286566;
   set newname for datafile  1 to
 "/u03/oradata/new12cdb/system01.dbf";
   set newname for datafile  2 to
 "/u03/oradata/new12cdb/sysaux01.dbf";
   set newname for datafile  3 to
 "/u03/oradata/new12cdb/undotbs01.dbf";
   set newname for datafile  4 to
 "/u03/oradata/new12cdb/users01.dbf";
   set newname for datafile  5 to
 "/u03/oradata/new12cdb/example01.dbf";
   restore
   clone database
   ;
}
executing Memory Script

executing command: SET until clause

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting restore at 20-JUN-14
using channel ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00001 to /u03/oradata/new12cdb/system01.dbf
channel ORA_AUX_DISK_1: restoring datafile 00002 to /u03/oradata/new12cdb/sysaux01.dbf
channel ORA_AUX_DISK_1: restoring datafile 00003 to /u03/oradata/new12cdb/undotbs01.dbf
channel ORA_AUX_DISK_1: restoring datafile 00004 to /u03/oradata/new12cdb/users01.dbf
channel ORA_AUX_DISK_1: restoring datafile 00005 to /u03/oradata/new12cdb/example01.dbf
channel ORA_AUX_DISK_1: reading from backup piece /u03/backup_dupdb/backup_db2/02pb86e9_1_1
channel ORA_AUX_DISK_1: piece handle=/u03/backup_dupdb/backup_db2/02pb86e9_1_1 tag=TAG20140619T153121
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:02:05
Finished restore at 20-JUN-14

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

datafile 1 switched to datafile copy
input datafile copy RECID=6 STAMP=850736385 file name=/u03/oradata/new12cdb/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=7 STAMP=850736385 file name=/u03/oradata/new12cdb/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=8 STAMP=850736385 file name=/u03/oradata/new12cdb/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=9 STAMP=850736385 file name=/u03/oradata/new12cdb/users01.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=10 STAMP=850736385 file name=/u03/oradata/new12cdb/example01.dbf

contents of Memory Script:
{
   set until scn  1286566;
   recover
   clone database
    delete archivelog
   ;
}
executing Memory Script

executing command: SET until clause

Starting recover at 20-JUN-14
using channel ORA_AUX_DISK_1

starting media recovery

channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=8
channel ORA_AUX_DISK_1: reading from backup piece /u03/backup_dupdb/backup_db2/03pb86i8_1_1
channel ORA_AUX_DISK_1: piece handle=/u03/backup_dupdb/backup_db2/03pb86i8_1_1 tag=TAG20140619T153327
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
archived log file name=/u03/fra/1_8_850604301.dbf thread=1 sequence=8
channel clone_default: deleting archived log(s)
archived log file name=/u03/fra/1_8_850604301.dbf RECID=1 STAMP=850736387
media recovery complete, elapsed time: 00:00:00
Finished recover at 20-JUN-14
Oracle instance started

Total System Global Area    1068937216 bytes

Fixed Size                     2296576 bytes
Variable Size                671089920 bytes
Database Buffers             390070272 bytes
Redo Buffers                   5480448 bytes

contents of Memory Script:
{
   sql clone "alter system set  db_name =
 ''NEW12CDB'' comment=
 ''Reset to original value by RMAN'' scope=spfile";
   sql clone "alter system reset  db_unique_name scope=spfile";
}
executing Memory Script

sql statement: alter system set  db_name =  ''NEW12CDB'' comment= ''Reset to original value by RMAN'' scope=spfile

sql statement: alter system reset  db_unique_name scope=spfile
Oracle instance started

Total System Global Area    1068937216 bytes

Fixed Size                     2296576 bytes
Variable Size                671089920 bytes
Database Buffers             390070272 bytes
Redo Buffers                   5480448 bytes
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "NEW12CDB" RESETLOGS ARCHIVELOG
  MAXLOGFILES     16
  MAXLOGMEMBERS      3
  MAXDATAFILES      100
  MAXINSTANCES     8
  MAXLOGHISTORY      292
 LOGFILE
  GROUP   1 ( '/u03/oradata/new12cdb/o1_mf_1_9t3m1q2g_.log' ) SIZE 50 M  REUSE,
  GROUP   2 ( '/u03/oradata/new12cdb/o1_mf_2_9t3m1tcw_.log' ) SIZE 50 M  REUSE,
  GROUP   3 ( '/u03/oradata/new12cdb/o1_mf_3_9t3m1y6l_.log' ) SIZE 50 M  REUSE
 DATAFILE
  '/u03/oradata/new12cdb/system01.dbf'
 CHARACTER SET AL32UTF8


contents of Memory Script:
{
   set newname for tempfile  1 to
 "/u03/oradata/new12cdb/temp01.dbf";
   switch clone tempfile all;
   catalog clone datafilecopy  "/u03/oradata/new12cdb/sysaux01.dbf",
 "/u03/oradata/new12cdb/undotbs01.dbf",
 "/u03/oradata/new12cdb/users01.dbf",
 "/u03/oradata/new12cdb/example01.dbf";
   switch clone datafile all;
}
executing Memory Script

executing command: SET NEWNAME

renamed tempfile 1 to /u03/oradata/new12cdb/temp01.dbf in control file

cataloged datafile copy
datafile copy file name=/u03/oradata/new12cdb/sysaux01.dbf RECID=1 STAMP=850736407
cataloged datafile copy
datafile copy file name=/u03/oradata/new12cdb/undotbs01.dbf RECID=2 STAMP=850736407
cataloged datafile copy
datafile copy file name=/u03/oradata/new12cdb/users01.dbf RECID=3 STAMP=850736407
cataloged datafile copy
datafile copy file name=/u03/oradata/new12cdb/example01.dbf RECID=4 STAMP=850736407

datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=850736407 file name=/u03/oradata/new12cdb/sysaux01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=2 STAMP=850736407 file name=/u03/oradata/new12cdb/undotbs01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=3 STAMP=850736407 file name=/u03/oradata/new12cdb/users01.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=4 STAMP=850736407 file name=/u03/oradata/new12cdb/example01.dbf
Leaving database unopened, as requested
Finished Duplicate Db at 20-JUN-14

Recovery Manager complete.

9.Open the database in reselogs upgrade mode
[oracle@ol6-112-rac1 rman]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.1.0 Production on Fri Jun 20 11:41:52 2014

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


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> select name,open_Mode from v$database;

NAME      OPEN_MODE
--------- --------------------
NEW12CDB  MOUNTED

SQL> alter database open resetlogs upgrade;

Database altered.

SQL> select instance_name,status,logins from v$instance;

INSTANCE_NAME    STATUS       LOGINS
---------------- ------------ ----------
new12cdb         OPEN MIGRATE RESTRICTED


10.Upgrade the database using perl script with parallelism 5
[oracle@ol6-112-rac1 trace]$ cd $ORACLE_HOME/rdbms/admin
[oracle@ol6-112-rac1 admin]$ echo $ORACLE_HOME
/u03/app/oracle/product/12.1.0/dbhome_1
[oracle@ol6-112-rac1 admin]$ nohup $ORACLE_HOME/perl/bin/perl catctl.pl -n 4 catupgrd.sql &
Analyzing file catupgrd.sql
Serial   Phase #: 0 Files: 1      Time: 292s
Serial   Phase #: 1 Files: 3      Time: 76s
Restart  Phase #: 2 Files: 1      Time: 2s
Parallel Phase #: 3 Files: 18     Time: 29s
Restart  Phase #: 4 Files: 1      Time: 0s
Serial   Phase #: 5 Files: 5      Time: 28s
Serial   Phase #: 6 Files: 1      Time: 17s
Serial   Phase #: 7 Files: 3      Time: 14s
Restart  Phase #: 8 Files: 1      Time: 0s
Parallel Phase #: 9 Files: 60     Time: 95s
Restart  Phase #:10 Files: 1      Time: 0s
Serial   Phase #:11 Files: 1      Time: 27s
Restart  Phase #:12 Files: 1      Time: 0s
Parallel Phase #:13 Files: 199    Time: 108s
Restart  Phase #:14 Files: 1      Time: 0s
Serial   Phase #:15 Files: 3      Time: 2s
Restart  Phase #:16 Files: 1      Time: 0s
Parallel Phase #:17 Files: 33     Time: 67s
Restart  Phase #:18 Files: 1      Time: 0s
Serial   Phase #:19 Files: 3      Time: 14s
Restart  Phase #:20 Files: 1      Time: 0s
Parallel Phase #:21 Files: 23     Time: 151s
Restart  Phase #:22 Files: 1      Time: 1s
Parallel Phase #:23 Files: 11     Time: 98s
Restart  Phase #:24 Files: 1      Time: 0s
Serial   Phase #:25 Files: 1      Time: 60s
Restart  Phase #:26 Files: 1      Time: 0s
Parallel Phase #:27 Files: 0      Time: 0s
Serial   Phase #:28 Files: 1      Time: 0s
Parallel Phase #:29 Files: 130    Time: 16s
Serial   Phase #:30 Files: 1      Time: 0s
Restart  Phase #:31 Files: 1      Time: 1s
Serial   Phase #:32 Files: 1      Time: 0s
Parallel Phase #:33 Files: 122    Time: 21s
Serial   Phase #:34 Files: 1      Time: 0s
Restart  Phase #:35 Files: 1      Time: 0s
Serial   Phase #:36 Files: 4      Time: 85s
Restart  Phase #:37 Files: 1      Time: 1s
Parallel Phase #:38 Files: 13     Time: 113s
Restart  Phase #:39 Files: 1      Time: 0s
Parallel Phase #:40 Files: 10     Time: 16s
Restart  Phase #:41 Files: 1      Time: 0s
Serial   Phase #:42 Files: 1      Time: 13s
Restart  Phase #:43 Files: 1      Time: 0s
Serial   Phase #:44 Files: 1      Time: 6s
Serial   Phase #:45 Files: 1      Time: 1s
Restart  Phase #:46 Files: 1      Time: 0s
Serial   Phase #:47 Files: 2      Time: 567s
Restart  Phase #:48 Files: 1      Time: 2s
Serial   Phase #:49 Files: 2      Time: 594s
Restart  Phase #:50 Files: 1      Time: 4s
Serial   Phase #:51 Files: 2      Time: 2784s
Restart  Phase #:52 Files: 1      Time: 6s
Serial   Phase #:53 Files: 1      Time: 5s
Serial   Phase #:54 Files: 1      Time: 332s
Serial   Phase #:55 Files: 1      Time: 190s
Serial   Phase #:56 Files: 1      Time: 98s
Grand Total Time: 5936s


11..Run the post upgrade fixup script created in the preupgrade step against the target database.
[oracle@ol6-112-rac1 tmp]
[oracle@ol6-112-rac2 tmp]$ scp /u01/app/orcl/oracle/cfgtoollogs/DUPDB/preupgrade/postupgrade_fixups.sql
 oracle@ol6-112-rac1:/tmp
postupgrade_fixups.sql                                                                              100% 2382     2.3KB/s   00:00
$ clear
[oracle@ol6-112-rac1 tmp]$ ls post*
postupgrade_fixups.sql
[oracle@ol6-112-rac1 tmp]$ sqlplus / as sysdba

SQL*Plus: Release 12.1.0.1.0 Production on Fri Jun 20 09:22:44 2014

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


Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options

SQL> @ postupgrade_fixups.sql
Post Upgrade Fixup Script Generated on 2014-06-19 14:58:18  Version: 12.1.0.1 Build: 006
Beginning Post-Upgrade Fixups...

PL/SQL procedure successfully completed.


PL/SQL procedure successfully completed.


**********************************************************************
Check Tag:     AWR_DBIDS_PRESENT
Check Summary: Verify if AWR contains inactive DBIDs
Fix Summary:   The inactive DBIDs in AWR may need additional updating after upgrading.
**********************************************************************
Fixup Returned Information:
WARNING: --> Inactive DBIDs found in AWR

     AWR contains inactive DBIDs which may need additional updating after
     upgrading.
**********************************************************************


PL/SQL procedure successfully completed.


**********************************************************************
Check Tag:     OLD_TIME_ZONES_EXIST
Check Summary: Check for use of older timezone data file
Fix Summary:   Update the timezone using the DBMS_DST package after upgrade is complete.
**********************************************************************
Fixup Returned Information:
INFORMATION: --> Older Timezone in use

     Database is using a time zone file older than version 18.
     After the upgrade, it is recommended that DBMS_DST package
     be used to upgrade the 12.1.0.1.0 database time zone version
     to the latest version which comes with the new release.
     Please refer to My Oracle Support note number 977512.1 for details.
**********************************************************************


PL/SQL procedure successfully completed.

**********************************************************************
                     [Post-Upgrade Recommendations]
**********************************************************************


PL/SQL procedure successfully completed.

                        *****************************************
                        ******** Fixed Object Statistics ********
                        *****************************************

Please create stats on fixed objects two weeks
after the upgrade using the command:
   EXECUTE DBMS_STATS.GATHER_FIXED_OBJECTS_STATS;

^^^ MANUAL ACTION SUGGESTED ^^^


PL/SQL procedure successfully completed.


           **************************************************
                ************* Fixup Summary ************

 2 fixup routines generated INFORMATIONAL messages that should be reviewed.


PL/SQL procedure successfully completed.

*************** Post Upgrade Fixup Script Complete ********************

PL/SQL procedure successfully completed.


12.Upgrade the timezone version to 18;
conn / as sysdba
shutdown immediate;
startup upgrade;
set serveroutput on
 
– check if previous prepare window is ended
 
SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME;
 
– output should be
– PROPERTY_NAME VALUE
– —————————- ——————————
– DST_PRIMARY_TT_VERSION 
– DST_SECONDARY_TT_VERSION 0
– DST_UPGRADE_STATE NONE
 
purge dba_recyclebin;
 
TRUNCATE TABLE SYS.DST$TRIGGER_TABLE;
TRUNCATE TABLE sys.dst$affected_tables;
TRUNCATE TABLE sys.dst$error_table;
 
alter session set “_with_subquery”=materialize;
alter session set “_simple_view_merging”=TRUE;
 
 
EXEC DBMS_DST.BEGIN_UPGRADE(18);
- check if this select
 
SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME;
 
– gives this output:
– PROPERTY_NAME VALUE
– ————————— ——————————
– DST_PRIMARY_TT_VERSION 
– DST_SECONDARY_TT_VERSION 
– DST_UPGRADE_STATE UPGRADE
 
shutdown immediate
startup
 
alter session set “_with_subquery”=materialize;
alter session set “_simple_view_merging”=TRUE;
 
set serveroutput on
VAR numfail number
BEGIN
DBMS_DST.UPGRADE_DATABASE(:numfail,
parallel => TRUE,
log_errors => TRUE,
log_errors_table => ‘SYS.DST$ERROR_TABLE’,
log_triggers_table => ‘SYS.DST$TRIGGER_TABLE’,
error_on_overlap_time => FALSE,
error_on_nonexisting_time => FALSE);
DBMS_OUTPUT.PUT_LINE(’Failures:’|| :numfail);
END;
/
 
– ouput of this will be a list of tables like:
 
– Table list: SYSMAN.AQ$_MGMT_NOTIFY_QTABLE_S
– Number of failures: 0
 
– if there where no failures then end the upgrade.
 
VAR fail number
BEGIN
DBMS_DST.END_UPGRADE(:fail);
DBMS_OUTPUT.PUT_LINE(’Failures:’|| :fail);
END;
/
 
 
– output that will be seen:
– An upgrade window has been successfully ended.
– Failures:0
 
SELECT PROPERTY_NAME, SUBSTR(property_value, 1, 30) value
FROM DATABASE_PROPERTIES
WHERE PROPERTY_NAME LIKE ‘DST_%’
ORDER BY PROPERTY_NAME;
 
– needed output:
– PROPERTY_NAME VALUE
– —————————- ——————————
– DST_PRIMARY_TT_VERSION 
– DST_SECONDARY_TT_VERSION 0
– DST_UPGRADE_STATE NONE
 
 
SELECT * FROM v$timezone_file;
 
FILENAME                VERSION
——————– ———-
timezlrg_14.dat              18
select TZ_VERSION from registry$database;
 
update registry$database set TZ_VERSION = (select version FROM v$timezone_file);
commit;

SQL> select * from v$timezone_file;

FILENAME                VERSION     CON_ID
-------------------- ---------- ----------
timezlrg_18.dat              18          0

Sunday, June 15, 2014

RMAN Duplicate database using database backups


Duplicate a database using database backups from a backup location,

1. Create a dedicated listener configuraition of the auxiliary database in the listener.ora file present in $ORACLE_HOME/network/amdin directory.

[oracle@ol6-112-rac1 admin]$ cat listener.ora
CV_DUPLICATE=
(DESCRIPTION_LIST =
        (DESCRIPTION =
        (ADDRESS = (PROTOCOL = IPC)(KEY =  EXTPROC1521))
        (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.111)(PORT = 1524))
        )
)
SID_LIST_CV_DUPLICATE=
(SID_LIST=
        (SID_DESC=
        (ORACLE_HOME=/u01/app/orcl/oracle/product/11.2.0.3/db_1)
        (SID_NAME=orcldp1)
        )
 )

2.Start the dedicated listener
lsnrctl start cv_duplicate

3.create a pfile for the duplicate database instance orcldp1 with only one entry db_name
[oracle@ol6-112-rac1 dbs]$ cat initorcldp1.ora
db_name=orcldp

4.Create password file for the duplicate database instance orcldp1 in the $ORACLE_HOME/dbs directory
orapwd file=orapworcldp1.ora password=sys123 entries=10 force=y

5.Start the auxiliary database in nomount mode
[oracle@ol6-112-rac1 dbs]$ export ORACLE_SID=orcldp1
[oracle@ol6-112-rac1 dbs]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Sun Jun 15 16:37:14 2014

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

Connected to an idle instance.

SQL> startup nomount
ORACLE instance started.

Total System Global Area  238034944 bytes
Fixed Size                  2227136 bytes
Variable Size             180356160 bytes
Database Buffers           50331648 bytes
Redo Buffers                5120000 bytes
SQL>


6.Write an entry for auxiliary database in $ORACLE_HOME/network/admin/tnsnames.ora file
orcldp1  =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ol6-112-rac1)(PORT = 1524))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcldp1)
    )
  )

7.copy all the backups of the database, it includes controlfile,spfile,archivelogs,datafiles
[oracle@ol6-112-rac1 backup]$ pwd
/u01/app/orcl/oracle/backup
[oracle@ol6-112-rac1 backup]$ ls -l
total 1945984
-rw-r----- 1 oracle oinstall 107080192 Jun 15 16:19 5hpatnmo_1_1
-rw-r----- 1 oracle oinstall  68341760 Jun 15 16:19 5ipatnmp_1_1
-rw-r----- 1 oracle oinstall  98089984 Jun 15 16:19 5jpatnmr_1_1
-rw-r----- 1 oracle oinstall 180637696 Jun 15 16:19 5kpatnmt_1_1
-rw-r----- 1 oracle oinstall 206191104 Jun 15 16:19 5lpatnmu_1_1
-rw-r----- 1 oracle oinstall  78526976 Jun 15 16:19 5mpatnoc_1_1
-rw-r----- 1 oracle oinstall   7284224 Jun 15 16:19 5npatnon_1_1
-rw-r----- 1 oracle oinstall 675307520 Jun 15 16:22 5opatnq7_1_1
-rw-r----- 1 oracle oinstall 535240704 Jun 15 16:22 5ppatnq7_1_1
-rw-r----- 1 oracle oinstall  16785408 Jun 15 16:20 5qpatnq8_1_1
-rw-r----- 1 oracle oinstall    165888 Jun 15 16:23 5rpatnvh_1_1
-rw-r----- 1 oracle oinstall  18907136 Jun 15 16:24 5tpato2e_1_1
-rw-r----- 1 oracle oinstall     98304 Jun 15 16:26 5vpato53_1_1
 

8.Script to perform duplicate database from backup location '/u01/app/orcl/oracle/backup'
duplicate database orcl to orcldp
backup location '/u01/app/orcl/oracle/backup'
device type disk
spfile
set instance_number='1'
set control_files='+DATA','+DATA'
set cluster_database='false'
set log_file_name_convert='+DATA/orcl/','+DATA/orcldp/'
set dispatchers='(PROTOCOL=TCP) (SERVICE=orcldpXDB)'
set audit_file_dest='/u01/app/orcl/oracle/admin/orcldp/adump'
db_file_name_convert='+DATA/orcl/','+DATA/orcldp/';

9.Output of script execution by connecting using rman
rman auxiliary="sys/sys123@orcldp1"

Recovery Manager: Release 11.2.0.3.0 - Production on Sun Jun 15 19:25:41 2014

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

connected to auxiliary database: ORCLDP (not mounted)

RMAN> 
RMAN> duplicate database orcl to orcldp
2> backup location '/u01/app/orcl/oracle/backup'
3> device type disk
4> spfile
5> set instance_number='1'
6> set control_files='+DATA','+DATA'
7> set cluster_database='false'
8> set log_file_name_convert='+DATA/orcl/','+DATA/orcldp/'
9> set dispatchers='(PROTOCOL=TCP) (SERVICE=orcldpXDB)'
10> set audit_file_dest='/u01/app/orcl/oracle/admin/orcldp/adump'
11> db_file_name_convert='+DATA/orcl/','+DATA/orcldp/';
Starting Duplicate Db at 15-jun-2014 19:25:48

contents of Memory Script:
{
   restore clone spfile to  '/u01/app/orcl/oracle/product/11.2.0.3/db_1/dbs/spfileorcldp1.ora' from 
 '/u01/app/orcl/oracle/backup/5vpato53_1_1';
   sql clone "alter system set spfile= ''/u01/app/orcl/oracle/product/11.2.0.3/db_1/dbs/spfileorcldp1.ora''";
}
executing Memory Script

Starting restore at 15-jun-2014 19:25:48
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=27 device type=DISK

channel ORA_AUX_DISK_1: restoring spfile from AUTOBACKUP /u01/app/orcl/oracle/backup/5vpato53_1_1
channel ORA_AUX_DISK_1: SPFILE restore from AUTOBACKUP complete
Finished restore at 15-jun-2014 19:25:50

sql statement: alter system set spfile= ''/u01/app/orcl/oracle/product/11.2.0.3/db_1/dbs/spfileorcldp1.ora''

contents of Memory Script:
{
   sql clone "alter system set  db_name = 
 ''ORCLDP'' comment=
 ''duplicate'' scope=spfile";
   sql clone "alter system set  instance_number = 
 1 comment=
 '''' scope=spfile";
   sql clone "alter system set  control_files = 
 ''+DATA'', ''+DATA'' comment=
 '''' scope=spfile";
   sql clone "alter system set  cluster_database = 
 false comment=
 '''' scope=spfile";
   sql clone "alter system set  log_file_name_convert = 
 ''+DATA/orcl/'', ''+DATA/orcldp/'' comment=
 '''' scope=spfile";
   sql clone "alter system set  dispatchers = 
 ''(PROTOCOL=TCP) (SERVICE=orcldpXDB)'' comment=
 '''' scope=spfile";
   sql clone "alter system set  audit_file_dest = 
 ''/u01/app/orcl/oracle/admin/orcldp/adump'' comment=
 '''' scope=spfile";
   shutdown clone immediate;
   startup clone nomount;
}
executing Memory Script

sql statement: alter system set  db_name =  ''ORCLDP'' comment= ''duplicate'' scope=spfile

sql statement: alter system set  instance_number =  1 comment= '''' scope=spfile

sql statement: alter system set  control_files =  ''+DATA'', ''+DATA'' comment= '''' scope=spfile

sql statement: alter system set  cluster_database =  false comment= '''' scope=spfile

sql statement: alter system set  log_file_name_convert =  ''+DATA/orcl/'', ''+DATA/orcldp/'' comment= '''' scope=spfile

sql statement: alter system set  dispatchers =  ''(PROTOCOL=TCP) (SERVICE=orcldpXDB)'' comment= '''' scope=spfile

sql statement: alter system set  audit_file_dest =  ''/u01/app/orcl/oracle/admin/orcldp/adump'' comment= '''' scope=spfile

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area     275578880 bytes

Fixed Size                     2227584 bytes
Variable Size                113246848 bytes
Database Buffers             155189248 bytes
Redo Buffers                   4915200 bytes

contents of Memory Script:
{
   sql clone "alter system set  control_files = 
  ''+DATA/orcldp/controlfile/current.324.850332389'', ''+DATA/orcldp/controlfile/current.308.850332389'' comment=
 ''Set by RMAN'' scope=spfile";
   sql clone "alter system set  db_name = 
 ''ORCL'' comment=
 ''Modified by RMAN duplicate'' scope=spfile";
   sql clone "alter system set  db_unique_name = 
 ''ORCLDP'' comment=
 ''Modified by RMAN duplicate'' scope=spfile";
   shutdown clone immediate;
   startup clone force nomount
   restore clone primary controlfile from  '/u01/app/orcl/oracle/backup/5tpato2e_1_1';
   alter clone database mount;
}
executing Memory Script

sql statement: alter system set  control_files =   ''+DATA/orcldp/controlfile/current.324.850332389'', ''+DATA/orcldp/controlfile/current.308.850332389'' comment= ''Set by RMAN'' scope=spfile

sql statement: alter system set  db_name =  ''ORCL'' comment= ''Modified by RMAN duplicate'' scope=spfile

sql statement: alter system set  db_unique_name =  ''ORCLDP'' comment= ''Modified by RMAN duplicate'' scope=spfile

Oracle instance shut down

Oracle instance started

Total System Global Area     275578880 bytes

Fixed Size                     2227584 bytes
Variable Size                117441152 bytes
Database Buffers             150994944 bytes
Redo Buffers                   4915200 bytes

Starting restore at 15-jun-2014 19:27:08
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=30 device type=DISK

channel ORA_AUX_DISK_1: restoring control file
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:16
output file name=+DATA/orcldp/controlfile/current.324.850332389
output file name=+DATA/orcldp/controlfile/current.308.850332389
Finished restore at 15-jun-2014 19:27:24

database mounted
released channel: ORA_AUX_DISK_1
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=30 device type=DISK
allocated channel: ORA_AUX_DISK_2
channel ORA_AUX_DISK_2: SID=34 device type=DISK
allocated channel: ORA_AUX_DISK_3
channel ORA_AUX_DISK_3: SID=35 device type=DISK
allocated channel: ORA_AUX_DISK_4
channel ORA_AUX_DISK_4: SID=36 device type=DISK
allocated channel: ORA_AUX_DISK_5
channel ORA_AUX_DISK_5: SID=37 device type=DISK
RMAN-05529: WARNING: DB_FILE_NAME_CONVERT resulted in invalid ASM names; names changed to disk group only.

contents of Memory Script:
{
   set until scn  2775287;
   set newname for datafile  1 to 
 "+DATA/orcldp/datafile/system.dbf";
   set newname for datafile  2 to 
 "+DATA/orcldp/datafile/sysaux.dbf";
   set newname for datafile  3 to 
 "+DATA/orcldp/datafile/undotbs1.dbf";
   set newname for datafile  4 to 
 "+DATA/orcldp/datafile/users.410.850308217";
   set newname for datafile  5 to 
 "+DATA/orcldp/datafile/undotbs2.411.850308181";
   set newname for datafile  6 to 
 "+DATA/orcldp/datafile/cattbs.472.850308137";
   restore
   clone database
   ;
}
executing Memory Script

executing command: SET until clause

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting restore at 15-jun-2014 19:27:59
using channel ORA_AUX_DISK_1
using channel ORA_AUX_DISK_2
using channel ORA_AUX_DISK_3
using channel ORA_AUX_DISK_4
using channel ORA_AUX_DISK_5

channel ORA_AUX_DISK_1: starting datafile backup set restore
channel ORA_AUX_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_1: restoring datafile 00001 to +DATA/orcldp/datafile/system.dbf
channel ORA_AUX_DISK_1: restoring datafile 00004 to +DATA/orcldp/datafile/users.410.850308217
channel ORA_AUX_DISK_1: reading from backup piece /u01/app/orcl/oracle/backup/5opatnq7_1_1
channel ORA_AUX_DISK_2: starting datafile backup set restore
channel ORA_AUX_DISK_2: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_2: restoring datafile 00003 to +DATA/orcldp/datafile/undotbs1.dbf
channel ORA_AUX_DISK_2: restoring datafile 00006 to +DATA/orcldp/datafile/cattbs.472.850308137
channel ORA_AUX_DISK_2: reading from backup piece /u01/app/orcl/oracle/backup/5qpatnq8_1_1
channel ORA_AUX_DISK_3: starting datafile backup set restore
channel ORA_AUX_DISK_3: specifying datafile(s) to restore from backup set
channel ORA_AUX_DISK_3: restoring datafile 00002 to +DATA/orcldp/datafile/sysaux.dbf
channel ORA_AUX_DISK_3: restoring datafile 00005 to +DATA/orcldp/datafile/undotbs2.411.850308181
channel ORA_AUX_DISK_3: reading from backup piece /u01/app/orcl/oracle/backup/5ppatnq7_1_1
channel ORA_AUX_DISK_2: piece handle=/u01/app/orcl/oracle/backup/5qpatnq8_1_1 tag=TAG20140615T162007
channel ORA_AUX_DISK_2: restored backup piece 1
channel ORA_AUX_DISK_2: restore complete, elapsed time: 00:01:05
channel ORA_AUX_DISK_3: piece handle=/u01/app/orcl/oracle/backup/5ppatnq7_1_1 tag=TAG20140615T162007
channel ORA_AUX_DISK_3: restored backup piece 1
channel ORA_AUX_DISK_3: restore complete, elapsed time: 00:08:55
channel ORA_AUX_DISK_1: piece handle=/u01/app/orcl/oracle/backup/5opatnq7_1_1 tag=TAG20140615T162007
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:09:55
Finished restore at 15-jun-2014 19:37:57

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

datafile 1 switched to datafile copy
input datafile copy RECID=7 STAMP=850333099 file name=+DATA/orcldp/datafile/system.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=8 STAMP=850333103 file name=+DATA/orcldp/datafile/sysaux.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=9 STAMP=850333104 file name=+DATA/orcldp/datafile/undotbs1.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=10 STAMP=850333105 file name=+DATA/orcldp/datafile/users.416.850332483
datafile 5 switched to datafile copy
input datafile copy RECID=11 STAMP=850333106 file name=+DATA/orcldp/datafile/undotbs2.410.850332483
datafile 6 switched to datafile copy
input datafile copy RECID=12 STAMP=850333107 file name=+DATA/orcldp/datafile/cattbs.417.850332483

contents of Memory Script:
{
   set until scn  2775287;
   recover
   clone database
    delete archivelog
   ;
}
executing Memory Script

executing command: SET until clause

Starting recover at 15-jun-2014 19:38:34
using channel ORA_AUX_DISK_1
using channel ORA_AUX_DISK_2
using channel ORA_AUX_DISK_3
using channel ORA_AUX_DISK_4
using channel ORA_AUX_DISK_5

starting media recovery

channel ORA_AUX_DISK_1: starting archived log restore to default destination
channel ORA_AUX_DISK_1: restoring archived log
archived log thread=1 sequence=56
channel ORA_AUX_DISK_1: reading from backup piece /u01/app/orcl/oracle/backup/5rpatnvh_1_1
channel ORA_AUX_DISK_1: piece handle=/u01/app/orcl/oracle/backup/5rpatnvh_1_1 tag=TAG20140615T162313
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
archived log file name=+DATA/orcldp/archivelog/2014_06_15/thread_1_seq_56.411.850333121 thread=1 sequence=56
channel clone_default: deleting archived log(s)
archived log file name=+DATA/orcldp/archivelog/2014_06_15/thread_1_seq_56.411.850333121 RECID=1 STAMP=850333122
media recovery complete, elapsed time: 00:00:15
Finished recover at 15-jun-2014 19:38:57
Oracle instance started

Total System Global Area     275578880 bytes

Fixed Size                     2227584 bytes
Variable Size                121635456 bytes
Database Buffers             146800640 bytes
Redo Buffers                   4915200 bytes

contents of Memory Script:
{
   sql clone "alter system set  db_name = 
 ''ORCLDP'' comment=
 ''Reset to original value by RMAN'' scope=spfile";
   sql clone "alter system reset  db_unique_name scope=spfile";
   shutdown clone immediate;
   startup clone nomount;
}
executing Memory Script

sql statement: alter system set  db_name =  ''ORCLDP'' comment= ''Reset to original value by RMAN'' scope=spfile

sql statement: alter system reset  db_unique_name scope=spfile

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area     275578880 bytes

Fixed Size                     2227584 bytes
Variable Size                121635456 bytes
Database Buffers             146800640 bytes
Redo Buffers                   4915200 bytes
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "ORCLDP" RESETLOGS ARCHIVELOG 
  MAXLOGFILES    192
  MAXLOGMEMBERS      3
  MAXDATAFILES     1024
  MAXINSTANCES    32
  MAXLOGHISTORY      292
 LOGFILE
  GROUP   5 ( '+data', '+data' ) SIZE 100 M  REUSE,
  GROUP   6 ( '+data', '+data' ) SIZE 100 M  REUSE
 DATAFILE
  '+DATA/orcldp/datafile/system.dbf'
 CHARACTER SET AL32UTF8

sql statement: ALTER DATABASE ADD LOGFILE 
  
  INSTANCE 'i2' 
  GROUP   7 ( '+data', '+data' ) SIZE 100 M  REUSE,
  GROUP   8 ( '+data', '+data' ) SIZE 100 M  REUSE

contents of Memory Script:
{
   set newname for tempfile  2 to 
 "+data";
   switch clone tempfile all;
   catalog clone datafilecopy  "+DATA/orcldp/datafile/sysaux.dbf", 
 "+DATA/orcldp/datafile/undotbs1.dbf", 
 "+DATA/orcldp/datafile/users.416.850332483", 
 "+DATA/orcldp/datafile/undotbs2.410.850332483", 
 "+DATA/orcldp/datafile/cattbs.417.850332483";
   switch clone datafile all;
}
executing Memory Script

executing command: SET NEWNAME

renamed tempfile 2 to +data in control file

cataloged datafile copy
datafile copy file name=+DATA/orcldp/datafile/sysaux.dbf RECID=1 STAMP=850333224
cataloged datafile copy
datafile copy file name=+DATA/orcldp/datafile/undotbs1.dbf RECID=2 STAMP=850333224
cataloged datafile copy
datafile copy file name=+DATA/orcldp/datafile/users.416.850332483 RECID=3 STAMP=850333224
cataloged datafile copy
datafile copy file name=+DATA/orcldp/datafile/undotbs2.410.850332483 RECID=4 STAMP=850333225
cataloged datafile copy
datafile copy file name=+DATA/orcldp/datafile/cattbs.417.850332483 RECID=5 STAMP=850333225

datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=850333224 file name=+DATA/orcldp/datafile/sysaux.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=2 STAMP=850333224 file name=+DATA/orcldp/datafile/undotbs1.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=3 STAMP=850333224 file name=+DATA/orcldp/datafile/users.416.850332483
datafile 5 switched to datafile copy
input datafile copy RECID=4 STAMP=850333225 file name=+DATA/orcldp/datafile/undotbs2.410.850332483
datafile 6 switched to datafile copy
input datafile copy RECID=5 STAMP=850333225 file name=+DATA/orcldp/datafile/cattbs.417.850332483

contents of Memory Script:
{
   Alter clone database open resetlogs;
}
executing Memory Script

database opened
Finished Duplicate Db at 15-jun-2014 19:42:35

RMAN> 
RMAN> 
RMAN> **end-of-file**

RMAN> 

Recovery Manager complete.


Saturday, June 14, 2014

RMAN Duplicate with active database and ORA-17629: Cannot connect to the remote database server

1. RMAN duplicate fails with ORA-17629: Cannot connect to the remote database server
[oracle@ol6-112-rac1 rman]$ rman target="sys/sys123@orcl1"

Recovery Manager: Release 11.2.0.3.0 - Production on Sat Jun 14 20:26:20 2014

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

connected to target database: ORCL (DBID=1374849049)

RMAN> connect auxiliary sys/sys1234@orcldp1

connected to auxiliary database: ORCLDP (not mounted)

RMAN> @ rman_duplicate_spfile.cmd

RMAN> run
2> {
3> allocate channel c1 device type disk connect *;
4> allocate channel c2 device type disk connect *;
5> allocate channel c3 device type disk connect *;
6> allocate auxiliary channel aux1 device type disk;
7> allocate auxiliary channel aux2 device type disk;
8> allocate auxiliary channel aux3 device type disk;
9> duplicate target database to orcldp
10> from active database
11> spfile
12> set instance_number='1'
13> set cluster_database='false'
14> set control_files='+DATA','+DATA'
15> set log_file_name_convert='+DATA/orcl','+DATA/orcldp'
16> set dispatchers='(PROTOCOL=TCP) (SERVICE=orcldpXDB)'
17> set audit_file_dest='/u01/app/orcl/oracle/admin/orcldp/adump'
18> db_file_name_convert='+DATA/orcl','+DATA/orcldp';
19> }
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=57 instance=orcl1 device type=DISK

allocated channel: c2
channel c2: SID=53 instance=orcl1 device type=DISK

allocated channel: c3
channel c3: SID=70 instance=orcl1 device type=DISK

allocated channel: aux1
channel aux1: SID=25 device type=DISK

allocated channel: aux2
channel aux2: SID=1 device type=DISK

allocated channel: aux3
channel aux3: SID=24 device type=DISK

Starting Duplicate Db at 14-JUN-2014 20:27:47

contents of Memory Script:
{
   backup as copy reuse
   targetfile  '+DATA/orcl/spfileorcl.ora' auxiliary format
 '/u01/app/orcl/oracle/product/11.2.0.3/db_1/dbs/spfileorcldp1.ora'   ;
   sql clone "alter system set spfile= ''/u01/app/orcl/oracle/product/11.2.0.3/db_1/dbs/spfileorcldp1.ora''";
}
executing Memory Script

Starting backup at 14-JUN-2014 20:27:49
released channel: c1
released channel: c2
released channel: c3
released channel: aux1
released channel: aux2
released channel: aux3
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of Duplicate Db command at 06/14/2014 20:27:51
RMAN-05501: aborting duplication of target database
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of backup command on c1 channel at 06/14/2014 20:27:51
ORA-17629: Cannot connect to the remote database server
ORA-17627: ORA-01017: invalid username/password; logon denied
ORA-17629: Cannot connect to the remote database server

RMAN> **end-of-file**

RMAN>
RMAN>
RMAN>
RMAN>
RMAN> exit


Recovery Manager complete.

2.Changed the password of auxiliary database same as the target database
[oracle@ol6-112-rac1 dbs]$ orapwd file=orapworcldp1 entries=5 password=sys123 force=y
[oracle@ol6-112-rac1 dbs]$

3.ORA-01017 error is resolved after re-creating the password file of auxiliary database with the same password as the target database and the script execution is as follows..
[oracle@ol6-112-rac1 rman]$ rman target="sys/sys123@orcl1" auxiliary="sys/sys123@orcldp1"

Recovery Manager: Release 11.2.0.3.0 - Production on Sat Jun 14 21:04:49 2014

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

connected to target database: ORCL (DBID=1374849049)
connected to auxiliary database: ORCLDP (not mounted)

RMAN> @ rman_duplicate_spfile.cmd

RMAN> run
2> {
3> allocate channel c1 device type disk connect *;
4> allocate channel c2 device type disk connect *;
5> allocate channel c3 device type disk connect *;
6> allocate auxiliary channel aux1 device type disk;
7> allocate auxiliary channel aux2 device type disk;
8> allocate auxiliary channel aux3 device type disk;
9> duplicate target database to orcldp
10> from active database
11> spfile
12> set instance_number='1'
13> set cluster_database='false'
14> set control_files='+DATA','+DATA'
15> set log_file_name_convert='+DATA/orcl','+DATA/orcldp'
16> set dispatchers='(PROTOCOL=TCP) (SERVICE=orcldpXDB)'
17> set audit_file_dest='/u01/app/orcl/oracle/admin/orcldp/adump'
18> db_file_name_convert='+DATA/orcl','+DATA/orcldp';
19> }
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=34 instance=orcl1 device type=DISK

allocated channel: c2
channel c2: SID=80 instance=orcl1 device type=DISK

allocated channel: c3
channel c3: SID=58 instance=orcl1 device type=DISK

allocated channel: aux1
channel aux1: SID=27 device type=DISK

allocated channel: aux2
channel aux2: SID=28 device type=DISK

allocated channel: aux3
channel aux3: SID=29 device type=DISK

Starting Duplicate Db at 14-JUN-2014 21:05:13

contents of Memory Script:
{
   backup as copy reuse
   targetfile  '+DATA/orcl/spfileorcl.ora' auxiliary format
 '/u01/app/orcl/oracle/product/11.2.0.3/db_1/dbs/spfileorcldp1.ora'   ;
   sql clone "alter system set spfile= ''/u01/app/orcl/oracle/product/11.2.0.3/db_1/dbs/spfileorcldp1.ora''";
}
executing Memory Script

Starting backup at 14-JUN-2014 21:05:33
Finished backup at 14-JUN-2014 21:05:35

sql statement: alter system set spfile= ''/u01/app/orcl/oracle/product/11.2.0.3/db_1/dbs/spfileorcldp1.ora''

contents of Memory Script:
{
   sql clone "alter system set  db_name =
 ''ORCLDP'' comment=
 ''duplicate'' scope=spfile";
   sql clone "alter system set  instance_number =
 1 comment=
 '''' scope=spfile";
   sql clone "alter system set  cluster_database =
 false comment=
 '''' scope=spfile";
   sql clone "alter system set  control_files =
 ''+DATA'', ''+DATA'' comment=
 '''' scope=spfile";
   sql clone "alter system set  log_file_name_convert =
 ''+DATA/orcl'', ''+DATA/orcldp'' comment=
 '''' scope=spfile";
   sql clone "alter system set  dispatchers =
 ''(PROTOCOL=TCP) (SERVICE=orcldpXDB)'' comment=
 '''' scope=spfile";
   sql clone "alter system set  audit_file_dest =
 ''/u01/app/orcl/oracle/admin/orcldp/adump'' comment=
 '''' scope=spfile";
   shutdown clone immediate;
   startup clone nomount;
}
executing Memory Script

sql statement: alter system set  db_name =  ''ORCLDP'' comment= ''duplicate'' scope=spfile

sql statement: alter system set  instance_number =  1 comment= '''' scope=spfile

sql statement: alter system set  cluster_database =  false comment= '''' scope=spfile

sql statement: alter system set  control_files =  ''+DATA'', ''+DATA'' comment= '''' scope=spfile

sql statement: alter system set  log_file_name_convert =  ''+DATA/orcl'', ''+DATA/orcldp'' comment= '''' scope=spfile

sql statement: alter system set  dispatchers =  ''(PROTOCOL=TCP) (SERVICE=orcldpXDB)'' comment= '''' scope=spfile

sql statement: alter system set  audit_file_dest =  ''/u01/app/orcl/oracle/admin/orcldp/adump'' comment= '''' scope=spfile

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area     275578880 bytes

Fixed Size                     2227584 bytes
Variable Size                113246848 bytes
Database Buffers             155189248 bytes
Redo Buffers                   4915200 bytes
allocated channel: aux1
channel aux1: SID=30 device type=DISK
allocated channel: aux2
channel aux2: SID=31 device type=DISK
allocated channel: aux3
channel aux3: SID=32 device type=DISK

contents of Memory Script:
{
   sql clone "alter system set  control_files =
  ''+DATA/orcldp/controlfile/current.395.850251967'', ''+DATA/orcldp/controlfile/current.302.850251967'' comment=
 ''Set by RMAN'' scope=spfile";
   sql clone "alter system set  db_name =
 ''ORCL'' comment=
 ''Modified by RMAN duplicate'' scope=spfile";
   sql clone "alter system set  db_unique_name =
 ''ORCLDP'' comment=
 ''Modified by RMAN duplicate'' scope=spfile";
   shutdown clone immediate;
   startup clone force nomount
   backup as copy current controlfile auxiliary format  '+DATA/orcldp/controlfile/current.291.850251967';
   restore clone controlfile to  '+DATA/orcldp/controlfile/current.393.850251967' from
 '+DATA/orcldp/controlfile/current.291.850251967';
   sql clone "alter system set  control_files =
  ''+DATA/orcldp/controlfile/current.291.850251967'', ''+DATA/orcldp/controlfile/current.393.850251967'' comment=
 ''Set by RMAN'' scope=spfile";
   shutdown clone immediate;
   startup clone nomount;
   alter clone database mount;
}
executing Memory Script

sql statement: alter system set  control_files =   ''+DATA/orcldp/controlfile/current.395.850251967'', ''+DATA/orcldp/controlfile/current.302.850251967'' comment= ''Set by RMAN'' scope=spfile

sql statement: alter system set  db_name =  ''ORCL'' comment= ''Modified by RMAN duplicate'' scope=spfile

sql statement: alter system set  db_unique_name =  ''ORCLDP'' comment= ''Modified by RMAN duplicate'' scope=spfile

Oracle instance shut down

Oracle instance started

Total System Global Area     275578880 bytes

Fixed Size                     2227584 bytes
Variable Size                117441152 bytes
Database Buffers             150994944 bytes
Redo Buffers                   4915200 bytes
allocated channel: aux1
channel aux1: SID=30 device type=DISK
allocated channel: aux2
channel aux2: SID=31 device type=DISK
allocated channel: aux3
channel aux3: SID=32 device type=DISK

Starting backup at 14-JUN-2014 21:06:53
channel c1: starting datafile copy
copying current control file
output file name=/u01/app/orcl/oracle/product/11.2.0.3/db_1/dbs/snapcf_orcl1.f tag=TAG20140614T210653 RECID=28 STAMP=850252025
channel c1: datafile copy complete, elapsed time: 00:00:15
Finished backup at 14-JUN-2014 21:07:10

Starting restore at 14-JUN-2014 21:07:20

channel aux2: skipped, AUTOBACKUP already found
channel aux3: skipped, AUTOBACKUP already found
channel aux1: copied control file copy
Finished restore at 14-JUN-2014 21:07:41

sql statement: alter system set  control_files =   ''+DATA/orcldp/controlfile/current.291.850251967'', ''+DATA/orcldp/controlfile/current.393.850251967'' comment= ''Set by RMAN'' scope=spfile

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area     275578880 bytes

Fixed Size                     2227584 bytes
Variable Size                117441152 bytes
Database Buffers             150994944 bytes
Redo Buffers                   4915200 bytes
allocated channel: aux1
channel aux1: SID=29 device type=DISK
allocated channel: aux2
channel aux2: SID=30 device type=DISK
allocated channel: aux3
channel aux3: SID=34 device type=DISK

database mounted
RMAN-05529: WARNING: DB_FILE_NAME_CONVERT resulted in invalid ASM names; names changed to disk group only.

contents of Memory Script:
{
   set newname for datafile  1 to
 "+data";
   set newname for datafile  2 to
 "+data";
   set newname for datafile  3 to
 "+data";
   set newname for datafile  4 to
 "+data";
   set newname for datafile  5 to
 "+data";
   set newname for datafile  6 to
 "+data";
   backup as copy reuse
   datafile  1 auxiliary format
 "+data"   datafile
 2 auxiliary format
 "+data"   datafile
 3 auxiliary format
 "+data"   datafile
 4 auxiliary format
 "+data"   datafile
 5 auxiliary format
 "+data"   datafile
 6 auxiliary format
 "+data"   ;
   sql 'alter system archive log current';
}
executing Memory Script

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

Starting backup at 14-JUN-2014 21:09:08
channel c1: starting datafile copy
input datafile file number=00001 name=+DATA/orcl/datafile/system.258.849281819
channel c2: starting datafile copy
input datafile file number=00002 name=+DATA/orcl/datafile/sysaux.261.849281819
channel c3: starting datafile copy
input datafile file number=00003 name=+DATA/orcl/datafile/undotbs1.263.849281819
output file name=+DATA/orcldp/datafile/undotbs1.410.850252161 tag=TAG20140614T210910
channel c3: datafile copy complete, elapsed time: 00:02:46
channel c3: starting datafile copy
input datafile file number=00006 name=+DATA/orcl/datafile/cattbs.518.849982293
output file name=+DATA/orcldp/datafile/cattbs.409.850252337 tag=TAG20140614T210910
channel c3: datafile copy complete, elapsed time: 00:00:55
channel c3: starting datafile copy
input datafile file number=00005 name=+DATA/orcl/datafile/undotbs2.259.849281819
output file name=+DATA/orcldp/datafile/undotbs2.408.850252417 tag=TAG20140614T210910
channel c3: datafile copy complete, elapsed time: 00:00:36
channel c3: starting datafile copy
input datafile file number=00004 name=+DATA/orcl/datafile/users.264.849281819
output file name=+DATA/orcldp/datafile/users.407.850252463 tag=TAG20140614T210910
channel c3: datafile copy complete, elapsed time: 00:00:16
output file name=+DATA/orcldp/datafile/sysaux.411.850252157 tag=TAG20140614T210910
channel c2: datafile copy complete, elapsed time: 00:06:17
output file name=+DATA/orcldp/datafile/system.301.850252155 tag=TAG20140614T210910
channel c1: datafile copy complete, elapsed time: 00:06:28
Finished backup at 14-JUN-2014 21:15:42

sql statement: alter system archive log current

contents of Memory Script:
{
   backup as copy reuse
   archivelog like  "+DATA/orcl/archivelog/2014_06_14/thread_1_seq_33.406.850252555" auxiliary format
 "+DATA"   ;
   catalog clone start with  "+DATA";
   switch clone datafile all;
}
executing Memory Script

Starting backup at 14-JUN-2014 21:16:19
channel c1: starting archived log copy
input archived log thread=1 sequence=33 RECID=118 STAMP=850252570
output file name=+DATA/orcldp/archivelog/2014_06_14/thread_1_seq_33.405.850252581 RECID=0 STAMP=0
channel c1: archived log copy complete, elapsed time: 00:00:15
Finished backup at 14-JUN-2014 21:16:36

searching for all files that match the pattern +DATA

List of Files Unknown to the Database
=====================================
File Name: +data/snapcf_cvrman.f
File Name: +data/c-659771233-20140611-02
File Name: +data/c-659771233-20140611-03
File Name: +data/c-659771233-20140611-04
File Name: +data/c-659771233-20140611-05
File Name: +data/c-659771233-20140611-06
File Name: +data/c-659771233-20140611-07
File Name: +data/c-659771233-20140611-08
File Name: +data/c-659771233-20140611-09
File Name: +data/c-659771233-20140612-00
File Name: +data/c-659771233-20140612-01
File Name: +data/c-659771233-20140612-02
File Name: +data/c-659771233-20140612-03
File Name: +data/c-659771233-20140612-04
File Name: +data/c-659771233-20140612-05
File Name: +data/c-659771233-20140612-06
File Name: +data/c-659771233-20140612-07
File Name: +data/c-659771233-20140612-08
File Name: +data/c-659771233-20140612-09
File Name: +data/c-659771233-20140612-0a
File Name: +data/c-659771233-20140612-0b
File Name: +data/c-659771233-20140612-0c
File Name: +data/c-659771233-20140612-0d
File Name: +data/c-659771233-20140612-0e
File Name: +data/c-659771233-20140612-0f
File Name: +data/c-659771233-20140612-10
File Name: +data/c-659771233-20140612-11
File Name: +data/c-659771233-20140612-12
File Name: +data/c-659771233-20140613-00
File Name: +data/c-659771233-20140613-01
File Name: +data/c-659771233-20140613-02
File Name: +data/c-659771233-20140613-03
File Name: +data/c-659771233-20140613-04
File Name: +data/c-659771233-20140613-05
File Name: +data/c-659771233-20140613-06
File Name: +data/c-659771233-20140613-07
File Name: +data/c-659771233-20140613-08
File Name: +data/c-659771233-20140613-09
File Name: +data/c-659771233-20140613-0a
File Name: +data/c-659771233-20140613-0b
File Name: +data/c-659771233-20140614-00
File Name: +data/ASM/PARAMETERFILE/spfilecvrman.ora.orig.473.849905791
File Name: +data/CRMAN/TEMPFILE/TEMP.426.849624581
File Name: +data/CRMAN/ONLINELOG/group_1.440.849703645
File Name: +data/CRMAN/ONLINELOG/group_2.443.849703665
File Name: +data/CRMAN/ONLINELOG/group_3.441.849703709
File Name: +data/CRMAN/ARCHIVELOG/2014_06_07/thread_1_seq_11.429.849608555
File Name: +data/CRMAN/DATAFILE/SYSTEM.424.849702847
File Name: +data/CRMAN/DATAFILE/SYSAUX.423.849703089
File Name: +data/CRMAN/DATAFILE/EXAMPLE.430.849703413
File Name: +data/CRMAN/DATAFILE/UNDOTBS1.436.849703531
File Name: +data/CRMAN/DATAFILE/USERS.438.849703579
File Name: +data/CRMAN/CONTROLFILE/Current.427.849702761
File Name: +data/ORCLDP/ARCHIVELOG/2014_06_14/thread_1_seq_33.405.850252581
File Name: +data/ORCLDP/DATAFILE/SYSTEM.301.850252155
File Name: +data/ORCLDP/DATAFILE/SYSAUX.411.850252157
File Name: +data/ORCLDP/DATAFILE/UNDOTBS1.410.850252161
File Name: +data/ORCLDP/DATAFILE/CATTBS.409.850252337
File Name: +data/ORCLDP/DATAFILE/UNDOTBS2.408.850252417
File Name: +data/ORCLDP/DATAFILE/USERS.407.850252463
File Name: +data/ORCLDP/CONTROLFILE/Current.395.850251967
File Name: +data/ORCLDP/CONTROLFILE/Current.302.850251967
File Name: +data/CVRMAN/CHANGETRACKING/ctf.543.850043389
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/annnf0_FULL_BKP_ARCHIVELOG_0.567.850125777
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/annnf0_FULL_BKP_ARCHIVELOG_0.568.850125779
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/annnf0_FULL_BKP_ARCHIVELOG_0.569.850125779
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/annnf0_FULL_BKP_ARCHIVELOG_0.570.850125781
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/annnf0_FULL_BKP_ARCHIVELOG_0.571.850125781
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/nnndf0_FULL_BKP_DATABASE_0.572.850125793
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/nnndf0_FULL_BKP_DATABASE_0.573.850125805
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/nnndf0_FULL_BKP_DATABASE_0.574.850125821
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/nnndf0_FULL_BKP_DATABASE_0.575.850125863
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/nnndf0_FULL_BKP_DATABASE_0.576.850125957
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/annnf0_FULL_BKP_ARCHIVELOG_0.494.850126081
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/ncnnf0_BKP_CURRENT_0.522.850039333
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/nnndf0_BKP_SECTION_DF2_0.541.850049499
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/ncnnf0_BKP_DATAFILE_2_0.525.850039907
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/nnsnf0_BKP_SPFILE_0.526.850039939
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/annnf0_TAG20140612T102415_0.528.850040661
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/annnf0_TAG20140612T102956_0.530.850041003
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/annnf0_BKP_ARCHIVE_ALL_0.533.850042261
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/annnf0_BKP_ARCHIVE_ALL_0.534.850042269
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/nnndf0_BKP_SECTION_DF2_0.547.850049541
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/nnndf0_BKP_SECTION_DF2_0.548.850049619
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/nnndf0_TAG20140612T133849_0.557.850052343
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/nnndf0_TAG20140612T145443_0.559.850056889
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155256_0.486.849973977
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155404_0.474.849974045
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.476.849974297
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.501.849974313
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.502.849974317
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.503.849974323
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.504.849974329
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.505.849974333
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.506.849974335
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.507.849974339
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.508.849974345
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.509.849974359
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T163103_0.516.849976265
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_10.565.850125231
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_11.566.850125767
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_12.492.850126079
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_13.578.850137137
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_11.577.850137137
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_12.580.850137139
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_1.586.850145119
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_2.587.850145131
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_3.588.850145155
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_4.589.850145191
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_5.590.850145217
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_6.593.850150035
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_7.594.850150165
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_7.520.850153593
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_8.597.850153595
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_6.598.850153595
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_1.600.850153835
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_2.601.850153841
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_3.602.850153847
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_4.603.850153853
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_4.604.850154883
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_5.605.850154885
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_3.606.850154887
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_1.608.850155115
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_2.609.850155135
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_3.610.850155141
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_4.611.850155147
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_5.612.850155165
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_4.613.850156287
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_5.614.850156287
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_6.615.850156289
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_1.617.850156547
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_2.618.850156587
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_3.619.850156625
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_4.620.850156765
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_5.621.850156779
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_6.622.850156789
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_7.623.850157587
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_5.624.850157587
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_6.625.850157593
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_12/thread_1_seq_5.521.850038889
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_12/thread_1_seq_6.532.850042251
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_12/thread_1_seq_7.540.850042717
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_12/thread_1_seq_8.498.850051023
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_12/thread_1_seq_9.556.850051193
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_11/thread_1_seq_4.478.849974277
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_1.469.849869813
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_2.480.849900969
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_3.485.849903449
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_4.470.849907637
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_2.432.849907637
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_3.442.849907643
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_1.495.849907921
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_2.496.849907933
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_3.497.849908097
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_1.461.849783045
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_2.462.849783049
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_3.463.849783065
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_4.464.849787299
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_2.465.849787301
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_3.466.849787301
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_1.467.849793049
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_1.468.849797977
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_17.425.849693409
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_18.437.849701835
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_19.439.849703595
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_20.431.849706397
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_21.444.849706399
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_22.445.849706413
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_23.446.849706413
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_22.447.849706869
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_23.448.849706869
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_24.449.849706871
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_1.450.849707125
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_2.451.849707127
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_3.452.849707129
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_4.453.849707133
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_5.454.849707133
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_6.455.849707135
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_7.456.849707139
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_7.457.849708941
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_8.458.849708941
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_6.459.849708941
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_1.460.849709525
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_07/thread_1_seq_11.428.849608543
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_07/thread_1_seq_12.422.849612485
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_07/thread_1_seq_13.419.849618387
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_07/thread_1_seq_14.435.849618609
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_07/thread_1_seq_15.434.849618643
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_07/thread_1_seq_16.433.849618689
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_06/thread_1_seq_6.303.849567819
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_06/thread_1_seq_7.269.849567841
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_06/thread_1_seq_8.268.849567847
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_06/thread_1_seq_9.265.849567851
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_06/thread_1_seq_10.418.849567859
File Name: +data/CVRMAN/AUTOBACKUP/2014_06_11/s_849962992.477.849962997
File Name: +data/CVRMAN/AUTOBACKUP/2014_06_11/s_849965527.475.849965531
File Name: +data/CVRMAN/AUTOBACKUP/2014_06_10/s_849907069.491.849907073
File Name: +data/CVRMAN/DATAFILE/UNDOTBS1.512.849975761
File Name: +data/CVRMAN/DATAFILE/UNDOTBS1.514.849975835
File Name: +data/CVRMAN/DATAFILE/UNDOTBS1.536.850042539
File Name: +data/CVRMAN/DATAFILE/SYSAUX.550.850046755
File Name: +data/CVRMAN/DATAFILE/SYSAUX.552.850047045
File Name: +data/CVRMAN/DATAFILE/SYSTEM.420.850057231
File Name: +data/CVRMAN/DATAFILE/SYSAUX.561.850057409
File Name: +data/CVRMAN/DATAFILE/UNDOTBS1.562.850057557
File Name: +data/CVRMAN/DATAFILE/USERS.563.850057585
File Name: +data/CVRMAN/DATAFILE/EXAMPLE.582.850137791
File Name: +data/CVRMAN/DATAFILE/TBS1.585.850152057
File Name: +data/ORCL/spfileorcl.ora
File Name: +data/ORCL/PARAMETERFILE/spfile.288.849286189
File Name: +data/ORCL/TEMPFILE/TEMP.336.849374879
File Name: +data/ORCL/ONLINELOG/group_1.327.849374779
File Name: +data/ORCL/ONLINELOG/group_1.326.849374783
File Name: +data/ORCL/ONLINELOG/group_2.338.849374787
File Name: +data/ORCL/ONLINELOG/group_2.337.849374791
File Name: +data/ORCL/ONLINELOG/group_3.341.849378271
File Name: +data/ORCL/ONLINELOG/group_3.342.849378289
File Name: +data/ORCL/ONLINELOG/group_4.343.849378293
File Name: +data/ORCL/ONLINELOG/group_4.344.849378297
File Name: +data/ORCL/AUTOBACKUP/2014_06_04/s_849350745.319.849350751
File Name: +data/ORCL/AUTOBACKUP/2014_06_04/s_849352699.325.849352705
File Name: +data/ORCL/DATAFILE/SYSTEM.332.849374461
File Name: +data/ORCL/DATAFILE/SYSAUX.333.849374463
File Name: +data/ORCL/DATAFILE/UNDOTBS1.334.849374463
File Name: +data/ORCL/DATAFILE/USERS.329.849374463
File Name: +data/ORCL/DATAFILE/EXAMPLE.339.849374929
File Name: +data/ORCL/DATAFILE/UNDOTBS2.340.849376549
File Name: +data/ORCL/ARCHIVELOG/2014_06_14/thread_1_seq_33.406.850252555
File Name: +data/ORCL/BACKUPSET/2014_06_04/annnf0_TAG20140604T183923_0.348.849379165
File Name: +data/ORCL/BACKUPSET/2014_06_04/nnndf0_TAG20140604T183942_0.349.849379185
File Name: +data/ORCL/BACKUPSET/2014_06_04/ncsnf0_TAG20140604T183942_0.350.849379581
File Name: +data/ORCL/BACKUPSET/2014_06_04/annnf0_TAG20140604T184705_0.352.849379641
File Name: +data/ORCL/CONTROLFILE/Current.330.849374769
File Name: +data/ORCL/CONTROLFILE/Current.328.849374771
File Name: +data/cluster10/OCRFILE/REGISTRY.255.849273351
File Name: +data/cluster10/ASMPARAMETERFILE/REGISTRY.253.849270757
cataloging files...
cataloging done

List of Cataloged Files
=======================
File Name: +data/ORCLDP/ARCHIVELOG/2014_06_14/thread_1_seq_33.405.850252581
File Name: +data/ORCLDP/DATAFILE/SYSTEM.301.850252155
File Name: +data/ORCLDP/DATAFILE/SYSAUX.411.850252157
File Name: +data/ORCLDP/DATAFILE/UNDOTBS1.410.850252161
File Name: +data/ORCLDP/DATAFILE/CATTBS.409.850252337
File Name: +data/ORCLDP/DATAFILE/UNDOTBS2.408.850252417
File Name: +data/ORCLDP/DATAFILE/USERS.407.850252463
File Name: +data/ORCL/AUTOBACKUP/2014_06_04/s_849350745.319.849350751
File Name: +data/ORCL/AUTOBACKUP/2014_06_04/s_849352699.325.849352705
File Name: +data/ORCL/ARCHIVELOG/2014_06_14/thread_1_seq_33.406.850252555

List of Files Which Where Not Cataloged
=======================================
File Name: +data/snapcf_cvrman.f
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140611-02
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140611-03
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140611-04
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140611-05
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140611-06
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140611-07
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140611-08
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140611-09
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-00
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-01
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-02
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-03
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-04
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-05
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-06
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-07
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-08
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-09
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-0a
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-0b
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-0c
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-0d
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-0e
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-0f
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-10
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-11
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140612-12
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140613-00
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140613-01
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140613-02
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140613-03
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140613-04
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140613-05
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140613-06
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140613-07
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140613-08
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140613-09
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140613-0a
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140613-0b
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/c-659771233-20140614-00
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/ASM/PARAMETERFILE/spfilecvrman.ora.orig.473.849905791
  RMAN-07518: Reason: Foreign database file DBID: 0  Database Name:
File Name: +data/CRMAN/TEMPFILE/TEMP.426.849624581
  RMAN-07518: Reason: Foreign database file DBID: 3195436963  Database Name: CRMAN
File Name: +data/CRMAN/ONLINELOG/group_1.440.849703645
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CRMAN/ONLINELOG/group_2.443.849703665
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CRMAN/ONLINELOG/group_3.441.849703709
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CRMAN/ARCHIVELOG/2014_06_07/thread_1_seq_11.429.849608555
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CRMAN/DATAFILE/SYSTEM.424.849702847
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CRMAN/DATAFILE/SYSAUX.423.849703089
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CRMAN/DATAFILE/EXAMPLE.430.849703413
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CRMAN/DATAFILE/UNDOTBS1.436.849703531
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CRMAN/DATAFILE/USERS.438.849703579
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CRMAN/CONTROLFILE/Current.427.849702761
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/ORCLDP/CONTROLFILE/Current.395.850251967
  RMAN-07517: Reason: The file header is corrupted
File Name: +data/ORCLDP/CONTROLFILE/Current.302.850251967
  RMAN-07517: Reason: The file header is corrupted
File Name: +data/CVRMAN/CHANGETRACKING/ctf.543.850043389
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/annnf0_FULL_BKP_ARCHIVELOG_0.567.850125777
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/annnf0_FULL_BKP_ARCHIVELOG_0.568.850125779
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/annnf0_FULL_BKP_ARCHIVELOG_0.569.850125779
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/annnf0_FULL_BKP_ARCHIVELOG_0.570.850125781
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/annnf0_FULL_BKP_ARCHIVELOG_0.571.850125781
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/nnndf0_FULL_BKP_DATABASE_0.572.850125793
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/nnndf0_FULL_BKP_DATABASE_0.573.850125805
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/nnndf0_FULL_BKP_DATABASE_0.574.850125821
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/nnndf0_FULL_BKP_DATABASE_0.575.850125863
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/nnndf0_FULL_BKP_DATABASE_0.576.850125957
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_13/annnf0_FULL_BKP_ARCHIVELOG_0.494.850126081
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/ncnnf0_BKP_CURRENT_0.522.850039333
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/nnndf0_BKP_SECTION_DF2_0.541.850049499
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/ncnnf0_BKP_DATAFILE_2_0.525.850039907
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/nnsnf0_BKP_SPFILE_0.526.850039939
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/annnf0_TAG20140612T102415_0.528.850040661
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/annnf0_TAG20140612T102956_0.530.850041003
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/annnf0_BKP_ARCHIVE_ALL_0.533.850042261
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/annnf0_BKP_ARCHIVE_ALL_0.534.850042269
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/nnndf0_BKP_SECTION_DF2_0.547.850049541
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/nnndf0_BKP_SECTION_DF2_0.548.850049619
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/nnndf0_TAG20140612T133849_0.557.850052343
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_12/nnndf0_TAG20140612T145443_0.559.850056889
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155256_0.486.849973977
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155404_0.474.849974045
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.476.849974297
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.501.849974313
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.502.849974317
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.503.849974323
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.504.849974329
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.505.849974333
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.506.849974335
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.507.849974339
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.508.849974345
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T155806_0.509.849974359
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/BACKUPSET/2014_06_11/annnf0_TAG20140611T163103_0.516.849976265
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_10.565.850125231
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_11.566.850125767
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_12.492.850126079
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_13.578.850137137
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_11.577.850137137
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_12.580.850137139
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_1.586.850145119
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_2.587.850145131
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_3.588.850145155
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_4.589.850145191
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_5.590.850145217
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_6.593.850150035
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_7.594.850150165
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_7.520.850153593
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_8.597.850153595
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_6.598.850153595
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_1.600.850153835
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_2.601.850153841
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_3.602.850153847
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_4.603.850153853
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_4.604.850154883
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_5.605.850154885
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_3.606.850154887
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_1.608.850155115
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_2.609.850155135
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_3.610.850155141
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_4.611.850155147
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_5.612.850155165
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_4.613.850156287
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_5.614.850156287
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_6.615.850156289
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_1.617.850156547
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_2.618.850156587
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_3.619.850156625
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_4.620.850156765
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_5.621.850156779
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_6.622.850156789
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_7.623.850157587
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_5.624.850157587
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_13/thread_1_seq_6.625.850157593
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_12/thread_1_seq_5.521.850038889
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_12/thread_1_seq_6.532.850042251
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_12/thread_1_seq_7.540.850042717
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_12/thread_1_seq_8.498.850051023
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_12/thread_1_seq_9.556.850051193
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_11/thread_1_seq_4.478.849974277
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_1.469.849869813
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_2.480.849900969
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_3.485.849903449
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_4.470.849907637
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_2.432.849907637
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_3.442.849907643
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_1.495.849907921
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_2.496.849907933
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_10/thread_1_seq_3.497.849908097
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_1.461.849783045
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_2.462.849783049
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_3.463.849783065
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_4.464.849787299
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_2.465.849787301
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_3.466.849787301
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_1.467.849793049
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_09/thread_1_seq_1.468.849797977
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_17.425.849693409
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_18.437.849701835
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_19.439.849703595
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_20.431.849706397
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_21.444.849706399
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_22.445.849706413
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_23.446.849706413
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_22.447.849706869
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_23.448.849706869
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_24.449.849706871
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_1.450.849707125
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_2.451.849707127
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_3.452.849707129
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_4.453.849707133
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_5.454.849707133
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_6.455.849707135
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_7.456.849707139
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_7.457.849708941
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_8.458.849708941
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_6.459.849708941
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_08/thread_1_seq_1.460.849709525
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_07/thread_1_seq_11.428.849608543
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_07/thread_1_seq_12.422.849612485
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_07/thread_1_seq_13.419.849618387
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_07/thread_1_seq_14.435.849618609
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_07/thread_1_seq_15.434.849618643
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_07/thread_1_seq_16.433.849618689
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_06/thread_1_seq_6.303.849567819
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_06/thread_1_seq_7.269.849567841
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_06/thread_1_seq_8.268.849567847
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_06/thread_1_seq_9.265.849567851
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/ARCHIVELOG/2014_06_06/thread_1_seq_10.418.849567859
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/AUTOBACKUP/2014_06_11/s_849962992.477.849962997
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/AUTOBACKUP/2014_06_11/s_849965527.475.849965531
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/AUTOBACKUP/2014_06_10/s_849907069.491.849907073
  RMAN-07518: Reason: Foreign database file DBID: 659771233  Database Name: CVRMAN
File Name: +data/CVRMAN/DATAFILE/UNDOTBS1.512.849975761
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CVRMAN/DATAFILE/UNDOTBS1.514.849975835
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CVRMAN/DATAFILE/UNDOTBS1.536.850042539
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CVRMAN/DATAFILE/SYSAUX.550.850046755
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CVRMAN/DATAFILE/SYSAUX.552.850047045
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CVRMAN/DATAFILE/SYSTEM.420.850057231
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CVRMAN/DATAFILE/SYSAUX.561.850057409
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CVRMAN/DATAFILE/UNDOTBS1.562.850057557
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CVRMAN/DATAFILE/USERS.563.850057585
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CVRMAN/DATAFILE/EXAMPLE.582.850137791
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/CVRMAN/DATAFILE/TBS1.585.850152057
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/ORCL/spfileorcl.ora
  RMAN-07518: Reason: Foreign database file DBID: 0  Database Name:
File Name: +data/ORCL/PARAMETERFILE/spfile.288.849286189
  RMAN-07518: Reason: Foreign database file DBID: 0  Database Name:
File Name: +data/ORCL/TEMPFILE/TEMP.336.849374879
  RMAN-07518: Reason: Foreign database file DBID: 1377155504  Database Name: ORCL
File Name: +data/ORCL/ONLINELOG/group_1.327.849374779
  RMAN-07518: Reason: Foreign database file DBID: 1377155504  Database Name: ORCL
File Name: +data/ORCL/ONLINELOG/group_1.326.849374783
  RMAN-07518: Reason: Foreign database file DBID: 1377155504  Database Name: ORCL
File Name: +data/ORCL/ONLINELOG/group_2.338.849374787
  RMAN-07518: Reason: Foreign database file DBID: 1377155504  Database Name: ORCL
File Name: +data/ORCL/ONLINELOG/group_2.337.849374791
  RMAN-07518: Reason: Foreign database file DBID: 1377155504  Database Name: ORCL
File Name: +data/ORCL/ONLINELOG/group_3.341.849378271
  RMAN-07518: Reason: Foreign database file DBID: 1377155504  Database Name: ORCL
File Name: +data/ORCL/ONLINELOG/group_3.342.849378289
  RMAN-07518: Reason: Foreign database file DBID: 1377155504  Database Name: ORCL
File Name: +data/ORCL/ONLINELOG/group_4.343.849378293
  RMAN-07518: Reason: Foreign database file DBID: 1377155504  Database Name: ORCL
File Name: +data/ORCL/ONLINELOG/group_4.344.849378297
  RMAN-07518: Reason: Foreign database file DBID: 1377155504  Database Name: ORCL
File Name: +data/ORCL/DATAFILE/SYSTEM.332.849374461
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/ORCL/DATAFILE/SYSAUX.333.849374463
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/ORCL/DATAFILE/UNDOTBS1.334.849374463
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/ORCL/DATAFILE/USERS.329.849374463
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/ORCL/DATAFILE/EXAMPLE.339.849374929
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/ORCL/DATAFILE/UNDOTBS2.340.849376549
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/ORCL/BACKUPSET/2014_06_04/annnf0_TAG20140604T183923_0.348.849379165
  RMAN-07518: Reason: Foreign database file DBID: 1377155504  Database Name: ORCL
File Name: +data/ORCL/BACKUPSET/2014_06_04/nnndf0_TAG20140604T183942_0.349.849379185
  RMAN-07518: Reason: Foreign database file DBID: 1377155504  Database Name: ORCL
File Name: +data/ORCL/BACKUPSET/2014_06_04/ncsnf0_TAG20140604T183942_0.350.849379581
  RMAN-07518: Reason: Foreign database file DBID: 1377155504  Database Name: ORCL
File Name: +data/ORCL/BACKUPSET/2014_06_04/annnf0_TAG20140604T184705_0.352.849379641
  RMAN-07518: Reason: Foreign database file DBID: 1377155504  Database Name: ORCL
File Name: +data/ORCL/CONTROLFILE/Current.330.849374769
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/ORCL/CONTROLFILE/Current.328.849374771
  RMAN-07519: Reason: Error while cataloging. See alert.log.
File Name: +data/cluster10/OCRFILE/REGISTRY.255.849273351
  RMAN-07517: Reason: The file header is corrupted
File Name: +data/cluster10/ASMPARAMETERFILE/REGISTRY.253.849270757
  RMAN-07518: Reason: Foreign database file DBID: 0  Database Name:
 RMAN-07518: Reason: Foreign database file DBID: 0  Database Name:

datafile 1 switched to datafile copy
input datafile copy RECID=34 STAMP=850252643 file name=+DATA/orcldp/datafile/system.301.850252155
datafile 2 switched to datafile copy
input datafile copy RECID=35 STAMP=850252644 file name=+DATA/orcldp/datafile/sysaux.411.850252157
datafile 3 switched to datafile copy
input datafile copy RECID=36 STAMP=850252645 file name=+DATA/orcldp/datafile/undotbs1.410.850252161
datafile 4 switched to datafile copy
input datafile copy RECID=37 STAMP=850252646 file name=+DATA/orcldp/datafile/users.407.850252463
datafile 5 switched to datafile copy
input datafile copy RECID=38 STAMP=850252647 file name=+DATA/orcldp/datafile/undotbs2.408.850252417
datafile 6 switched to datafile copy
input datafile copy RECID=39 STAMP=850252651 file name=+DATA/orcldp/datafile/cattbs.409.850252337

contents of Memory Script:
{
   set until scn  2700218;
   recover
   clone database
    delete archivelog
   ;
}
executing Memory Script

executing command: SET until clause

Starting recover at 14-JUN-2014 21:17:36

starting media recovery

archived log for thread 1 with sequence 33 is already on disk as file +DATA/orcldp/archivelog/2014_06_14/thread_1_seq_33.405.850252581
archived log file name=+DATA/orcldp/archivelog/2014_06_14/thread_1_seq_33.405.850252581 thread=1 sequence=33
media recovery complete, elapsed time: 00:00:06
Finished recover at 14-JUN-2014 21:18:15
Oracle instance started

Total System Global Area     275578880 bytes

Fixed Size                     2227584 bytes
Variable Size                121635456 bytes
Database Buffers             146800640 bytes
Redo Buffers                   4915200 bytes

contents of Memory Script:
{
   sql clone "alter system set  db_name =
 ''ORCLDP'' comment=
 ''Reset to original value by RMAN'' scope=spfile";
   sql clone "alter system reset  db_unique_name scope=spfile";
   shutdown clone immediate;
   startup clone nomount;
}
executing Memory Script

sql statement: alter system set  db_name =  ''ORCLDP'' comment= ''Reset to original value by RMAN'' scope=spfile

sql statement: alter system reset  db_unique_name scope=spfile

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area     275578880 bytes

Fixed Size                     2227584 bytes
Variable Size                121635456 bytes
Database Buffers             146800640 bytes
Redo Buffers                   4915200 bytes
allocated channel: aux1
channel aux1: SID=29 device type=DISK
allocated channel: aux2
channel aux2: SID=30 device type=DISK
allocated channel: aux3
channel aux3: SID=31 device type=DISK
sql statement: CREATE CONTROLFILE REUSE SET DATABASE "ORCLDP" RESETLOGS ARCHIVELOG
  MAXLOGFILES    192
  MAXLOGMEMBERS      3
  MAXDATAFILES     1024
  MAXINSTANCES    32
  MAXLOGHISTORY      292
 LOGFILE
  GROUP   5 ( '+data', '+data' ) SIZE 100 M  REUSE,
  GROUP   6 ( '+data', '+data' ) SIZE 100 M  REUSE
 DATAFILE
  '+DATA/orcldp/datafile/system.301.850252155'
 CHARACTER SET AL32UTF8

sql statement: ALTER DATABASE ADD LOGFILE

  INSTANCE 'i2'
  GROUP   7 ( '+data', '+data' ) SIZE 100 M  REUSE,
  GROUP   8 ( '+data', '+data' ) SIZE 100 M  REUSE

contents of Memory Script:
{
   set newname for tempfile  2 to
 "+data";
   switch clone tempfile all;
   catalog clone datafilecopy  "+DATA/orcldp/datafile/sysaux.411.850252157",
 "+DATA/orcldp/datafile/undotbs1.410.850252161",
 "+DATA/orcldp/datafile/users.407.850252463",
 "+DATA/orcldp/datafile/undotbs2.408.850252417",
 "+DATA/orcldp/datafile/cattbs.409.850252337";
   switch clone datafile all;
}
executing Memory Script

executing command: SET NEWNAME

renamed tempfile 2 to +data in control file

cataloged datafile copy
datafile copy file name=+DATA/orcldp/datafile/sysaux.411.850252157 RECID=1 STAMP=850252808
cataloged datafile copy
datafile copy file name=+DATA/orcldp/datafile/undotbs1.410.850252161 RECID=2 STAMP=850252808
cataloged datafile copy
datafile copy file name=+DATA/orcldp/datafile/users.407.850252463 RECID=3 STAMP=850252809
cataloged datafile copy
datafile copy file name=+DATA/orcldp/datafile/undotbs2.408.850252417 RECID=4 STAMP=850252810
cataloged datafile copy
datafile copy file name=+DATA/orcldp/datafile/cattbs.409.850252337 RECID=5 STAMP=850252818

datafile 2 switched to datafile copy
input datafile copy RECID=1 STAMP=850252808 file name=+DATA/orcldp/datafile/sysaux.411.850252157
datafile 3 switched to datafile copy
input datafile copy RECID=2 STAMP=850252808 file name=+DATA/orcldp/datafile/undotbs1.410.850252161
datafile 4 switched to datafile copy
input datafile copy RECID=3 STAMP=850252809 file name=+DATA/orcldp/datafile/users.407.850252463
datafile 5 switched to datafile copy
input datafile copy RECID=4 STAMP=850252810 file name=+DATA/orcldp/datafile/undotbs2.408.850252417
datafile 6 switched to datafile copy
input datafile copy RECID=5 STAMP=850252818 file name=+DATA/orcldp/datafile/cattbs.409.850252337

contents of Memory Script:
{
   Alter clone database open resetlogs;
}
executing Memory Script

database opened
Finished Duplicate Db at 14-JUN-2014 21:23:45
released channel: c1
released channel: c2
released channel: c3
released channel: aux1
released channel: aux2
released channel: aux3

RMAN> **end-of-file**