Portal Repository One-off Patch does not get Correctly Installed
Applies to:
Portal - Version: 10.1.4.1
This problem can occur on any platform.
Symptoms
-- Problem Statement:
Patch 5912904 - PSE FOR BASE Bug 5762268 ON TOP OF 10.1.4.1 FOR AIX 5L 64BIT (212)
does not install correctly.
The problem that the patch should fix is still there after patch installation. This problem may happen to every Portal Repository one-off patch, so is not specific to the patch above.
-- Steps To Reproduce:
1. Install a Portal Repository one-off patch, i.e:
Patch 5912904 - PSE FOR BASE Bug 5762268 ON TOP OF 10.1.4.1 FOR AIX 5L 64BIT (212)
2. Notice, the problem that the patch should fix is still there.
The following command does list the patch:
opatch lsinventory
However, the following script executed from SQL*Plus logged on as Portal does not show the patch:
spool portal_db_patches.log
set pagesize 9999
set lines 200
select * from wwutl_patch$ order by bugno;
select BUGNO||' - '||TIMESTAMP||' - '||ACTION||' - '||COMMENTS from wwutl_patchlog$ order by timestamp;
spool off
Cause
The connect string was incorrectly specified.
The -c parameter of opatch requires the following format:
hostname:port:service_name
Instead of this format, the following format was specified:
hostname:port:sid
When the connect string is not correct then you do not see the following section in
/.patch_storage/
/Apply*.log:
CMD=./ptlpatch.csh -z P4919270_PATCHBUNDLE.zip -s portal -p
-c .....................................................................
Please set your ORACLE_HOME to your 10.1.2 midtier installation home.
.....................................................................
Your ORACLE_HOME is /disk2/oracle/midtier101202
Your PERL5LIB is /disk2/oracle/midtier101202/perl/lib/site_perl/5.6.1/i686-linux:/disk2/oracle/midtier101202/perl/lib/5.6.1
Welcome to Oracle Portal OneOffPatch Installer Version 3.0
Installing Oneoff
Patch Started at Thu Oct 19 16:56:08 2006
**************************************************************
Mode :INSTALL
Schema :portal
Password :****
SYS Schema :
SYS Password :****
ZipFile :P4919270_PATCHBUNDLE.zip
BugParam :
ConnectString:(DESCRIPTION = (ADDRESS = (PROTOCOL= TCP)(Host= )(Port=
)) (CONNECT_DATA = (SERVICE_NAME = )))
Logfile :patch.log
**************************************************************
Solution
-- To implement the solution, please execute the following steps:
Correct the -c parameter of opatch to the format
hostname:port:service_name
so the opatch command should look like this:
./opatch apply -silent
-pre -s
-p
-c
* The Service Name is normally the same as SID plus the domain appended. So when
SID=asdb
then
SERVICE_NAME=asdb.domain.com
The SERVICE_NAME can often be found in the following file:
/network/admin/tnsnames.ora
* See more information about patch installation in the following note:
Note 279771.1 - OracleAS Portal One-offs Installations Issues
储存库的临时补丁不能正确安装
应用:
这问题可能发生在任何平台
症状
问题状态
Patch 5912904 - PSE FOR BASE Bug 5762268 ON TOP OF 10.1.4.1 FOR AIX 5L 64BIT (212) 不能正确的安装
在打上补丁后这问题仍然存在,这问题可能发生在每个储存库的临时补丁上,因此它没有指定上面所谈到的补丁
问题重现步骤:
1.安装一个储存库临时补丁
Patch 5912904 - PSE FOR BASE Bug 5762268 ON TOP OF 10.1.4.1 FOR AIX 5L 64BIT (212)
2.值得注意的是,这问题仍然存在
以下命令能列出补丁
opatch lsinventory
然而,执行以下脚本不能列出补丁
spool portal_db_patches.log
set pagesize 9999
set lines 200
select * from wwutl_patch$ order by bugno;
select BUGNO||' - '||TIMESTAMP||' - '||ACTION||' - '||COMMENTS from wwutl_patchlog$ order by timestamp;
spool off
原因
连接字符串没有正确指定
opatch 的c参数要求用以下格式:
hostname:port:service_name
取代原来指定的格式:
hostname:port:sid
如果连接字符串不正确,就不能看到以下的部分
/.patch_storage/
/Apply*.log:
CMD=./ptlpatch.csh -z P4919270_PATCHBUNDLE.zip -s portal -p
-c .....................................................................
在安装目录设置 ORACLE_HOME
.....................................................................
ORACLE_HOME :/disk2/oracle/midtier101202
PERL5LIB :/disk2/oracle/midtier101202/perl/lib/site_perl/5.6.1/i686-linux:/disk2/oracle/midtier101202/perl/lib/5.6.1
进入安装页面
安装开始时间:2006.10.19 16:56:08
**************************************************************
Mode :INSTALL
Schema :portal
Password :****
SYS Schema :
SYS Password :****
ZipFile :P4919270_PATCHBUNDLE.zip
BugParam :
ConnectString:(DESCRIPTION = (ADDRESS = (PROTOCOL= TCP)(Host= )(Port=
)) (CONNECT_DATA = (SERVICE_NAME = )))
Logfile :patch.log
**************************************************************
解决方案
执行以下步骤来解决:
将opatch 的c参数的格式改为:hostname:port:service_name
然后opatch 的命令行如下:
./opatch apply -silent
-pre -s
-p
-c
随着域的扩展,服务器的名字通常和SID一样
如果SID=asdb,则SERVICE_NAME=asdb.domain.com
服务器名经常在以下文件中:
/network/admin/tnsnames.ora
用以下注解可以查看更多关于补丁安装的信息:
Note 279771.1 - OracleAS Portal One-offs Installations Issues