Oracle EBS Patch Demo

Oracle EBS APP & DB 打补丁过程简述
l例子: 打 Patch#   11843100:R12.CAC.B
打PATCH之前先查询一下是否已经有了这个PATCH.
SELECT  *  FROM   ad_applied_patches where  patch_name  in  ('11843100','') ;
SELECT  *  FROM   ad_bugs  where  bug_number = 11843100 ;
Pre-install Tasks
You must shut down all Application tier services before performing the tasks in this section.
There are no tasks to be performed in this section.
关闭 AP 服务:
以 appldev登入后,  $  cd   $ADMIN_SCRIPTS_HOME
$ ./adstpall.sh   停止AP服务
注意; 打任何Patch之前都要设置为维护模式。 到 $ADMIN_SCRIPTS_HOME ,执行adadmin .
Run adadmin and set the instance in maintenance mode [Under adadmin menu, choose (5) then (1)].
Exit adadmin when maintenance mode is changed. 注意打完之后切换回来。
-------------------------------  
还要注意在查找patch文件的时候,语言有GENERIC的,也有专门中文的,也需要下载来打。
可以到Metalink下补丁程序与更新程序菜单,在补丁程序搜索部分选择语言,选择后面的simpled chinese .... .
读完Readme后,如果有一些类似下面的前置patch的需求,那么我们需要在Table中
查询看看有没有 。
You need to install following patches and all of its pre-requisites:
    1)  ORACLE E-BUSINESS SUITE 12.1.2 RELEASE
    2)  8252018:R12.CAC.B SERVICE REQUEST ESCALATION CONTACT SELECT
LAST NAME L.O.V NOT WORKING CORRECTLY
查询前置patch是否已经有了:
SELECT  *  FROM   ad_applied_patches where  patch_name  in  ('8252018','') ;
SELECT  *  FROM   ad_bugs  where  bug_number = 8252018
查询在库中有 8252018 , 一般返回2条记录,标识一个是USA, 一个是Chinese (语言)。
如果以上查询没有的话,就需要下载:
p8252018_R12.CAC.B_R12_GENERIC.zip
p8252018_R12.CAC.B_R12_zhs.zip
在打p11843100_R12.CAC.B_R12_GENERIC.zip之前先打以上两个patch.
-------------------------------
Apply The Patch
This patch contains the following unified(统一的) driver file to be applied with
AutoPatch:     u11843100.drv   (This is the unified driver) ,文件在解压目录下。
打patch的交互界面会提示需要输入此driver name .
解压文件
$ cd   /data02/after_clone_patch
$ unzip  p11843100_R12.CAC.B_R12_GENERIC.zip
$ cd   11843100
$ adpatch
提示 APPL_TOP 目录是否是指定的这个目录 ?
我们可以使用  $ echo  $APPL_TOP 查看环境变量。 后面按照提示输入.......
打任何Patch之前都要设置为非维护模式。 到 $ADMIN_SCRIPTS_HOME ,执行adadmin . 按照菜单提示disable 掉维护模式。

===========================================

打补丁过程

以TST实例说明

1、准备补丁。

2、在appltst的home下mkdir patch文件夹,并复制补丁包到此文件夹。

3、unzip 【patchfile_name】.zip 解压补丁包。

4、cd ..  

5、chown -R appltst.oinstall patch 修改补丁路径的所有者为应用管理员

6、su - appltst

7、cd /u01/ITT/inst/apps/ITT_dev/admin/scripts

./adstpall.sh apps/apps 【关闭应用】  并使用ps -ef | grep applitt 来确认所有EBS应用进程已经终止(一般最后停掉的是FNDLIBR进程)。

8、执行adadmin(位于./apps/apps_st/appl/ad/12.0.0/bin/adadmin下,环境变量设好后会出现在path中),输入systemd的密码(默认为manager),apps的密码(默认为apps)选择菜单5,再选择1 ”Enable maintencence“。然后退出。

9、运行adpatch打补丁。如果有多个补丁,则重复此步骤【注意,如果不是在存放patch的当前目录下执行,必须在应答“Enter the directory where 

your Oracle Applications patch has been unloaded The default directory is”问题时指定正确的补丁路径,建议在解压后的补丁所在文件夹执行adpatch。补丁程序文件名为"u补丁编号.drv"】。

10、运行adadmin禁用维护模式。

11、cd $INST_TOP/admin/scripts

12、执行./adstrtal.sh apps/apps启动应用。

13、查看补丁有没有成功:select  * from apps.ad_applied_patches;

原文地址:https://www.cnblogs.com/quanweiru/p/4932153.html