久久精品人人爽,华人av在线,亚洲性视频网站,欧美专区一二三

Oracle中Inventory目錄的作用是什么

142次閱讀
沒有評論

共計 2735 個字符,預計需要花費 7 分鐘才能閱讀完成。

自動寫代碼機器人,免費開通

這篇文章將為大家詳細講解有關 Oracle 中 Inventory 目錄的作用是什么,文章內容質量較高,因此丸趣 TV 小編分享給大家做個參考,希望大家閱讀完這篇文章后對相關知識有一定的了解。

oraInventory 存放的是 Oracle 軟件安裝的目錄信息,Oralce 的安裝升級都需要用到這個目錄,來看看 Oracle 文檔中對這個目錄的一點說明:
All Oracle software installations rely on this directory. 
Ensure that you back it up regularly. 
Do not delete this directory unless you have completely removed 
all Oracle software from the system.

oraInventory 目錄的位置是由 oraInst.loc 文件決定的:
/etc/oraInst.loc (AIX and Linux Platform)
/var/opt/oracle/OraInst.loc (Solaris and HP-UX platform)

$cat /etc/oraInst.loc 
inventory_loc=/app/oracle/oraInventory
inst_group=dba
刪除或丟失 oraInventory 目錄的內容,都有可能導致升級報錯,例如在運行 opatch 時就有可能遇到以下報錯:
10G 中:
$opatch lsinventory
Invoking OPatch 10.2.0.4.3

OPatch failed to locate Central Inventory.
Possible causes are: 
    The Central Inventory is corrupted
    The oraInst.loc file specified is not valid.
LsInventorySession failed: OPatch failed to locate Central Inventory.
Possible causes are: 
    The Central Inventory is corrupted
    The oraInst.loc file specified is not valid.

OPatch failed with error code 73
$opatch lsinventory
Invoking OPatch 10.2.0.4.3

List of Homes on this system:

Inventory load failed… OPatch cannot load inventory for the given Oracle Home.
Possible causes are:
   Oracle Home dir. path does not exist in Central Inventory
   Oracle Home is a symbolic link
   Oracle Home inventory is corrupted
LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo

OPatch failed with error code 73
9I 中報錯:
OPATCH_JAVA_ERROR : An exception of type OPatchException has occurred: 
OPatch Exception:
 Can not lock OUI inventory (READ/WRITE Level)
 An exception occurs
 The inventory pointed at location /app/oraInventory is not valid

There is no Interim Patch

Can not get a list of inventory on this home.
LsInventory: OPatch Exception while accessing O2O

OPATCH_JAVA_ERROR : An exception of type OPatchException has occurred: 
OPatch Exception:
 OUI found no such ORACLE_HOME set in the environment
 Can not get details for given Oracle Home
 An exception occurs
 null

There is no Interim Patch

Can not get a list of inventory on this home.

ERROR: OPatch failed because of Inventory problem.
在 10G 中可以運行以下命令進行 oraInventory 目錄重建:
$cd $ORACLE_HOME/oui/bin
$./runInstaller -silent -attachHome \
ORACLE_HOME=$ORACLE_HOME \
ORACLE_HOME_NAME= ORACLE_HOME
Starting Oracle Universal Installer…

No pre-requisite checks found in oraparam.ini, 
no system pre-requisite checks will be executed.
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /app/oracle/oraInventory
AttachHome was successful.
js_znjh_1./app/oracle/product/10.2.0/db_1/oui/bin$
10.2.0.2 以上的版本,還可以直接運行 attachHome.sh 腳本:
$cd $ORACLE_HOME/oui/bin   
$./attachHome.sh
Starting Oracle Universal Installer…

No pre-requisite checks found in oraparam.ini, 
no system pre-requisite checks will be executed.
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /app/oracle/oraInventory
AttachHome was successful.

關于 Oracle 中 Inventory 目錄的作用是什么就分享到這里了,希望以上內容可以對大家有一定的幫助,可以學到更多知識。如果覺得文章不錯,可以把它分享出去讓更多的人看到。

向 AI 問一下細節

正文完
 
丸趣
版權聲明:本站原創文章,由 丸趣 2023-12-04發表,共計2735字。
轉載說明:除特殊說明外本站除技術相關以外文章皆由網絡搜集發布,轉載請注明出處。
評論(沒有評論)
主站蜘蛛池模板: 新化县| 南陵县| 仁寿县| 宜章县| 胶州市| 临泉县| 黎城县| 衡阳县| 嫩江县| 马尔康县| 南漳县| 青州市| 湖州市| 呼伦贝尔市| 称多县| 尉氏县| 安图县| 日照市| 涞源县| 辽阳县| 布尔津县| 四子王旗| 漳州市| 兴隆县| 都安| 武乡县| 灌阳县| 天镇县| 安岳县| 锡林浩特市| 巴南区| 曲水县| 铜陵市| 黔江区| 左贡县| 会东县| 沂南县| 仁化县| 武宣县| 阿克| 湖州市|