参考文档:Oracle E-Business Suite Release 12.1.3 Readme [ID 1080973.1]
1、调整参数
_disable_fast_validate=TRUE
pga_aggregate_target=2G
sga_target=2G
安装patch 9239090时,执行adutlrcmp.sql 编译patch安装中产生的非法的的数据库对象,这一步比较慢,需要耐心等待。如下所示:
sqlplus -s APPS/***** @/u01/oracle/ZHH/apps/apps_st/appl/ad/12.0.0/sql/adutlrcmp.sql APPLSYS ***** APPS ***** ***** 32  0 NONE FALSE
Connected.
Arguments are:
AOL_schema = APPLSYS, AOL_password = *****,
Schema_to_compile = APPS, Schema_to_compile_pw = *****,
SYSTEM_password = *****, Total_workers = 32, Logical_worker_num = 0
Object_type_to_not_compile = NONE
Use_stored_dependencies = FALSE
Connected.
Running utl_recomp.recomp_parallel(32), if it exists
OWNER                          NUM_INVALID
------------------------------ -----------
SERVICES                                43
PTE                                      4
PROJMFG                                 43
PSBEXCEL                                10
APPLSYSPUB                               2
DLD                                      4
CZ                                       1
RE                                       1
MOBILEADMIN                            433
CA                                       2
DGRAY                                   43
MJORDAN                                 10
PSTOCKMAN                               10
PUBLIC                                1837
CTXSYS                                   3
RALFRED                                 10
HERMAN                                   1
SYSTEM                                   3
APPS                                 90641
ICX                                      1
FEDERAL                                 10
ASG                                      1
JPALMER                                 10
FLOWS_010500                             2
WSH                                      1
25 rows selected.
Elapsed: 00:00:00.75
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.02
STATUS_MESSAGE
------------------------------------------------------------------------------
Running UTL_RECOMP.RECOMP_PARALLEL...
可以隔段时候用dba用户连到数据库上,执行以下的sql看看非法对象有没有变少,
select  owner, count(*) tsum  from dba_objects where status <> 'VALID' group by owner;
如果你的机器配置不高(内存小于4G), PGA小于2G ,跑起来是很慢的
通常会建议打这个升级包前,修改$ORACLE_HOME/dbs/init<SID>.ora 文件,把SGA和PGA的参数调到2G, 再加上一条参数_disable_fast_validate=TRUE
打好patch后,再把上面的参数注掉或者修改回来。
2、修改数据文件大小
在安装12.1.3 RUP补丁时,会由于表空间不足导致worker失败,可提前修改数据文件大小,打开自动扩展功能。
select 'ALTER DATABASE DATAFILE ''' || dd.file_name || ''' AUTOEXTEND ON NEXT 50M MAXSIZE 4G;' from dba_data_files dd;
select 'ALTER DATABASE TEMPFILE ''' || dd.file_name || ''' AUTOEXTEND ON NEXT 50M MAXSIZE 4G;' from dba_temp_files dd;
3、安装最新的AD patch 9239089
(1)数据库节点执行
$mkdir $ORACLE_HOME/appsutil/admin
拷贝9239089/admin/adgrants.sql文件到数据库节点$ORACLE_HOME/appsutil/admin
$cd $ORACLE_HOME/appsutil/admin
$sqlplus /nolog
SQL>@adgrants.sql apps
(2)应用节点执行
关闭应用节点;
adadmin启动维护模式;
进入9239089目录,运行adpatch
4、安装patch 9239090
(1)9239090
解压下载的p9239090_R12_LINUX_1of6.zip--p9239090_R12_LINUX_6of6.zip
NOTE: the linux 32-bit and the 64-bit patch are one and the same. 32-bit Linux  patches are applicable for 64-bit Linux OS as well.
进入9239090目录,运行adpatch
(2)9239090_ZHS
解压下载的p9239090_R12_zhs.zip
进入9239090_ZHS目录,运行adpatch
5、安装patch 9239095
解压下载的 p9239095_R12_GENERIC.zip
进入9239095目录,运行adpatch
6、安装patch 9817770
解压补丁,运行adpatch
7、安装patch 9966055
解压补丁,运行adpatch
8、DB节点应用R12.1.3 code level
(1)应用用户applmgr运行autoconfig,生成appsutil.zip
$cd $INST_TOP/admin/scripts
$./adautocfg.sh
$perl $AD_TOP/bin/admkappsutil.pl
(2)拷贝appsutil.zip到数据库节点
cd $APPL_TOP/admin/out
拷贝appsutil.zip到DB节点
(3)数据库应用autoconfig
解压appsutil.zip
$cd $ORACLE_HOME
$unzip -o appsutil.zip
运行autoconfig
$cd $ORACLE_HOME/appsutil/scripts/<CONTEXT_NAME>
$./adautocfg.sh
(4)DB、APP层执行preclone操作
DB层执行preclone操作:
$cd $ORACLE_HOME/appsutil/scripts/<CONTEXT_NAME>
$perl adpreclone.pl dbTier
APP层执行preclone操作:
$cd $INST_TOP/admin/scripts
$perl adpreclone.pl appsTier
9、去掉或修改数据库参数,重启数据库节点;应用节点关闭维护模式;启动应用。