Most software only have a single patch process to update the software, however relational databases are a bit different. You have both a binary set of files for the software and the internal configuration and objects within the database itself. Thus, it is necessary to validate data both patch levels at the OS level and database level. Mismatch patches at this level can cause significant errors during operations.
To see the patch level of the internal database libraries you have to query the data dictionary view “dba_registry_sqlpatch”. Connect to one of the databases you have in your current server using sqlplus and execute the below query.
column action_time format a28
column action format a8
column version format a8
column comments format a30
column status format a10
set line 200 pages 500
select patch_id, version, status, Action,Action_time from dba_registry_sqlpatch order by action_time desc;
orcl (SYS)> column action_time format a28
column action format a8
column version format a8
column comments format a30
column status format a10
set line 200 pages 500
select patch_id, version, status, Action,Action_time from dba_registry_sqlpatch order by action_time desc;orcl (SYS)> orcl (SYS)> orcl (SYS)> orcl (SYS)> orcl (SYS)> orcl (SYS)>
PATCH_ID VERSION STATUS ACTION ACTION_TIME
---------- -------- ---------- -------- ----------------------------
32228578 12.2.0.1 SUCCESS APPLY 19-MAY-21 02.53.44.053902 PM
32119931 12.2.0.1 SUCCESS APPLY 19-MAY-21 02.53.43.930720 PM
31668898 12.2.0.1 SUCCESS ROLLBACK 19-MAY-21 02.53.43.919599 PM
31741641 12.2.0.1 SUCCESS APPLY 01-DEC-20 08.50.09.424579 PM