Duplicate the database using Rman from active database

Duplicate the database using Rman from active database

1. Configure or install oracle binary oracle_home in target system
2. Configure tns entries in both node(target and source). TNS entry should be pin-gable from the source and target system
3. Create password file in target system and source system using orapw utility. password should be same in target and source database

4. Start the target database in nomont point using pfile

    $sqlplus / as sysdba
    sqlplus>startup nomount pfile=temppfile.ora

-bash-4.4$ cat temppfile.ora
db_name                         = ERPDEV
compatible                      = 12.1.0
control_files                   = /erp_data/oradata/cntrl01.dbf,/erp_data/oradata/cntrl02.dbf,/erp_data/oradata/cntrl03.dbf
*.db_create_file_dest='/erp_data/oradata'
*.DB_CREATE_ONLINE_LOG_DEST_1='/erp_data/oradata'
*.DB_CREATE_ONLINE_LOG_DEST_2='/erp_data/oradata'
*.memory_target=10G
*.remote_login_passwordfile='exclusive'
DB_FILES=2000

5. Connect to auxilary database

rman target sys/manager@source-tns  AUXILIARY sys/manager@target-tns


run
{
allocate channel d1 type disk maxpiecesize 20G;
allocate channel d2 type disk maxpiecesize 20G;
allocate channel d3 type disk maxpiecesize 20G;
allocate channel d4 type disk maxpiecesize 20G;
allocate channel d5 type disk maxpiecesize 20G;
allocate channel d6 type disk maxpiecesize 20G;
allocate channel d7 type disk maxpiecesize 20G;
allocate channel d8 type disk maxpiecesize 20G;
allocate auxiliary channel DUP1 type disk maxpiecesize 20G;
allocate auxiliary channel DUP2 type disk maxpiecesize 20G;
allocate auxiliary channel DUP3 type disk maxpiecesize 20G;
allocate auxiliary channel DUP4 type disk maxpiecesize 20G;
allocate auxiliary channel DUP5 type disk maxpiecesize 20G;
allocate auxiliary channel DUP6 type disk maxpiecesize 20G;
allocate auxiliary channel DUP7 type disk maxpiecesize 20G;
allocate auxiliary channel DUP8 type disk maxpiecesize 20G;
duplicate target database to 'ERPDEV'  from active database;
}

in case failed during rman restore command in last stage, please allocate one channel and one channel for auxiliary. its a bug. the restore will start from where it failed

run
{
allocate channel d1 type disk;
allocate auxiliary channel DUP1 type disk;
duplicate target database to 'ERPDEV'  from active database;
}


appsdbahelp

17+ years of experience in Oracle Database, Oracle Cloud Infrastructure(OCI), Oracle EBS on Cloud, Oracle E-Business Suite, DevOps tools, Oracle WebLogic, Oracle Application Server, Oracle Access Manager and various Operating System flavors including Redhat Linux, UNIX (Solaris, HP-UX) and Windows. Expert in Oracle9i/10g/11g/12c/19c database administration, upgrade, configuration and tuning. Experience in Oracle E-Business Suite technological stack, including architecture, installation, configuration, maintenance, tuning, cloning and patching procedures. Expert in Oracle Cloud Infrastructure(OCI), Oracle EBS On Cloud and Oracle EBS Cloud Manager Experience with Oracle Cloud Solution and Expert of Oracle ERP/Oracle HCM Cloud deployment Experience in Terraform, JSON and chef cloud infrastructure automation framework Knowledge of ASM, Data Guard, Real Application Cluster, Exadata and Exalogic Knowledge of Oracle Enterprise Manager(OEM) Grid Control, Oracle WebLogic, Oracle Internet Directory, Oracle Access Manager and Apache Ability to analyze problem, develops solutions and bring program/project execution to completion.

Post a Comment

Previous Post Next Post