Today we are going to work on the steps which are used to clone Oracle Binaries.  Sometimes we install Oracle software by using a utility such as tar to copy an existing installation of the Oracle binaries to a different server.

Installing Oracle with an existing copy of the binaries is a two-part process

  1. Copy the binaries
  2. Attach the Oracle home

Step 1. Copy the Binaries You can use any OS copy utility to perform this step.

Now the tar utility copies every file and subdirectory in the db_1 directory:

Now, copy the orahome-db2server.tar file to the db2server on which you want to install the Oracle software. tar file is copied to the /u01/app/oracle/product/12.1.0.1 directory on db2server. The tar file is extracted there and creates a db_1 directory as part of the extract:

Make sure you have 4 GB of free space. Next, extract the files:

When the tar command completes, the directory db_1 should be created. There is one strong command in Linux to tar a directory, send to the remote server and extract it.

Step 2. Attach the Oracle Home When you try to upgrade the clone oracle home, the upgrade process will throw an error and abort.

To resolve this, you need to attach the oracle home. To attach an Oracle home, you need to know the location of your oraInst.loc file on your server.

On Linux servers, this file is usually located in the /etc directory.

On Solaris, this file can generally be found in the /var/opt/ oracle directory. After you’ve located your oraInst.loc file, navigate to the ORACLE_HOME/oui/bin directory.

Today’s thought!

In some cases, acts of kindness can affect those receiving them so deeply, that it gives them hope where none existed before –Carissa Gustafson PsyD

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

Joel Perez’s LinkedIn: Joel Perez’s Profile

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

About The Author

Comments

  1. zhwsh

    $ tar -cvf – db_1 | ssh db2server “/u01/app/oracle/product/12.1.0.1; tar -xvf -”
    –// Lack of cd .
    $ tar -cvf – db_1 | ssh db2server “cd /u01/app/oracle/product/12.1.0.1; tar -xvf -”

    $ cd $ORACLE_HOME/oui/bin

    ‘AttachHome’ was successful.

    –//incomprehension

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.