Most of the organizations have standard practise in applying the latest Patch Set Update (PSU) for the databases. But tend to ignore the security fixes for the mid-tier technologies due to lack of exposure in these technologies.
Below are the scripts to find out the CPU patches applied in the system.
For 12.2 use the below script.
set pagesize 100;
set linesize 141;
col "Patch" format A10;
col "Description" format A70;
select distinct bug_number Patch, decode(bug_number,
'28421544','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR OCT 2018',
'28018169','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR JUL 2018',
'27468058','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR APR 2018',
'27040860','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR JAN 2018',
'26574498','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR OCT 2017',
'25982922','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR JUL 2017',
'25449173','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR APR 2017',
'25032335','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR JAN 2017',
'24390794','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR OCT 2016',
'23144508','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR JUL 2016',
'22614473','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR APR 2016',
'22133451','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR JAN 2016',
'21507429','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR OCT 2015',
'20953338','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR JUL 2015',
'20406630','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR APR 2015',
'19873050','ORACLE APPLICATIONS RELEASE 12.2: CPU PATCH FOR JAN 2015') Description,
CREATION_DATE Applied
from ad_bugs
where bug_number in
('28421544','28018169','27468058','27040860','26574498','25982922','25449173','25032335','24390794','23144508','22614473','22133451','21507429','20953338','20406630','19873050') order by Description desc;
For 12.1 use the below script.
set pagesize 100;
set linesize 141;
col "Patch" format A10;
col "Description" format A70;
select distinct bug_number Patch, decode(bug_number,
'28421543','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR OCT 2018',
'28018146','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR JUL 2018',
'27468057','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR APR 2018',
'27040859','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR JAN 2018',
'26574496','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR OCT 2017',
'25982921','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR JUL 2017',
'25449171','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR APR 2017',
'25032333','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR JAN 2017',
'24390793','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR OCT 2016',
'23144507','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR JUL 2016',
'22614470','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR APR 2016',
'22133441','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR JAN 2016',
'21507207','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR OCT 2015',
'20953340','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR JUL 2015',
'20406628','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR APR 2015',
'19873049','ORACLE APPLICATIONS RELEASE 12.1: CPU PATCH FOR JAN 2015') Description,
CREATION_DATE Applied
from ad_bugs
where bug_number in
('28421543','28018146′,’27468057′,’27040859′,’26574496′,’25982921′,’25449171′,’25032333′,’24390793′,’23144507′,’22614470′,’22133441′,’21507207′,’20953340′,’20406628′,’19873049')
order by Patch desc;
You can see the patches applied in the system. Go through each line and find out which is the latest among all rows. With this, you will be able to find out how much you lag interms of security update for your EBS application.
As you understood, this script is as of OCT 2018. For future releases, you need to add patch numbers to this query.