查看: 4084|回复: 6

[工具] opatch需要在ORACLE_HOME为10.1.3下执行 ??

[复制链接]
论坛徽章:
71
2015年新春福章
日期:2015-03-06 11:57:312013年新春福章
日期:2013-02-25 14:51:24双黄蛋
日期:2013-01-06 13:31:18蜘蛛蛋
日期:2013-01-06 10:26:08茶鸡蛋
日期:2012-11-21 19:35:23ITPUB 11周年纪念徽章
日期:2012-10-09 18:05:07版主2段
日期:2012-05-15 15:24:11铁扇公主
日期:2012-02-21 15:02:402012新春纪念徽章
日期:2012-02-13 15:13:512012新春纪念徽章
日期:2012-02-13 15:13:51
跳转到指定楼层
1#
发表于 2012-7-10 17:27 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
EBS R12.1.2  ,  需要安装部署ISG,   有3个opatch 需要安装, 还特别提示需要执行  $INST_TOP/ora/10.1.3/.env  然后执行。
听顾问说主要是为了在 ORACLE_HOME = 10.1.3 的情况下执行 (我看了INST_TOP/ora/10.1.3下的.env文件,的确是ORACLE_HOME
指向 10.1.3) 。 但是我们的EBS R12.1.2 系统环境变量是 ORACLE_HOME 是 tech_st/10.1.2  ,  IAS_ORACLE_HOME 是 tech_st/10.1.3 ,   
因为opatch可以rollback,  所以我们做了测试, PATH 中的OPatch目录是 tech_st/10.1.2/OPatch , 我们没有执行  $INST_TOP/ora/10.1.3/.env ,
直接开始opatch  apply ,  然后在 IAS_ORACLE_HOME查询 , opatch lsinventory -invPtrLoc $IAS_ORACLE_HOME/oraInst.loc -oh $IAS_ORACLE_HOME  ,
可以查询到。

这个怎么理解 ?  



参考:  
Installing Oracle E-Business Suite Integrated SOA Gateway, Release 12 [ID 556540.1] 下的
3.2 Upgraded with Oracle10g Application Server Release 3 (10.1.3) Patch Set 5 (10.1.3.5.0)
具体的opatch前面的提示
Source the file $INST_TOP/ora/10.1.3/.env and then apply the following patches to the Oracle10g Application Server 10.1.3.5 Oracle Home:

      

         
    • Patch 8607523 (Oracle10g Application Server 10.1.3.5.0): Merge Label Request on top of 10.1.3.4 for Bugs 7393405 7027175 6862461
         
    • Patch 8857799: JPublisher Patch Rolled Back After Upgrade to 10.1.3.5.0
         
    • Patch 9371120: Web Service Framework Takes More Time for Giving the Response




        
论坛徽章:
31
管理团队2006纪念徽章
日期:2006-04-16 22:44:452012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52铁扇公主
日期:2012-02-21 15:02:402013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11马上有车
日期:2014-02-19 11:55:14
2#
发表于 2012-7-11 07:58 | 只看该作者
不太明白LZ的问题。 以后,可否最后 post screen dump of your action, for example, your "opatch apply " command 's screen output.

In this case, when you did the opatch apply , did u put the "-invPtrLoc" and "-oh" parameter ?

使用道具 举报

回复
论坛徽章:
71
2015年新春福章
日期:2015-03-06 11:57:312013年新春福章
日期:2013-02-25 14:51:24双黄蛋
日期:2013-01-06 13:31:18蜘蛛蛋
日期:2013-01-06 10:26:08茶鸡蛋
日期:2012-11-21 19:35:23ITPUB 11周年纪念徽章
日期:2012-10-09 18:05:07版主2段
日期:2012-05-15 15:24:11铁扇公主
日期:2012-02-21 15:02:402012新春纪念徽章
日期:2012-02-13 15:13:512012新春纪念徽章
日期:2012-02-13 15:13:51
3#
 楼主| 发表于 2012-7-11 11:41 | 只看该作者
wing hong 发表于 2012-7-11 07:58
不太明白LZ的问题。 以后,可否最后 post screen dump of your action, for example, your "opatch apply " ...


因opatch需要停止数据库,暂时没有环境测试,这里把问题分开说一下:
1. 在 ORACLE_HOME (10.1.2)及 IAS_ORACLE_HOME (10.1.3) 的OPatch下查看opatch的版本都是一样的
   (1.0.0.0.63),所以环境变量中PATH设置哪个OPatch目录都是可以的 (看了我们的环境变量基本都是
    设置的PATH=$PATH:$ORACLE_HOME/OPatch:  也即10.1.2下的opatch) ?  

2. 任何opatch的补丁在apply之前都会提示是在10.1.2还是10.1.3下执行(实施ISG文件上的确是有) ?
   类似 Source the file $INST_TOP/ora/10.1.3/.env and then apply the following patches
   to the Oracle10g Application Server 10.1.3.5 Oracle Home  

3.  opatch有针对10.1.2目录的,有针对10.1.3的,opatch之前通过以下三种方式设置是否效果一样(待验证) ?
     a).  source  $INST_TOP/ora/10.1.3/SID_hostname.env (报错,提示需要设置/etc/oraInst.loc)
     b).  export  ORACLE_HOME=/home/applxxx/apps/tech_st/10.1.3 (报错,提示需要设置/etc/oraInst.loc)
     c).  opatch  apply  -invPtrLoc  $IAS_ORACLE_HOME/oraInst.loc  -oh  $IAS_ORACLE_HOME
          (注: $IAS_ORACLE_HOME是10.1.3目录)
/etc/下只能设置一个oraInst.loc文件,那么是否使用 -invPtrLoc 会灵活一些 ??   

使用道具 举报

回复
论坛徽章:
71
2015年新春福章
日期:2015-03-06 11:57:312013年新春福章
日期:2013-02-25 14:51:24双黄蛋
日期:2013-01-06 13:31:18蜘蛛蛋
日期:2013-01-06 10:26:08茶鸡蛋
日期:2012-11-21 19:35:23ITPUB 11周年纪念徽章
日期:2012-10-09 18:05:07版主2段
日期:2012-05-15 15:24:11铁扇公主
日期:2012-02-21 15:02:402012新春纪念徽章
日期:2012-02-13 15:13:512012新春纪念徽章
日期:2012-02-13 15:13:51
4#
 楼主| 发表于 2012-7-11 11:42 | 只看该作者

appljxv3@sz101 $ cd    8857799
appljxv3@sz101 $ pwd
/data/d03/jxdv3/appljxv3/ISG_patch/nonad/8857799
appljxv3@sz101 $ opatch  apply

Oracle Interim Patch Installer version 1.0.0.0.63
Copyright (c) 2009 Oracle Corporation. All Rights Reserved..

Oracle recommends you to use the latest OPatch version
and read the OPatch documentation available in the OPatch/docs
directory for usage. For information about the latest OPatch and
other support-related issues, refer to document ID 293369.1
available on My Oracle Support (https://myoraclesupport.oracle.com)

Cannot open the file: /etc/oraInst.loc
Please use -invPtrLoc option and specify the correct file for OPatch to look for central inventory.

ERROR: OPatch failed because of Inventory problem.
appljxv3@sz101 $

appljxv3@sz101 $ cd /etc
appljxv3@sz101 $ ls  ora*
oratab

ora_save_11-06-29.09:43:03:
inittab
appljxv3@sz101 $

4.  在opatch apply的时候指定的是10.1.2,那么查询的时候必须设置同样的目录才能找到,比如下面的
    $ORACLE_HOME 查询的是10.1.2的opatch list, $IAS_ORACLE_HOME 查询的是10.1.3的opatch list .
    (已验证)     
     opatch lsinventory -invPtrLoc $ORACLE_HOME/oraInst.loc -oh $ORACLE_HOME
     opatch lsinventory -invPtrLoc $IAS_ORACLE_HOME/oraInst.loc -oh $IAS_ORACLE_HOME

使用道具 举报

回复
论坛徽章:
31
管理团队2006纪念徽章
日期:2006-04-16 22:44:452012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52铁扇公主
日期:2012-02-21 15:02:402013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11马上有车
日期:2014-02-19 11:55:14
5#
发表于 2012-7-11 12:00 | 只看该作者
ok. If I understand ur question correctly, looks to me it is a non-issue.

bear in mind that that it is not necessary to have a central inventory ,  pointed by /etc/oraInst.loc .

use -invPtrLoc and -oh is perfectly ok. and it is preferable to me too.

使用道具 举报

回复
论坛徽章:
31
管理团队2006纪念徽章
日期:2006-04-16 22:44:452012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:522012新春纪念徽章
日期:2012-02-13 15:11:52铁扇公主
日期:2012-02-21 15:02:402013年新春福章
日期:2013-02-25 14:51:242014年新春福章
日期:2014-02-18 16:41:11马上有车
日期:2014-02-18 16:41:11马上有车
日期:2014-02-19 11:55:14
6#
发表于 2012-7-11 12:13 | 只看该作者
and  btw, as per which oracle_home to apply , should be very clear to remember or understand too,

as this is for SOA, ( i.e java /web service stuff ), so should be to the IAS oracle home, even with just guessing, as it is not related to forms/reports etc.  

使用道具 举报

回复
论坛徽章:
71
2015年新春福章
日期:2015-03-06 11:57:312013年新春福章
日期:2013-02-25 14:51:24双黄蛋
日期:2013-01-06 13:31:18蜘蛛蛋
日期:2013-01-06 10:26:08茶鸡蛋
日期:2012-11-21 19:35:23ITPUB 11周年纪念徽章
日期:2012-10-09 18:05:07版主2段
日期:2012-05-15 15:24:11铁扇公主
日期:2012-02-21 15:02:402012新春纪念徽章
日期:2012-02-13 15:13:512012新春纪念徽章
日期:2012-02-13 15:13:51
7#
 楼主| 发表于 2012-7-11 13:04 | 只看该作者
wing hong 发表于 2012-7-11 12:13
and  btw, as per which oracle_home to apply , should be very clear to remember or understand too,
...

谢谢  , 解释的非常清楚  

使用道具 举报

回复

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

TOP技术积分榜 社区积分榜 徽章 团队 统计 知识索引树 积分竞拍 文本模式 帮助
  ITPUB首页 | ITPUB论坛 | 数据库技术 | 企业信息化 | 开发技术 | 微软技术 | 软件工程与项目管理 | IBM技术园地 | 行业纵向讨论 | IT招聘 | IT文档
  ChinaUnix | ChinaUnix博客 | ChinaUnix论坛
CopyRight 1999-2011 itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有 联系我们 未成年人举报专区 
京ICP备16024965号-8  北京市公安局海淀分局网监中心备案编号:11010802021510 广播电视节目制作经营许可证:编号(京)字第1149号
  
快速回复 返回顶部 返回列表