EBS R12.1.3和EBS R12.2打补丁是有区别的,区别如下:
1、EBS R12.1 使用adpatch命令进行打补丁操作,而EBS R12.2使用adop命令进行打补丁操作
2、EBS R12.1 打补丁时需要将应用停掉,并且改为维护模式;EBS R12.2则可以使用hot_patch=yes 可以不停应用服务进行操作
一、停服务操作
cd $ADMIN_SCRIPTS_HOME
执行adstpall.sh脚本进行停服务
./adstpall.sh apps/appspasswd
等待脚本执行完成之后,将应用变成维护模式
$dadmin
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
Oracle Applications AD Administration
Version 12.0.0
NOTE: You may not use this utility for custom development
unless you have written permission from Oracle Corporation.
Your default directory is '/neworadata/prod/apps/apps_st/appl'.
Is this the correct APPL_TOP [Yes] ? 默认
AD Administration records your AD Administration session in a text file
you specify. Enter your AD Administration log file name or press [Return]
to accept the default file name shown in brackets.
Filename [adadmin.log] :默认
************* Start of AD Administration session *************
AD Administration version: 12.0.0
AD Administration started at: Thu Dec 20 2018 14:34:55
APPL_TOP is set to /neworadata/prod/apps/apps_st/appl
Backing up restart files, if any......Done.
Your previous AD Administration session did not run to completion.
Do you wish to continue with your previous AD Administration session [Yes] ? no 提示是否进行之前的会话,选择否
You chose to disregard your previous AD Administration session
and to restart AD Administration from the beginning.
Enter Yes to confirm that you wish to overwrite your previous
AD Administration session and begin a new AD Administration session.
Enter No to continue with your previous AD Administration session. [No] : yes 提示选择no则会进行之前的会话,选择yes
You can be notified by email if a failure occurs.
Do you wish to activate this feature [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 [PROD] : PROD *
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 [ebstest] : ebstest *
You are about to use or modify Oracle Applications product tables
in your ORACLE database 'PROD'
using ORACLE executables in '/neworadata/prod/apps/tech_st/10.1.2'.
Is this the correct database [Yes] ?默认
AD Administration 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密码
AD Administration is verifying your username/password.
The status of various features in this run of AD Administration 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 22792
Reading product information from file...
Reading language and territory information from file...
Reading language information from applUS.txt ...
AD Administration warning:
Product Data File
/neworadata/prod/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.
AD Administration warning:
Product Data File
/neworadata/prod/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.
AD Administration warning:
Product Data File
/neworadata/prod/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 languages are installed:
Code Language Status
---- --------------------------------------- ---------
US American English Base
ZHS Simplified Chinese Install
Reading language information from applZHS.txt ...
Your base language will be AMERICAN.
Your other languages to install are: SIMPLIFIED CHINESE
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]
You chose to abandon your previous AD Administration session
and to continue as a new session.
Beginning database cleanup for previous session ...
Completed database cleanup for previous session.
AD Administration Main Menu
--------------------------------------------------
1. Generate Applications Files menu
2. Maintain Applications Files menu
3. Compile/Reload Applications Database Entities menu
4. Maintain Applications Database Entities menu
5. Change Maintenance Mode
6. Exit AD Administration
Enter your choice [6] : 5
Change Maintenance Mode
----------------------------------------
Maintenance Mode is currently: [Disabled].
Maintenance mode should normally be enabled when patching
Oracle Applications and disabled when users are logged on
to the system. See the Oracle Applications Maintenance
Utilities manual for more information about maintenance mode.
Please select an option:
1. Enable Maintenance Mode
2. Disable Maintenance Mode
3. Return to Main Menu
Enter your choice [3] : 1 选择1 开启维护模式
sqlplus -s &un_apps/***** @/neworadata/prod/apps/apps_st/appl/ad/12.0.0/patch/115/sql/adsetmmd.sql ENABLE
Successfully enabled Maintenance Mode.
Review the messages above, then press [Return] to continue.
Backing up restart files, if any......Done.
Change Maintenance Mode
----------------------------------------
Maintenance Mode is currently: [Enabled].
Maintenance mode should normally be enabled when patching
Oracle Applications and disabled when users are logged on
to the system. See the Oracle Applications Maintenance
Utilities manual for more information about maintenance mode.
Please select an option:
1. Enable Maintenance Mode
2. Disable Maintenance Mode
3. Return to Main Menu
Enter your choice [3] : 3
AD Administration Main Menu
--------------------------------------------------
1. Generate Applications Files menu
2. Maintain Applications Files menu
3. Compile/Reload Applications Database Entities menu
4. Maintain Applications Database Entities menu
5. Change Maintenance Mode
6. Exit AD Administration
Enter your choice [6] : 6
Backing up restart files, if any......Done.
There is no timing information available for the current session.
AD Administration is complete.
Errors and warnings are listed in the log file
/neworadata/prod/apps/apps_st/appl/admin/PROD/log/adadmin.log
and in other log files in the same directory.
更改维护模式完成,下面进行打补丁操作:
ebstest[/home/applprod]$cd patch
ebstest[/home/applprod/patch]$ls
9239089 p8919491_R12.ATG_PF.B_R12_AIX64-5L.zip
p19273341_R12.BNE.B_R12_GENERIC.zip p8919491_R12.ATG_PF.B_R12_zhs.zip
p19273341_R12.BNE.B_R12_zhs.zip p9239089_R12.AD.B_R12_AIX64-5L.zip
ebstest[/home/applprod/patch]$cd 923*
ebstest[/home/applprod/patch/9239089]$ls
README.html ad b9239089.ldt j9239089_ad.zip patch_metadata.xml
README.txt admin f9239089.ldt marker1.txt u9239089.drv
ebstest[/home/applprod/patch/9239089]$adpatch
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 '/neworadata/prod/apps/apps_st/appl'.
Is this the correct APPL_TOP [Yes] ? 默认
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] :默认
You can be notified by email if a failure occurs.
Do you wish to activate this feature [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 [PROD] : PROD *
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 [ebstest] : ebstest *默认
You are about to apply a patch to the installation of Oracle Applications
in your ORACLE database 'PROD'
using ORACLE executables in '/neworadata/prod/apps/tech_st/10.1.2'.
Is this the correct database [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 22793
Reading product information from file...
Reading language and territory information from file...
Reading language information from applUS.txt ...
AutoPatch warning:
Product Data File
/neworadata/prod/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
/neworadata/prod/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
/neworadata/prod/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 languages are installed:
Code Language Status
---- --------------------------------------- ---------
US American English Base
ZHS Simplified Chinese Install
Reading language information from applZHS.txt ...
Your base language will be AMERICAN.
Your other languages to install are: SIMPLIFIED CHINESE
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]
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: Thu Dec 20 2018 14:36:45
0 "left over" javaupdates.txt files uploaded to DB: Thu Dec 20 2018 14:36:45
0 patches uploaded from the ADPSV format patch history files: Thu Dec 20 2018 14:36:45
Uploading information about files copied during the previous runs ...
0 "left over" filescopied_
****************** E N D O F U P L O A D ******************
End date: Thu Dec 20 2018 14:36:45
Enter the directory where your Oracle Applications patch has been unloaded
The default directory is [/home/applprod/patch/9239089] :
Please enter the name of your AutoPatch driver file : u9239089.drv
Getting Oracle Applications Release...
Current installed release is 12.1.3
Reading patch driver file...
Parsing and loading patch driver file...
1571 lines processed.
Not checking patch integrity as integrity checking flag is turned off.
Successfully read patch driver file.
Determining target release...
Current target release is 12.1.3
This Patch seems to have been applied already.
Would you like to continue anyway [N] ?默认
Determining which bug fixes to apply...
Done determining which bug fixes to apply.
Log and Info File sync point:
Thu Dec 20 2018 14:38:15
Turning off actions that reference unrecognized products.
Log and Info File sync point:
Thu Dec 20 2018 14:38:15
End of unrecognized products checking.
AD utilities can support a maximum of 999 workers. Your
current database configuration supports a maximum of 81 workers.
Oracle recommends that you use between 32 and 64 workers.
Enter the number of parallel workers [32] :默认,可以选择多一些worker
AutoPatch will run in parallel mode.
然后等着脚本跑完即可。
adpatch命令操作完之后,需要将应用的维护模式进行关闭,置为disable 模式,然后正常启动应用即可
不然在登陆web页面的时候会进行报错:
如果忘记关闭维护模式,可以将应用服务停掉之后,在进行使用adadmin命令进行将应用维护模式关闭即可。
(笔者原创文章,转载请注明出处:https://blog.csdn.net/LFCuiYs)谢谢!