STEP 1: Check pre-requisites
Once the server is ready, make sure to check the pre-requisites mentioned in the Oracle Document(1330701.1).
- Check the list of RPMs that need to be installed.
We can check whether the rpm is installed or not using the below command. Replace libgcc with the rpm you are searching for.
- Update the kernel parameter values in /etc/sysctl.conf. Values suggested in the document are minimum, you can set a value more than what is suggested in the document. It should not be less than the value mentioned in the document. In our case, we have installed 19C Grid for ASM which requires a few of the kernel parameter values to be more than what is suggested in this documents. So it's always better to keep the highest value in the /etc/sysctl.conf file and after updating all the values in the file. Please use sysctl -p to restart the system to invoke the new settings.
- Make sure host entries are added in the /etc/hosts file.
STEP 2: Check the mounts
Make sure all the required mount points are mounted in the server.
STEP 3: Install 19c Grid ASM
Install 19c Grid ASM. If I add the Step to install 19c Grid ASM here this post would be too big. So I will publish installation steps as different blog posts.
STEP 4:Run preclone on source DB
The plan here is to copy the Oracle database and application binary from the source instance to the target instance.
Since we are copying the Oracle binaries it is important to run preclone on both database and application. Log in to the source database server and source env then run adpreclone.pl.
STEP 5: Run preclone on the source application
Login to source application server and source the run file system env then run adpreclone.pl.
We didn't have the privilege of doing the snap clone for the 4 TB database. We only have a shared mount between two data centers and RMAN. Some might say that taking a compressed backup will take more time cause it uses the CPU overhead to compress the backup. The time taken to compress the backup is less compared to the time taken to place the 4TB RMAN backup in the NFS mount. The compressed backup almost half the time as the null compression backup and also the backup size was reduced to 800GB.
Once the RMAN completes make sure to give chmod 777 permission to RMAN backup files.
After starting the RMAN instead of waiting for it to complete. We can take the tar of backup of database oracle home.
Once the tar completes make sure to give chmod 777 permission to tarball files.
Log in to the database server and run the untar. We had kept the directory structure the same as the source instance.
Log in to the application server and run the untar.
STEP 7: Restore the RMAN backup in the Target database
Update the pfile in the target database for the RMAN restore.
Run the library update script in the database as sysdba
STEP 8: Cleanup FND_NODES and run autoconfig
Database in the source instance will still be pointing to the old servers. We need to clean the FND_NODES value and run autoconfig to populate the values in the table.
Make sure the listener is up and running before starting autoconfig in the source database.
Since we have updated the database $CONTEXT_FILE we have run just the autoconfig to apply the updated values instead of running the adcfgclone.pl in the database.
STEP 9: Configure Application Node
Since we didn't copy the INST while taring in the source application server, we need to manually copy the $CONTEXT_FILE from the source application server to the target application server. Once the $CONTEXT_FILE is copied, update the context_file with the new hostnames and URL(if the new server has a different URL). Once the adcfgclone completes, run autoconfig in both the run file system and patch file system
Once the adcfgclone completes, run autoconfig in both the run file system and patch file system.
Before running the autoconfig in the patch file system we need to disable the ebs_logon trigger otherwise the autoconfig for the patch file system would fail.
STEP 10: Delete the Orphan value
After disabling the ebs_logon trigger, run the autoconfig in the patch file system.
Once the autoconfig for the patch file system completes successfully make sure to enable the ebs_logon triggers back.
Run the below delete statement to delete the Orphan values in the database.
Start the application service in the target instance.
Use the below query to find the profile options which is still having the old host values.
STEP 13:Final ChecksPerform Sanity checks in the target instance and run fs_clone once everything fine.
Comments
Post a Comment