Step 1: Find out the oraInst.loc file location either using find command or opatch utility.
$ ./opatch lsinventory
Invoking OPatch 11.2.0.1.1
Oracle Interim Patch Installer version 11.2.0.1.1
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home : /u02/app/oracle/product/11.2.0/db_1
Central Inventory : /u01/app/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.2.0.1.1
…..
….
….
OPatch succeeded.
Step 2: Open /etc/oraInst.loc file and copy the content of the directory to the new location. In this example oracle inventory is in /u01/app/oraInventory and I am going to copy to /home/oracle/oraInventory.
cp -iRp oraInventory /home/oracle
where –i option ask you if the directory already presnt
-R recursively copy the directory
-p option will copy the content without changing the permission and ownership.
Step 3: change the /etc/oraInst.loc content to new location and again check with opatch utility whether it is accessing the new location successfully.
vi /etc/oraInst.loc
inventory_loc=/home/oracle/oraInventory
inst_group=oinstall
$ ./opatch lsinventory
Invoking OPatch 11.2.0.1.1
Oracle Interim Patch Installer version 11.2.0.1.1
Copyright (c) 2009, Oracle Corporation. All rights reserved.
Oracle Home : /u02/app/oracle/product/11.2.0/db_1
Central Inventory : /home/oracle/oraInventory
from : /etc/oraInst.loc
…..
….
….
OPatch succeeded.
'oracle' 카테고리의 다른 글
Oracle 함수 | Having (0) | 2022.09.29 |
---|---|
[ORACLE] 연산자 종류 및 연산자 우선순위 (0) | 2022.09.27 |
[ORACLE] Oracle Partition 정의 (1) | 2022.09.23 |
[ORACLE] ORA-30556 : 함수 또는 비트맵 조인 인덱스가 수정할 열에 정의되어 있습니다. 컬럼 사이즈 변경 에러 (0) | 2022.09.21 |
[ORACLE] PL/SQL SQL Cursor (0) | 2022.09.20 |