Friday, July 5, 2013

Grid home relink and oracle home relink

For RAC databases.

FOR grid
=========

execute below scripts as root or grid user.

$GRID_HOME/crs/install/rootcrs.pl -unlock

Above script will bring down CRS background process and change permission of $GRID_HOME/bin root owned file to oracle:dba

ls -l $GRID_HOME/rdbms/lib/config.o
mv $GRID_HOME/rdbms/lib/config.o $ORACLE_HOME/rdbms/lib/config.o_BAK
ls -l $GRID_HOME/rdbms/lib/config.o*
set environment to grid or ASM
$GRID_HOME/bin/relink all

$ORACLE_HOME/crs/install/rootcrs.pl -patch
above script will automatically bring up crs process.

for RDBMS HOME
====================

set RDBMS HOME environment

cd $ORACLE_HOME/bin
relink all
For STANDALONE ASM INSTANCE

execute below scripts as root or grid user.

$GRID_HOME/crs/install/roothas.pl -unlock

Above script will bring down CRS background process and change permission of $GRID_HOME/bin root owned file to oracle:dba

ls -l $GRID_HOME/rdbms/lib/config.o
mv $GRID_HOME/rdbms/lib/config.o $ORACLE_HOME/rdbms/lib/config.o_BAK
ls -l $GRID_HOME/rdbms/lib/config.o*
set environment to grid or ASM

$GRID_HOME/bin/relink all

$ORACLE_HOME/crs/install/roothas.pl -patch
above script will automatically bring up crs process.

for RDBMS HOME
====================

set RDBMS HOME environment

cd $ORACLE_HOME/bin
relink all

No comments:

Post a Comment