[Oracle] oraInventory, oraInst.loc

prana·2025년 2월 24일
1

ORACLE

목록 보기
84/96

상황

  • db설치 진행 중에 2번 노드에 /u02 디렉토리 경로도 잘 안잡혀져 있었고 ... 등등의 문제로
    runInstaller도 안되고, deinstall도 안되는 상황이 있었다.
    • oraInst.loc 파일을 따라서 oraInventory 경로에 inventory.xml 파일에 노드1에는 설치가 되어있는 상태로 기술되어 있었고, 노드2에는 설치가 안되어있는 상태로 있었다.
    • 그래서 해당 OraDB19Home1 이 있는 줄을 삭제하고, 다시 진행하게 되었다.

oraInventory

  • Oracle Universal Installer (OUI) 및 관련 유틸리티가 사용하며, 설치된 모든 Oracle 제품에 대한 정보를 중앙 집중식으로 관리한다.

  • 이 디렉토리는 시스템에 설치된 여러 Oracle Home의 위치, 설치 버전, 패치 적용 내역 등 기록하여, 제품 관리 및 업그레이드, 패치 적용 시 중요한 참조 자료 역할을 수행한다.

inventory.xml

  • oraInventory/ContentsXML/inventory.xml
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2025, 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="/u01/app/oracle/product/19c/gridhome_1" TYPE="O" IDX="1" CRS="true"/> 
<HOME NAME="OraDB19Home1" LOC="/u02/app/oracle/product/19c/dbhome_1" TYPE="O" IDX="2"/>
</HOME_LIST>
<COMPOSITEHOME_LIST>
</COMPOSITEHOME_LIST>
</INVENTORY>
  • VERSION_INFO: Inventory 파일의 생성 시점 및 최소 버전 정보
  • HOME_LIST: 시스템에 설치된 각 Oracle Home에 대한 정보를 기록

oraInst.loc

  • Oracle Universal Installer(OUI) 및 관련 도구들이 Oracle Inventory의 위치를 식별할 수 있도록 도와주는 구성 파일이다.
inventory_loc=/u01/app/oraInventory -- 실제 Oracle Inventory 디렉토리의 경로
inst_group=dba -- Oracle Inventory를 관리하는 OS 그룹
  • inventory.xml
    • Oracle Inventory에 등록된 Oracle Home 및 설치 제품의 상세 정보를 XML 형식으로 기록한 파일로, 제품 관리와 패치 내역 등을 추적하는 데 사용된다.
  • oraInst.loc
    • OUI와 기타 Oracle 도구가 위의 inventory.xml파일이 위치한 Oracle Inventory디렉토리를 올바르게 찾을 수 있도록 경로(inventory_loc)와 관리 그룹(inst_group)정보를 제공하는 구성 파일이다.
$ find / -name "oraInst.loc" 2>/dev/null
/etc/oraInst.loc
/tmp/GridSetupActions2025-02-17_06-11-50PM/PatchActions/oraInventory/oraInst.loc
/u01/app/oracle/product/19c/gridhome_1/oraInst.loc
/u01/app/oraInventory/oraInst.loc
/u02/app/oracle/product/19c/dbhome_1/oraInst.loc

0개의 댓글