RMAN active cloning in oracle 12C - DBACLASS DBACLASS
RMAN active cloning in oracle 12c . one of the easiest and fastest cloning method without taking backup of the source db .
oracle clusteringintermediate
by OracleDba
13 views
RMAN active cloning in oracle 12c . one of the easiest and fastest cloning method without taking backup of the source db .
123456789101112131415161718192021222324252627282930313233343536373839404142
-- source db tns :
PRODDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = proddb.dbaclass.com)(PORT = 1532))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = PRODDB)
)
)
--Target db tns :
TESTDB =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = testdb.dbaclass.com)(PORT = 1522))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = TESTDB)
)
)
LISTENER_TESTDB =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = testdb.dbaclass.com)(PORT = 1538))
))
SID_LIST_LISTENER_TESTDB =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = TESTDB)
(ORACLE_HOME = /oracle/app/oracle/product/12.1.0.2/dbhome_1)
(SID_NAME = TESTDB )
))
-- START THE LISTENER
lsnrctl start LISTENER_TESTDB123456789
-- SOURCE DB ( PRODDB)
cd $ORACLE_HOME/dbs
orapwd file=orapw$ORACLE_SID password=oracle force=y
-- TARGET DB ( TESTDB)
cd $ORACLE_HOME/dbs
orapwd file=orapw$ORACLE_SID password=oracle force=y123
export ORACLE_SID=TESTDB
SQL> create spfile from pfile ;
SQL> Startup nomount123456789101112
rman target sys/oracle@PRODDB auxiliary sys/oracle@TESTDB
run
{
allocate channel src1 type disk;
allocate channel src2 type disk;
allocate auxiliary channel aux1 type disk;
allocate auxiliary channel aux2 type disk;
allocate auxiliary channel aux3 type disk;
allocate auxiliary channel aux4 type disk;
duplicate target database to TESTDB from active database USING BACKUPSET ;
}12345678910
run
{
allocate channel src1 type disk;
allocate channel src2 type disk;
allocate auxiliary channel aux1 type disk;
allocate auxiliary channel aux2 type disk;
allocate auxiliary channel aux3 type disk;
allocate auxiliary channel aux4 type disk;
duplicate target database to TESTDB from active database SKIP TABLESPACE "USER_DATA";
}Please to add comments
No comments yet. Be the first to comment!