-
Notifications
You must be signed in to change notification settings - Fork 2
/
check_patches_18.sql
38 lines (32 loc) · 1.11 KB
/
check_patches_18.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
-- -----------------------------------------------------------------------------------
-- File Name : https://MikeDietrichDE.com/wp-content/scripts/12c/check_patches.sql
-- Author : Mike Dietrich
-- Description : Displays contents of the patches (BP/PSU) registry and history
-- Requirements : Access to the DBA role.
-- Call Syntax : @check_patches_18.sql
-- Last Modified: 24/07/2018
-- Database Rel.: Oracle 12.2.0.1, Oracle 18c, Oracle 19c
-- -----------------------------------------------------------------------------------
SET LINESIZE 500
SET PAGESIZE 1000
SET SERVEROUT ON
SET LONG 2000000
COLUMN action_time FORMAT A12
COLUMN action FORMAT A10
COLUMN patch_type FORMAT A10
COLUMN description FORMAT A32
COLUMN status FORMAT A10
COLUMN version FORMAT A10
alter session set "_exclude_seed_cdb_view"=FALSE;
spool check_patches_18.txt
select CON_ID,
TO_CHAR(action_time, 'YYYY-MM-DD') AS action_time,
PATCH_ID,
PATCH_TYPE,
ACTION,
DESCRIPTION,
SOURCE_VERSION,
TARGET_VERSION
from CDB_REGISTRY_SQLPATCH
order by CON_ID, action_time, patch_id;
spool off