Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- psuvers.sql
- -- get Oracle Database PSU version
- with a as
- (
- select xmltype(xml_inventory) patch_output
- from sys.opatch_xml_inv
- ),
- xt as
- (
- select x.*
- from a, xmltable(
- 'InventoryInstance/patches/*'
- passing a.patch_output
- columns
- patchID number path 'patchID',
- patchDescription varchar2(80) path 'patchDescription'
- ) x
- where regexp_like(patchDescription, 'Database Patch Set Update')
- )
- select patchDescription
- from xt
- where patchID = ( select max( patchID ) from xt )
- ;
- @ psuvers.sql
- PATCHDESCRIPTION
- --------------------------------------------------------------------------------
- Database Patch Set Update : 12.1.0.2.170418 (25171037)
Advertisement
Add Comment
Please, Sign In to add comment