How to check if a patch is applied in Oracle EBS
12.2
To check patches applied
-------------------------------
By different methods we can check Patches are applied or not.
A)
Oracle Applications
Manager
B)
Database Query
Oracle Applications Manager
Login to
Oracle EBS as a user that has access to Oracle Applications Manager.
System Administrator -à Oracle Application manager à Patching and Utilities
Populate the fields such as patch number, period of
application and language and click ‘Go’ button. If the patch was applied you
will get the results as on the screenshot below.
Database Query
Another popular method of checking
applied patches is querying Oracle EBS Database.
As stated in MOS Doc ID 1963046.1 AD_BUGS table can not be used anymore for that
purpose in release 12.2.x. It will still return information, but you can not
rely on it. Some patches reported to be applied actually might be applied and
then patching cycle was aborted before finalizing the application.
As an alternative AD_PATCH.IS_PATCH_APPLIED function is provided. You should login as APPS user to execute the statements below.
As an alternative AD_PATCH.IS_PATCH_APPLIED function is provided. You should login as APPS user to execute the statements below.
Login to APPS USER
select
decode(ad_patch.is_patch_applied('&ebs_release',&appltop_id,&patch_num,'&lang'),'EXPLICIT','APPLIED','NOT_APPLIED','NOT APPLIED')
from dual;
Function usage -
Example sql using the APPL_TOP ID for a specific node in a
multinode environment (1045 is the APPL_TOP ID):
SELECT adb.bug_number,ad_patch.is_patch_applied('R12', 1045, adb.bug_number)
FROM ad_bugs adb
WHERE adb.bug_number in (20034256);
FROM ad_bugs adb
WHERE adb.bug_number in (20034256);
or for single app tier installations:
select ad_patch.is_patch_applied('R12',-1,20034256) from dual;
expected results:
EXPLICIT = applied
NOT APPLIED = not applied / aborted
EXPLICIT = applied
NOT APPLIED = not applied / aborted
Note: If you are sure patch is
applied but it is not showing as applied via the above steps, then update the
snapshot manually with the steps below:
1. Start adadmin after source the RUN FS env.
2. Select "2. Maintain Applications Files menu" in
"AD Administration Main Menu".
3. In "Maintain Applications Files", select "4.
Maintain snapshot information".
4. Select "2. Update current view snapshot" in the
"Maintain Snapshot Information".
5. Select "1. Update Complete APPL_TOP" in the
"Maintain Current View Snapshot Information".
No comments:
Post a Comment