프린트 하기 URL 복사

OS 환경 : Oracle Linux 9.6 (64bit)

 

DB 환경 : Oracle Database 19.32.0.0

 

에러 : [INS-32826] The software home (dir) is already registered in the central inventory.

[INS-32826] The software home (/app/grid/product/19c32) is already registered in the central inventory. Refer to patch readme instructions on how to apply.
oop 패치를 위해 gridSetup을 수행시 발생한 에러

1
2
3
4
5
6
$ $GRID_HOME/gridSetup.sh -ignorePrereq -waitforcompletion -silent \
  -applyRU /app/media/39618711/39467003 \
  -responseFile /home/oracle/rsp/grid_new.rsp \
  oracle.install.option=CRS_SWONLY \
  oracle.install.crs.rootconfig.executeRootScript=false
[INS-32826] The software home (/app/grid/product/19c32) is already registered in the central inventory. Refer to patch readme instructions on how to apply.

 

 

해결 방법 : oraInventory 확인 및 temphome detatch 수행

oraInventory 확인 및 temphome detatch 수행

 

 

oraInventory 확인

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$ cat /app/oraInventory/ContentsXML/inventory.xml
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2026, Oracle and/or its affiliates.
All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>12.2.0.7.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OraGI19Home1" LOC="/app/grid/product/19c" TYPE="O" IDX="1" CRS="true"/>
<HOME NAME="OraDB19Home1" LOC="/app/oracle/product/19c" TYPE="O" IDX="2"/>
<HOME NAME="tempGIName" LOC="/app/grid/product/19c32" TYPE="O" IDX="3"/>   <<--!!
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>

tempGIName라는 임시 home이 등록되어 있음

 

 

신규 엔진홈의 oui/bin 경로로 이동 후 detachhome 수행

1
2
3
4
5
6
$ cd $NEWGRIDHOME/oui/bin
$ ./runInstaller -detachhome ORACLE_HOME=$NEWGRIDHOME ORACLE_HOME_NAME=tempGIName
Starting Oracle Universal Installer...
 
Checking swap space: must be greater than 500 MB.   Actual 5312 MB    Passed
The inventory pointer is located at /etc/oraInst.loc

여기서 ORACLE_HOME은 신규 grid home 경로를 넣고 ORACLE_HOME_NAME에는 inventory.xml의 HOME NAME 부분에 있는 이름를 입력해주면됨

 

 

oraInventory 재확인

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ cat /app/oraInventory/ContentsXML/inventory.xml
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2026, Oracle and/or its affiliates.
All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
   <SAVED_WITH>12.2.0.7.0</SAVED_WITH>
   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OraGI19Home1" LOC="/app/grid/product/19c" TYPE="O" IDX="1" CRS="true"/>
<HOME NAME="OraDB19Home1" LOC="/app/oracle/product/19c" TYPE="O" IDX="2"/>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>

정상적으로 제거됨

 

 

gridSetup.sh 재수행

1
2
3
4
5
6
$ $GRID_HOME/gridSetup.sh -ignorePrereq -waitforcompletion -silent \
  -applyRU /app/media/39618711/39467003 \
  -responseFile /home/oracle/rsp/grid_new.rsp \
  oracle.install.option=CRS_SWONLY \
  oracle.install.crs.rootconfig.executeRootScript=false
(정상)

정상적으로 수행됨

 

원인 : oraInventory에 비정상 Home이 들어가 있어 발생한 문제로 detachhome 명령 수행후 정상적으로 제거됨

oraInventory에 비정상 Home이 들어가 있어 발생한 문제로 detachhome 명령 수행후 정상적으로 제거됨
oop 패치를 위해 gridSetup을 수행하려하는데 이미 한번 수행해서 oraInventory에 신규 GRID_HOME이 이미 등록되어 재수행시 문제가 발생하였음

 

 

참조 :