- Database In Archive log mode.
- Take Whole Hot/Cold Backup of Target Database.
Rman > Backup Database plus archivelog;
- Create Pfile from Target Database Spfile.
Sql > create pfile=’C:\app\Parag\product\11.2.0\dbhome_1\database\initauxdb.ora' from spfile;
- Open Pfile with notepad and Replace (Ctrl + H) all Orcl to Auxdb except Listener_ORCl.
Sql > host notepad C:\app\Parag\product\11.2.0\dbhome_1\database\initauxdb.ora
- On windows platform you need to create a new instance for Auxdb with also creates an password file for the same.
Sql > host oradim -new -sid auxdb -syspwd admin
- Create all the folders in Oracle Folder Strectures.
SQL> host mkdir C:\app\Parag\oradata\auxdb SQL> host mkdir C:\app\Parag\flash_recovery_area\AUXDB SQL> host mkdir C:\app\Parag\admin\auxdb SQL> host mkdir C:\app\Parag\admin\auxdb\adump SQL> host mkdir C:\app\Parag\admin\auxdb\dpdump SQL> host mkdir C:\app\Parag\admin\auxdb\pfile
- Connect to Auxdb and Startup Instance in nomount Stage.
C:\set ORACLE_SID=auxdb C:\sqlplus / as sysdba SQL> startup nomount //Instance started with pfile SQL> create spfile from pfile; SQL> shut immediate SQL> startup nomount //Instance started with spfile now
- Now set these two parameters to convert your datafiles and logfile names.
SQL> show parameter convert SQL> alter system set db_file_name_convert = 'orcl','auxdb' scope=spfile; SQL> alter system set log_file_name_convert = 'orcl','auxdb' scope=spfile; SQL> shut immediate SQL> startup nomount
- Now you need to convert Recovery Manager to Start the Duplicating (Cloning)Process.
C:\> set ORACLE_SID=auxdb C:\> rman auxiliary / RMAN> connect target sys/admin@orcl RMAN> Duplicate target database to auxdb;
- If all steps are done correctly you will have a new database clone created successfully.
Monday, 25 December 2017
Home
10g
11g
Admin1
Admin2
Rman
Creating Oracle Duplicate, Clone, Sandbox Database in 10g and 11g Using RMAN WithTarget connection
Creating Oracle Duplicate, Clone, Sandbox Database in 10g and 11g Using RMAN WithTarget connection
Subscribe to:
Post Comments (Atom)
Very Nice Sir
ReplyDelete