Oracle EBS使用adpatch工具打patch过程【Z】
从Metalink下载补丁
登陆到Metalink(https://support.oracle.com),Oracle内部用户可以使用ARU来下载。
点击Patches & Updates 页签,在"Patch Search"区,输入你的Patch号,Search,

找到你的Patch之后,特别注意,需要仔细查看Patch的Release,Platform/Language...以及阅读Read Me信息(看是否有需要关联下载的Patch)

然后下载Patch到本机,

上传&解压
打patch前,最好备份可能会被覆盖的文件。仔细阅读Readme文件。
上传patch文件到服务器端的Patch目录下,然后使用unzip命令解压,eg.
[oracle@bej301441 patches]$ unzip p10257769_R12.INV.B_R12_GENERIC.zip
Archive: p10257769_R12.INV.B_R12_GENERIC.zip
inflating: 10257769/README.html
inflating: 10257769/u10257769.drv
inflating: 10257769/f10257769.ldt
inflating: 10257769/inv/patch/115/sql/INVVLTPB.pls
inflating: 10257769/marker1.txt
inflating: 10257769/b10257769.ldt
inflating: 10257769/README.txt
inflating: 10257769/patch_metadata.xml
inflating: 10257769/ad/patch/115/manualsteps/ad_apply_patch.xml
[oracle@bej301441 patches]$
解压后会生成一个patch目录,进入patch目录
[oracle@bej301441 patches]$ cd 10257769/
[oracle@bej301441 10257769]$ ls
ad f10257769.ldt marker1.txt README.html u10257769.drv
b10257769.ldt inv patch_metadata.xml README.txt
[oracle@bej301441 10257769]$
u<patchnum>.drv文件是用于adpatch工具的drvier文件(Unified driver file),告诉adpatch需要拷贝哪些文件,需要产生哪些数据库对象...
使用adpatch来打patch(完整的日志)
adpatch实际上是位于$AD_TOP/bin目录下的打patch工具,adpatch会对比补丁文件和系统原文件的版本,如果补丁文件的版本比系统里原有的文件版本还低,那么adpatch是不会复制patch文件到系统中去的。
对于本例,这里使用hotpatch选项,hotpatch一般用于小的patch,对于大点的patch推荐使用Maintenance选项。
关于patch的选项,有很多,具体可以参见:Patch Application Utilities中“AutoPatch Options”部分。
[oracle@bej301441 10257769]$ adpatch driver=u10257769.drv options=hotpatch
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
Oracle Applications AutoPatch
Version 12.0.0
NOTE: You may not use this utility for custom development
unless you have written permission from Oracle Corporation.
Attention: AutoPatch no longer checks for unapplied pre-requisite patches.
You must use OAM Patch Wizard for this feature. Alternatively, you can
review the README for pre-requisite information.
Your default directory is '/u01/oracle/mc3yd213/apps/apps_st/appl'.
Is this the correct APPL_TOP [Yes] ? yes (需要你确实当前目录为APPL_TOP)
AutoPatch records your AutoPatch session in a text file
you specify. Enter your AutoPatch log file name or press [Return]
to accept the default file name shown in brackets.
Filename [adpatch.log] : 10257769_EN_adpatch.log(指定adpatch输出日志的名字,一般放在$APPL_TOP/admin/<SID>/log下,默认名为adpatch.log,不过最好改成补丁编号+语言.log)
Options = "hotpatch".
Patch Driver File = "u10257769.drv".
You can be notified by email if a failure occurs.
Do you wish to activate this feature [No] ? no (邮件服务)
Please enter the batchsize [1000] :
Please enter the name of the Oracle Applications System that this
APPL_TOP belongs to.
The Applications System name must be unique across all Oracle
Applications Systems at your site, must be from 1 to 30 characters
long, may only contain alphanumeric and underscore characters,
and must start with a letter.
Sample Applications System names are: "prod", "test", "demo" and
"Development_2".
Applications System Name [mc3yd213] : mc3yd213 *
NOTE: If you do not currently have certain types of files installed
in this APPL_TOP, you may not be able to perform certain tasks.
Example 1: If you don't have files used for installing or upgrading
the database installed in this area, you cannot install or upgrade
the database from this APPL_TOP.
Example 2: If you don't have forms files installed in this area, you cannot
generate them or run them from this APPL_TOP.
Example 3: If you don't have concurrent program files installed in this area,
you cannot relink concurrent programs or generate reports from this APPL_TOP.
Do you currently have files used for installing or upgrading the database
installed in this APPL_TOP [YES] ? YES *
Do you currently have Java and HTML files for HTML-based functionality
installed in this APPL_TOP [YES] ? YES *
Do you currently have Oracle Applications forms files installed
in this APPL_TOP [YES] ? YES *
Do you currently have concurrent program files installed
in this APPL_TOP [YES] ? YES *
Please enter the name Oracle Applications will use to identify this APPL_TOP.
The APPL_TOP name you select must be unique within an Oracle Applications
System, must be from 1 to 30 characters long, may only contain
alphanumeric and underscore characters, and must start with a letter.
Sample APPL_TOP Names are: "prod_all", "demo3_forms2", and "forms1".
APPL_TOP Name [bej301441] : bej301441 *
You are about to apply a patch to the installation of Oracle Applications
in your ORACLE database 'mc3yd213'
using ORACLE executables in '/u01/oracle/mc3yd213/apps/tech_st/10.1.2'.
Is this the correct database [Yes] ? yes
AutoPatch needs the password for your 'SYSTEM' ORACLE schema
in order to determine your installation configuration.
Enter the password for your 'SYSTEM' ORACLE schema: (输入数据库system用户的密码)
The ORACLE username specified below for Application Object Library
uniquely identifies your existing product group: APPLSYS
Enter the ORACLE password of Application Object Library [APPS] :(输入apps的密码)
===========
AutoPatch is verifying your username/password.
The status of various features in this run of AutoPatch is:
<-Feature version in->
Feature Active? APPLTOP Data model Flags
------------------------------ ------- -------- ----------- -----------
CHECKFILE Yes 1 1 Y N N Y N Y
PREREQ Yes 6 6 Y N N Y N Y
CONCURRENT_SESSIONS No 2 2 Y Y N Y Y N
PATCH_TIMING Yes 2 2 Y N N Y N Y
PATCH_HIST_IN_DB Yes 6 6 Y N N Y N Y
SCHEMA_SWAP Yes 1 1 Y N N Y Y Y
JAVA_WORKER Yes 1 1 Y N N Y N Y
CODELEVEL Yes 1 1 Y N N Y N Y
Identifier for the current session is 548205
Reading product information from file...
Reading language and territory information from file...
Reading language information from applUS.txt ...
AutoPatch warning:
Product Data File
/u01/oracle/mc3yd213/apps/apps_st/appl/admin/zfaprod.txt
does not exist for product "zfa".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.
AutoPatch warning:
Product Data File
/u01/oracle/mc3yd213/apps/apps_st/appl/admin/zsaprod.txt
does not exist for product "zsa".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.
AutoPatch warning:
Product Data File
/u01/oracle/mc3yd213/apps/apps_st/appl/admin/jtsprod.txt
does not exist for product "jts".
This product is registered in the database but the
above file does not exist in APPL_TOP. The product
will be ignored without error.
Reading database to see what industry is currently installed.
Reading FND_LANGUAGES to see what is currently installed.
Currently, the following language is installed:
Code Language Status
---- --------------------------------------- ---------
US American English Base
Your base language will be AMERICAN.
Setting up module information.
Reading database for information about the modules.
Saving module information.
Reading database for information about the products.
Reading database for information about how products depend on each other.
Reading topfile.txt ...
Saving product information.
AD code level : [B.3]
Not checking the system maintenance mode.
Trying to obtain a lock...
Attempting to instantiate the current-view snapshot...
Was already instantiated. So no instantiation done this time.
**************** S T A R T O F U P L O A D ****************
Start date: Wed Jul 04 2012 02:53:24
0 "left over" javaupdates.txt files uploaded to DB: Wed Jul 04 2012 02:53:24
0 patches uploaded from the ADPSV format patch history files: Wed Jul 04 2012 02:53:24
Uploading information about files copied during the previous runs ...
0 "left over" filescopied_<session_id>.txt files uploaded to DB: Wed Jul 04 2012 02:53:24
****************** E N D O F U P L O A D ******************
End date: Wed Jul 04 2012 02:53:24
Enter the directory where your Oracle Applications patch has been unloaded
The default directory is [/u02/patches/10257769] :
检查patch是否打成功
Select * from ad_applied_patches where patch_name like '%10257769%';
如果有返回记录说明Patch已经成功打上了。
adpatch的日志文件
打完adpatch之后,在$APPL_TOP/admin/<SID>/log目录下,会生成adpatch的日志文件,默认名为adpatch.log(可以在打patch的过程中,重新指定名称),这个日志记录整个adpatch执行过程中的所有信息,如果打patch报错或者失败,可以查看这个文件。
补充:关于Oracle EBS Patch的类型
Standalone/Oneoff patches : This is used to define patch created to fix single/particular problem.
Mini Pack : This is group of oneoff patches for a particular product like INV, GL, AP and named like 11i.GL.E ( means this group of patches contain fix for 11i GL product (General Ledger till time E is released ) This is cummutative which means it will include 11i.GL.A, 11i.GL.B ….11iGL.D till 11i.GL.E earlier in 10.7 it used to called as patchset.
Family Pack : Group of mini packs in one family buldeled together is called as family pack. they are usually named as11i_PF.Few example of falilies are SCM ( 11i.SCM_PF.G ),ATG ( 11i.ATG_PF.H )_PF indicate Product Family Pack
Maintenance Pack : Group of family pack together is called as maintenance pack. So if you say your Verison is 11.5.10 then its maintenance pack 10 ( 3rd digit is maintenance pack )
Reference:
Patch Application Utilities - http://docs.oracle.com/cd/E18727_01/doc.121/e12148/T531058T531062.htm
How To Apply Patches in E-Business Suite - http://blog.csdn.net/pan_tian/article/details/7514903
Oracle PATCHING : adpatch , Maintenance Mode - http://onlineappsdba.com/index.php/2008/01/23/patching/
转载请注明出处:http://blog.csdn.net/pan_tian/article/details/7715942
Oracle EBS使用adpatch工具打patch过程【Z】的更多相关文章
- Oracle EBS使用adpatch工具打patch过程(hotpatch mode)
目录(?)[-] 从Metalink下载补丁 上传解压 使用adpatch来打patch完整的日志 检查patch是否打成功 adpatch的日志文件 补充关于Oracle EBS Patch的类型 ...
- oracle ebs 12.20 安装成功其过程失败日记及总结(1)
由于公司业务须要,须要安装oracle ebs进行 form 开发,所以就開始了痛苦oracle ebs安装之过程.刚開始是在vm中win2003 server 中安装ebs,,不知是我自已的水平太差 ...
- Oracle EBS 如何月结、对账[Z]
在Oracle系统处理月结业务时,需要遵循一定的操作顺序.这些业务,牵涉到相应的模块,包括:应付模块.采购模块.库存模块.应收模块.薪资模块.固定资产和总帐模块等 在Oracle系统中,总帐模块处于财 ...
- Oracle EBS DBA常用SQL - 安装/补丁【Z】
Oracle EBS DBA常用SQL - 安装/补丁 检查应用补丁有没有安装:select bug_number,last_update_date from ad_bugs where bug_nu ...
- Oracle EBS Model Function Technical
♡.Oracle EBS(ERP)Oracle 是公司名字,这个我估计大家都知道.EBS是E-Business Suite的缩写,简单的说,就是Oracle做的一个企业级的信息化软件或者系统,里面包含 ...
- Oracle EBS Patch Demo
Oracle EBS APP & DB 打补丁过程简述l例子: 打 Patch# 11843100:R12.CAC.B 打PATCH之前先查询一下是否已经有了这个PATCH. SELECT ...
- Oracle EBS数据定义移植工具:Xdf(XML Object Description File)
转载自:http://www.orapub.cn/posts/3296.html Oracle EBS二次开发中,往往会创建很多数据库对象,如表.同义词.视图等,这些数据库对象是二次开发配置管理内容很 ...
- Oracle EBS R12 (12.1.3) Installation Linux(64 bit)
Oracle EBS R12 (12.1.3) Installation Linux(64 bit) Contents Objective. 3 1 Download & Unzip. 3 D ...
- Oracle EBS Form 发布到Server端的注意事项
前段时间在本地XP系统上测试了一些整合javabean的Form例子,想着发布到服务器段去看看能否运行正常,一开始以为会和本地XP系统一样,部署到相关的目录下进行一些配置就可以了,但实际过程却和想象的 ...
随机推荐
- [Django实战] 第3篇 - 用户认证(初始配置)
当大家打开一个网站时,第一步做什么?大部分一定是先登录吧,所以我们就从用户认证开始. 打开用户认证 Django本身已经提供了用户认证模块,使用它可以大大简化用户认证模块的开发,默认情况下,用户认证模 ...
- 【最大流】【HDU3572】Task Schedule
题意: 有N个事件,M台机器.事件有开始时间,持续时间,要在结束时间之前完成,问是否能完成所有事件? 非自己思考出来的 建图:把每个任务和每一天都看做一个点,添加源点和汇点.源点与每个任务之间连一条边 ...
- UVA 1610 Party Games
题意: 给出一系列字符串,构造出一个字符串大于等于其中的一半,小于另一半. 分析: 取大小为中间的两个a,b(a<b).实际上就是找出第一个小于b的同时大于等于a的字符串,直接构造即可. 代码: ...
- 跳转APP(app之间互相通信)
摘要 步骤: 1,添加URL Types项 2,配置URL Scheme 3,其他应用的跳转 4,参数的接收 开发IOS项目的时候,有可能会遇到两个APP应用相互调用的需求,比如说:支付宝支付.. ...
- hdu2368Alfredo's Pizza Restaurant
Problem Description Traditionally after the Local Contest, judges and contestants go to their favour ...
- python 多线程爬虫
最近,一直在做网络爬虫相关的东西. 看了一下开源C++写的larbin爬虫,仔细阅读了里面的设计思想和一些关键技术的实现. 1.larbin的URL去重用的很高效的bloom filter算法: 2. ...
- CreateMutex() 、ReleaseMutex()
功能: CreateMutex() 用于有独占要求的程序 (在其进程运行期间不允许其他使用此端口设备的程序运行,或不允许同名程序运行). 比如运行金山词霸时,一次只能运行一个实例,当运行第二个实例时, ...
- Django模板-在视图中使用模板
之前我们已经有了自己的视图mysite.views.py中,应该是这样子的 from django.http import HttpResponse import datetime def curre ...
- linux下实现两人、三人无序对话功能
序:引子 对话功能实际上就是利用管道见得通信.最原始的是一方发另一方收,不能进项交互,发送方的代码如下: /*============================================ ...
- 了解单位em和px的区别
这里引用的是Jorux的“95%的中国网站需要重写CSS”的文章,题目有点吓人,但是确实是现在国内网页制作方面的一些缺陷.我一直也搞不清楚px与em之间的关系和特点,看过以后确实收获很大.平时都是用p ...