日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

oracle 补丁打不上_非Oracle用户下的数据库不能进行补丁安装处理一例

發布時間:2023/12/19 数据库 22 豆豆
生活随笔 收集整理的這篇文章主要介紹了 oracle 补丁打不上_非Oracle用户下的数据库不能进行补丁安装处理一例 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

環境:

AIX系統,10204版本,服務器上有2套數據庫,其中oracle用戶安裝的數據庫下面有4個實例,kserver用戶安裝的數據庫下有一個實例

問題:

kserver用戶下的數據庫不能進行補丁安裝

報錯:

List of Homes on this

system:

Home name= OUIHome1, Location=

"/orahome/product/10.2"

OPatchSession cannot load inventory for the given Oracle

Home

/oracle/app/10g. Possible causes are:

No read or write

permission to ORACLE_HOME/.patch_storage

Central Inventory is

locked by another OUI instance

No read permission to

Central Inventory

The lock file exists in

ORACLE_HOME/.patch_storage

The Oracle Home does not

exist in Central Inventory

ApplySession failed: ApplySession failed to prepare the

system.

OracleHomeInventory gets null oracleHomeInfo

System intact, OPatch will not attempt to restore the

system

OPatch failed with error code 73

在執行opatch lsinventory -detail的時候出現如下錯誤:

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

后查找metalink,找出問題根源為:kserver用戶打補丁的時候不能識別自身的軟件目錄,只能認到oracle用戶的軟件目錄。

[ID 754667.1]

Symptoms

Applying any patch on a Grid Control Agent home fails with the

following error, with patch 6780904, for instance:

oracle@kogc1 12:10:40> opatch apply

Invoking OPatch 10.2.0.4.2

Oracle Interim Patch Installer version 10.2.0.4.2

Copyright (c) 2007, Oracle Corporation. All rights

reserved.

Oracle Home : /oracle/product/10201/agent10g

Central Inventory : /oracle/product/10204/oraInventory

from : /var/opt/oracle/oraInst.loc

OPatch version : 10.2.0.4.2

OUI version : 10.2.0.4.0

OUI location : /oracle/product/10201/agent10g/oui

Log file location :

/oracle/product/10201/agent10g/cfgtoollogs/opatch/opatch2008-12-05_12-10-44PM.log

ApplySession applying interim patch '6780904' to OH

'/oracle/product/10201/agent10g'

List of Homes on this system:

OPatchSession cannot load inventory for the given Oracle Home

/oracle/product/10201/agent10g.

Possible causes are:

No read or write permission to

ORACLE_HOME/.patch_storage

Central Inventory is locked by another OUI instance

No read permission to Central Inventory

The lock file exists in ORACLE_HOME/.patch_storage

The Oracle Home does not exist in Central Inventory

ApplySession failed: ApplySession failed to prepare the

system. OracleHomeInventory gets null

oracleHomeInfo

System intact, OPatch will not attempt to restore the

system

OPatch failed with error code 73

Cause

The oraInst.loc file in the default location is pointing to

the wrong oraInventory filepath.

Solution

Solution:

1. Export the appropriate ORACLE_HOME to the

environment.

2. Correct the oraInventory path in oraInst.loc file.

3. Apply patch as per the readme.txt

NOTE:

The location of the oraInventory is determined by the contents

of the /etc/oraInst.loc (AIX and Linux Platform) or

/var/opt/oracle/OraInst.loc (Solaris and HP-UX platform).

Where more than one oraInventory is being used, and it is not

desired to edit the oraInst.loc in the default location, then these

considerations may apply:

1. Create another oraInst.loc file on the file system

2. Include the location of the oraIventory in the new

oraInst.loc file

3. Use the following command to use the oraInst.loc file from

the non default location -

opatch apply -invPtrLoc

opatch apply -invPtrLoc /oracle/app/10g/oraInst.loc

解決方法:

1、修改/etc/oraInst.loc文件,把inventory_loc及inst_group參數都換成kserver用戶的路徑及屬主。

2、執行attachHome.sh腳本

% cd

$ORACLE_HOME/oui/bin

% ./attachHome.sh

Starting Oracle Universal

Installer...

Checking swap space: must be greater than 500 MB.

Actual 1983 MB ?Passed

Preparing to launch Oracle Universal Installer from

/tmp/OraInstall2012-11-06_12-58-02PM. Please wait

...[webadmin@umemadminda02 bin]# [WARN ][jrockit] MaxPermSize=256m

ignored: Not a valid option for JRockit

The inventory pointer is located at /etc/oraInst.loc

The inventory is located at /home/webadmin/oraInventory

'AttachHome' was successful.

3、再進行打補丁$ORACLE_HOME/OPatch/opatch

apply

4、補丁安裝成功后,把/etc/oraInst.loc文件改回oracle的參數即可。

總結

以上是生活随笔為你收集整理的oracle 补丁打不上_非Oracle用户下的数据库不能进行补丁安装处理一例的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。