40 lines
1.4 KiB
Plaintext
Executable File
40 lines
1.4 KiB
Plaintext
Executable File
created: 20200218153929609
|
|
creator: vplesnila
|
|
modified: 20200218161821409
|
|
modifier: vplesnila
|
|
tags: Oracle
|
|
title: Changing the Oracle Grid Infrastructure Home Path
|
|
type: text/plain
|
|
|
|
~~ Moving ORACLE_HOME
|
|
~~ from /app/grid/product/19.3
|
|
~~ to /app/grid/product/19
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
~~ as root stop the CRS
|
|
crsctl stop crs
|
|
|
|
~~ as grid, detach the grid ORACLE_HOME
|
|
/app/grid/product/19.3/oui/bin/runInstaller -silent -waitforcompletion\
|
|
-detachHome ORACLE_HOME='/app/grid/product/19.3' -local
|
|
|
|
~~ as root, move the Grid binaries from the old Grid home location to the new Grid home location
|
|
cp -Rp /app/grid/product/19.3 /app/grid/product/19
|
|
|
|
~~ as root Unlock the destination Grid home
|
|
/app/grid/product/19/crs/install/rootcrs.sh -unlock -dstcrshome /app/grid/product/19
|
|
|
|
~~ as grid relink Grid binaries
|
|
~~ set up your environement variable according to the new ORACLE_HOME
|
|
/app/grid/product/19/bin/relink
|
|
|
|
~~ as root lock the destination Grid home
|
|
/app/grid/product/19/crs/install/rootcrs.sh -lock
|
|
|
|
~~ as root move Grid home to the new destination and start CRS
|
|
/app/grid/product/19/crs/install/rootcrs.sh -move -dstcrshome /app/grid/product/19
|
|
|
|
~~ as grid, attach the new home in Oracle Inventory
|
|
/app/grid/product/19/oui/bin/runInstaller -attachhome ORACLE_HOME=/app/grid/product/19 ORACLE_HOME_NAME="OraGI19Home1"
|
|
/app/grid/product/19/OPatch/opatch lsinventory
|