Required amount of space(22099.23MB) is not available.

本文介绍了解决Oracle 11g R2在空间不足的情况下应用补丁的问题。通过设置OPatch.SKIP_VERIFY_SPACE=true跳过了空间检查限制,成功安装了9352237和9778840两个补丁。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  最近给oracle11grelease2的数据库打11.2.0.1.0打补丁p9778840_112010_Linux-x86-64.zip也就是PSU1,由于开始规划系统的时候
没有预料到11gR2占用的空间比较多,在安装完后,grid和db存放的目录/u01一共只有不到2G的free空间,在使用opatch打补丁遇到如下错误:
[oracle@node1-11gr2-rac oradata]$ opatch napply -local -oh/u01/grid/ -id 9778840,9352237
Invoking OPatch 11.2.0.1.2
Oracle Interim Patch Installer version 11.2.0.1.2
Copyright (c) 2010, Oracle Corporation.  All rightsreserved.
UTIL session
Oracle Home            : /u01/grid
Central Inventory : /u01/oraInventory
    from                    : /etc/oraInst.loc
OPatch version      : 11.2.0.1.2
OUI version            :11.2.0.1.0
OUI location          :/u01/grid//oui
Log file location :/u01/grid/cfgtoollogs/opatch/opatch2010-07-08_15-33-17PM.log
Patch history file:/u01/grid/cfgtoollogs/opatch/opatch_history.txt
Invoking utility "napply"
Checking conflict among patches...
Checking if Oracle Home has components required by patches...
Checking conflicts against Oracle Home...
OPatch continues with these patches:    9352237  9778840 
Do you want to proceed? [y|n]
y
User Responded with: Y
Running prerequisite checks...
Prerequisite check "CheckSystemSpace" failed.
The details are:
Required amount of space(4563706644)is not available.
UtilSession failed: Prerequisite check"CheckSystemSpace" failed.
OPatch failed with error code 73
系统提示居然需要4.5G的空间才能打补丁,其实PSU解压后只有1G左右,有2G的空间打补丁应该够用。
于是想尝试修改opatch下的文件opatch_prereq.xml中关于
              <PREREQUISITEREF NAME="CheckSystemSpace"SEVERITY="Error"/>
      <PREREQUISITENAME="CheckSystemSpace"
                              EXTERNALNAME="Does the system have enough space?"
                              EXTERNALNAMEID=" S_CHECK_SYSTEM_SPACE@oracle.opatch.opatchprereq.OPatchPrereqRuntimeRes"
              <DESCRIPTION TEXT="Check if the system have enoughspace to install the patch."
                              TEXTID=" S_CHECK_SYSTEM_SPACE_DESCRIPTION@oracle.opatch.opatchprereq.OPatchPrereqRuntimeRes"/>
              <RULESETREF NAME="OPatchChecks"RULE="CheckSystemSpace" FILE=""
              <PROBLEMTEXT="Required amount of space is not present in the system."
                              TEXTID=" S_CHECK_SYSTEM_SPACE_ERROR@oracle.opatch.opatchprereq.OPatchPrereqRuntimeRes">
              <RECOMMENDATION TEXT="Create some free space and tryagain."
                              TEXTID=" S_CHECK_SYSTEM_SPACE_ACTION@oracle.opatch.opatchprereq.OPatchPrereqRuntimeRes"/>
      <RULE name="CheckSystemSpace"method="checkSystemSpace"/>
删除掉CheckSystemSpace部分,但是opatch运行还是抱同样的错误。
检查了下metalink发现有个OPatch.SKIP_VERIFY_SPACE=true的功能,可以忽略空间检查
[oracle@node1-11gr2-rac oradata]$ opatch napplyOPatch.SKIP_VERIFY_SPACE=true -local -oh /u01/grid/ -id9778840,9352237
Invoking OPatch 11.2.0.1.2
Oracle Interim Patch Installer version 11.2.0.1.2
Copyright (c) 2010, Oracle Corporation.  All rightsreserved.
UTIL session
Oracle Home            : /u01/grid
Central Inventory : /u01/oraInventory
    from                    : /etc/oraInst.loc
OPatch version      : 11.2.0.1.2
OUI version            :11.2.0.1.0
OUI location          :/u01/grid//oui
Log file location :/u01/grid/cfgtoollogs/opatch/opatch2010-07-08_16-07-14PM.log
Patch history file:/u01/grid/cfgtoollogs/opatch/opatch_history.txt
Invoking utility "napply"
Checking conflict among patches...
Checking if Oracle Home has components required by patches...
Checking conflicts against Oracle Home...
OPatch continues with these patches:    9352237  9778840 
Do you want to proceed? [y|n]
y
User Responded with: Y
Running prerequisite checks...
Provide your email address to be informed of security issues,install and
initiate Oracle Configuration Manager. Easier for you if you useyour My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.htmlfor details.
Email address/User Name:
You have not provided an email address for notification ofsecurity issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o)[N]:  y

You selected -local option, hence OPatch will patch the localsystem only.

Please shutdown Oracle instances running out of this ORACLE_HOME onthe local system.
(Oracle Home = '/u01/grid')

Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files affected by the patch 'NApply' for restore. Thismight take a while...
Execution of 'sh /oradata/9352237/custom/scripts/pre -apply 9352237':

Return Code = 0
Applying patch 9352237...
ApplySession applying interim patch '9352237' to OH'/u01/grid'
ApplySession: Optional component(s) [oracle.oraolap, 11.2.0.1.0 ]  not present in the Oracle Homeor a higher version is found.
Backing up files affected by the patch '9352237' for rollback. Thismight take a while...
打补丁成功!最后结果:
[oracle@node1-11gr2-rac oradata]$ opatch lsinventory
Invoking OPatch 11.2.0.1.2
Oracle Interim Patch Installer version 11.2.0.1.2
Copyright (c) 2010, Oracle Corporation.  All rightsreserved.

Oracle Home            :/u01/app/oracle
Central Inventory : /u01/oraInventory
    from                    : /etc/oraInst.loc
OPatch version      : 11.2.0.1.2
OUI version            :11.2.0.1.0
OUI location          :/u01/app/oracle/oui
Log file location :/u01/app/oracle/cfgtoollogs/opatch/opatch2010-07-10_09-38-49AM.log
Patch history file:/u01/app/oracle/cfgtoollogs/opatch/opatch_history.txt
Lsinventory Output file location :/u01/app/oracle/cfgtoollogs/opatch/lsinv/lsinventory2010-07-10_09-38-49AM.txt
--------------------------------------------------------------------------------
Installed Top-level Products (1):
Oracle Database11g                                                                                                  11.2.0.1.0
There are 1 products installed in this Oracle Home.

Interim patches (2) :
Patch  9352237          : applied on Sat Jul 1009:32:01 CST 2010
Unique Patch ID:  12677125
    Created on 25 Mar 2010,00:05:17 hrs PST8PDT
    Bugs fixed:
        8661168, 8769239, 8898852, 8801119,9054253, 8706590, 8725286, 8974548
        8778277, 8780372, 8769569, 9027691,9454036, 9454037, 9454038, 8761974
        7705591, 8496830, 8702892, 8639114,8723477, 8729793, 8919682, 8818983
        9001453, 8475069, 9328668, 8891929,8798317, 8820324, 8733749, 8702535
        8565708, 9036013, 8735201, 8684517,8870559, 8773383, 8933870, 8812705
        8405205, 8822365, 8813366, 8761260,8790767, 8795418, 8913269, 8897784
        8760714, 8717461, 8671349, 8775569,8898589, 8861700, 8607693, 8642202
        8780281, 9369797, 8780711, 8784929,8834636, 9015983, 8891037, 8828328
        8570322, 8832205, 8665189, 8717031,8685253, 8718952, 8799099, 8633358
        9032717, 9321701, 8588519, 8783738,8796511, 8782971, 8756598, 9454385
        8856497, 8703064, 9066116, 9007102,8721315, 8818175, 8674263, 9352237
        8753903, 8720447, 9057443, 8790561,8733225, 9197917, 8928276, 8991997, 8837736
Patch  9778840          : applied on Sat Jul 1009:15:09 CST 2010
Unique Patch ID:  12677125
    Created on 8 Jun 2010,22:14:20 hrs PST8PDT
    Bugs fixed:
        9778840, 9783609
 
Rac system comprising of multiple nodes
  Local node = node1-11gr2-rac
  Remote node = node2-11gr2-rac
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值