Duplicate the database from Rman Backup Location


Duplicate the database from Rman Backup Location

1 - Start the database in nomount using temporary pfile
      sqlplus / as sysdba
      startup nomount pfile='temp.ora'
      exit

Content of temp.ora

db_name                         = ERDBA
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

   
2-  Run the duplicate.sh shell scripts in nohup mode
      
    nohup duplicate.sh &

Shell scripts content for duplicate.sh

-----------------------------------------

vi duplicate.sh
----------------
rman log=duplicatedb.log << EOF
connect auxiliary /
run {
ALLOCATE AUXILIARY CHANNEL d1 DEVICE TYPE DISK;
ALLOCATE AUXILIARY CHANNEL d2 DEVICE TYPE DISK;
ALLOCATE AUXILIARY CHANNEL d3 DEVICE TYPE DISK;
ALLOCATE AUXILIARY CHANNEL d4 DEVICE TYPE DISK;
DUPLICATE DATABASE TO ERPDBA BACKUP LOCATION '/export/home/erp_bkp/oradata/ERPDBA/rman/bkp_sets/clone';
}
EOF





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