Clone Oracle E-Business Suite Release 12.2 instance on Oracle Database 19c

Prepare source Oracle EBS instance for cloning

Prepare source system database tier

  • Ensure all processes are running in source system database tier.
  • Download and copy latest ETCC patch under ORACLE_HOME/appsutil for preclone to complete successfully.
  • Source PDB environment file and run adpreclone dbTier.
  • Create tar backup of source database Oracle Home (or not by comparing binaries of source and target Oracle Homes).
  • Create and initiate backup of source database to take an online or offline RMAN backup.

Prepare source system application tier

  • Source the Run FS and execute adpreclone appsTier.
  • Create tar backup of source application tier Run FS EBSapps directory.

Clone target database tier

Begin by first bringing down target application tier.

Drop target database

Duplicate target database

  • Create and execute RMAN duplicate script to restore/recover target database from source backup files, using target database pfile.

Configure target CDB-PDB environment

  • Ensure PDB is open in read-write mode else execute “alter pluggable database all open”.
  • Change PDB name to that of target.
  • Start source PDB and save its state
  • Check for any PDB violations while logged in to CDB
  • Run library update script against the database

Set target UTL_FILE_DIR values in database

  • Obtain the existing value for the UTL_FILE_DIR
  • Review and edit TGTPDB_utlfiledir.txt as necessary and run the following to store the updated values for UTL_FILE_DIR in the database.
  • Create directory object for the outbound directory (pointed to by the s_outbound_dir context variable in the database tier context file)
  • Sync up the value of UTL_FILE_DIR in the database tier context file

Configure target database tier

Configure and clone target application tier

  • Create directories fs1 and fs2 under <s_base> where s_base is the top level directory for EBS application file system, e.g. /u01/R122_EBS/fs1 and /u01/R122_EBS/fs2. Ensure target environment file is under s_base and Central Inventory is created.
  • Extract source EBSapps tar backup under fs1 or fs2(depending on which was the Run FS in the source system).
  • Configure target application tier with the backup of target application $CONTEXT_FILE and “dual fs” option.
  • Start target application tier services and complete post clone steps.
  • Run fs_clone.

Leave a comment