OFM相关故障的说明_Tomcat, WebLogic及J2EE讨论区_Weblogic技术|Tuxedo技术|中间件技术|Oracle论坛|JAVA论坛|Linux/Unix技术|hadoop论坛_联动北方技术论坛  
网站首页 | 关于我们 | 服务中心 | 经验交流 | 公司荣誉 | 成功案例 | 合作伙伴 | 联系我们 |
联动北方-国内领先的云技术服务提供商
»  游客             当前位置:  论坛首页 »  自由讨论区 »  Tomcat, WebLogic及J2EE讨论区 »
总帖数
1
每页帖数
101/1页1
返回列表
0
发起投票  发起投票 发新帖子
查看: 3657 | 回复: 0   主题: OFM相关故障的说明        下一篇 
yanghui
注册用户
等级:上尉
经验:584
发帖:92
精华:0
注册:2011-12-13
状态:离线
发送短消息息给yanghui 加好友    发送短消息息给yanghui 发消息
发表于: IP:您无权察看 2011-12-13 9:14:40 | [全部帖] [楼主帖] 楼主

Installing Portal patches with OPATCH on Unix environments completes successfully but the patches are not installed
Applies to:
Portal - Version: 9.0.4.1 to 10.1.4.1
This problem can occur on any platform.
Symptoms
* You are installing a portal patch using OPATCH on a Unix environment and the patch doesn't seem to be applied.
* Opatch completes successfully and no errors are reported in the opatch log file.
* Opatch log shows it completed successfully:
Updating inventory...
OPatch succeeded.
* The following command shows the patch as being installed:
./opatch lsinventory
* However running the following query from sqlplus as portal schema doesn't show the patch has being installed in the portal repository:
column comments format a100
set linesize 200
select version from wwc_version$;
select * from WWUTL_PATCHLOG$;
Cause
There are 2 parts involved when installing a Portal Patch:
* opatch
The opatch script takes care of installing Midtier Patches and to update the Oracle Inventory with the installed Patches.
However when a Patch needs to be installed in the Portal Repository opatch calls ptlpatch to install the patch in the portal repository.
* ptlpatch
The ptlpatch script takes care of installing Portal Repository Patches and to update the WWUTL_PATCHLOG$ table with the status of the patch install.
As opatch and ptlpatch are 2 separate scripts and each one has a specific task when applying a patch it is possible that opatch completes successfully while ptlpatch has failed. If the environment is not correctly set on Unix Environments ptlpatch aborts and no errors are reported in the opatch log. This is reported in the following bugs:
Bug:4332152 - OPATCH COMPLETES SUCCESSFULLY BUT PATCH IS NOT INSTALLED
Bug:4358353 - PROBLEM WITH DBI LIB ON OPATCH CALL
Correct way to set the Environment depends on each platform and it is documented here:
Oracle® Application Server Administrator's Guide 10g Release 2 (10.1.2)
1 Getting Started After Installing Oracle Application Server
1.1 Task 1: Set Up Environment Variables
Solution
1.
If your Portal version is 10.1.2 or 10.1.4:
*
Make a backup of the ptlpatch.csh script located in the Midtier Home:
cd $ORACLE_HOME/portal/patch/oneoffs
mv ptlpatch.csh ptlpatch.csh_ori
*
Download the following patch for ptlpatch:
Patch 5209277 PTLPATCH-FIXES FOR PTLPATCH FOR 1012 AND 1014
Unzip the patch in a stage location in the Midtier and copy the ptlpatch.csh script from the patch to the following location in the Midtier:
$ORACLE_HOME/portal/patch/oneoffs
2.
Set the Library Path environment variable depending on you Unix environment as follows:
Solaris:
export LD_LIBRARY_PATH=$ORACLE_HOME/lib32:$LD_LIBRARY_PATH
Solaris 64-Bit:
export LD_LIBRARY_PATH_64=$ORACLE_HOME/lib:$LD_LIBRARY_PATH_64
AIX:
export LIBPATH=$ORACLE_HOME/lib32:$ORACLE_HOME/ctx/lib32:$LIBPATH
Linux:
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
HP-UX:
export SHLIB_PATH=$ORACLE_HOME/lib32:$SHLIB_PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
3.
Apply the patch again.
4.
Check if the patch was installed by running the following query from sqlplus as portal schema:
column comments format a100
set linesize 200
select version from wwc_version$;
select * from WWUTL_PATCHLOG$;
If you are installing a portal repository patch the installed patch should show in the results of the above query. If that is the case the patch was installed successfully.
If you installed a portal repository patch and you can't see the patch in the results of the query then please contact Oracle Support.


在unix环境下能成功安装Portal 补丁,但是其他补丁不能安装

应用:

Portal - Version: 9.0.4.1 to 10.1.4.1


该问题可能发生在任何平台

症状

在unix环境里使用OPATCH安装一个Portal 补丁,这个补丁好像不能申请

Opatch 能成功安装,并且在Opatch 日志文件里也有没有错误报告

Opatch 日志显示它成功安装

更新目录

Opatch 安装成功

下面的指令显示补丁正在安装

./opatch lsinventory


在引擎里运行下面的质疑时,架构没有显示补丁正在安装

select version from wwc_version$;
select * from WWUTL_PATCHLOG$;


原因

在安装Portal 补丁时涉及到了两部分

opatch


 opatch脚本维护Midtier 补丁的安装,并且更新Oracle 内存

当一个补丁需要安装在储存库时,opatch 会调用ptlpatch 讲补丁安装在储存库里

ptlpatch


ptlpatch 脚本维护储存库补丁的安装,并且更新WWUTL_PATCHLOG$ 表和补丁安装的状态

当opatch 和ptlpatch 是2个分离的脚本且在申请补丁时每个有特殊的任务,可能opatch 成功完成但是ptlpatch却失败了。如果在unix环境里没有正确设置环境,ptlpatch 就会终止,且在ptlpatch 日志里没有错误报告。

Bug:4332152 - OPATCH 成功完成 但是PATCH 没有安装

Bug:4358353 - DBI LIB 在 OPATCH CALL成为难题

设置环境的正确方式依赖于每个平台,文档如下:

Oracle® Application Server Administrator's Guide 10g Release 2 (10.1.2)
1 Getting Started After Installing Oracle Application Server
1.1 Task 1: Set Up Environment Variables


解决方案

1.如果版本是10.1.2 或者 10.1.4:

在Midtier Home将ptlpatch.csh脚本备份:

cd $ORACLE_HOME/portal/patch/oneoffs
mv ptlpatch.csh ptlpatch.csh_ori


下载如下的补丁:

Patch 5209277 PTLPATCH-FIXES FOR PTLPATCH FOR 1012 AND 1014


在 Midtier 阶段解压补丁,将ptlpatch.csh 脚本从补丁复制到下面的位置:

$ORACLE_HOME/portal/patch/oneoffs


2.根据如下的unix环境设置程序库路径环境变量:

Solaris:


输出LD_LIBRARY_PATH=$ORACLE_HOME/lib32:$LD_LIBRARY_PATH

Solaris 64位:

输出LD_LIBRARY_PATH_64=$ORACLE_HOME/lib:$LD_LIBRARY_PATH_64

AIX:


输出 LIBPATH=$ORACLE_HOME/lib32:$ORACLE_HOME/ctx/lib32:$LIBPATH

Linux:


输出 LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

HP-UX:


输出 SHLIB_PATH=$ORACLE_HOME/lib32:$SHLIB_PATH

输出LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH

3.再次申请补丁

4.通过运行下面的质疑检查补丁是否安装

select version from wwc_version$;
select * from WWUTL_PATCHLOG$;


如果正在安装储存库补丁,那么已经安装的补丁就会显示上面质疑的结果,补丁就能成功安装

    如果在安装储存库补丁的过程中看不到质疑的结果,请联系Oracle 支持




赞(0)    操作        顶端 
总帖数
1
每页帖数
101/1页1
返回列表
发新帖子
请输入验证码: 点击刷新验证码
您需要登录后才可以回帖 登录 | 注册
技术讨论