프린트 하기

OS환경 : Oracle Linux 7.6 (64bit)

 

DB 환경 : Oracle Database 19.12.0.0 RAC

 

에러 : 오라클 19c RAC GRID_HOME relink 시 발생하는 메세지

19c RAC 환경에서 GRID_HOME relink를 하려할 때 발생하는 메세지

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# su - oracle
$ export ORACLE_HOME=$GRID_HOME
$ echo $ORACLE_HOME
/oracle/app/grid/19c
$ cd $GRID_HOME/bin
$ pwd
/oracle/app/grid/19c/bin
$ ./relink all
  The Oracle home in which you are running this relinking tool does not 
have proper write permissions. Please run this relink script as the same 
user who owns the Oracle home and ensure that the Oracle home has the 
permissions from the original installation. 
If this is a Grid Infrastructure home, please refer to the 
documentation for the proper steps to relink and apply oneoff patches.

 

 

해결 방법 : rootcrs.sh -unlock 실행 후 relink 진행

unlock 진행

1
2
3
4
5
6
7
8
# cd $GRID_HOME/crs/install
# pwd
/oracle/app/grid/19c/crs/install
# sh rootcrs.sh -unlock
Using configuration parameter file: /oracle/app/grid/19c/crs/install/crsconfig_params
The log of current session can be found at:
  /oracle/app/oracle/crsdata/oel19db1/crsconfig/crsunlock_oel19db1_2021-12-30_08-31-54PM.log
2021/12/30 20:31:54 CLSRSC-347: Successfully unlock /oracle/app/grid/19c

 

 

다시 relink 시도

1
2
3
4
5
6
7
8
9
# su - oracle
$ export ORACLE_HOME=$GRID_HOME
$ echo $ORACLE_HOME
/oracle/app/grid/19c
$ cd $GRID_HOME/bin
$ pwd
/oracle/app/grid/19c/bin
$ ./relink all
writing relink log to: /oracle/app/grid/19c/install/relinkActions2021-12-30_08-40-06PM.log

정상적으로 relink 됨

 

 

원인 : unlock 을 하지 않아서 발생한 문제

rac 환경에선 unlock 후 relink를 해야함

 

 

참조 : 

https://positivemh.tistory.com/788