Home > Oracle > moving oracle software to a new path

moving oracle software to a new path

Installed oracle software in /u01/app/oracle/product/12.1.0.2 and need to change it to /u01/app/oracle/product/12.1.0.2/db_1

shut down all databases and listeners

Enter the following to back up the database

cd /u01/app/oracle/product/12.1.0.2

tar cf – * | gzip > /u01/app/oracle/product/12.1.0.2/product/archive/DBHome.tar.gz

delete the Oracle home from the Central Inventory, use the following command:

./runInstaller -silent -detachHome ORACLE_HOME=”/u01/app/oracle/product/12.1.0.2″

Delete the Oracle home:

cd /u01/app/oracle/product
rm -rf /product/12.1.0.2

Restore the original Oracle home and update the Central Inventory

mkdir -p /u01/app/oracle/product/12.1.0.2/db_1

gunzip < /product/archive/DBHome.tar.gz | tar xf –

Attach this Oracle home to the Central Inventory:

./runInstaller -silent -attachHome ORACLE_HOME=”/u01/app/oracle/product/12.1.0.2/db_1″

Advertisements
Categories: Oracle
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: