查询DBA在系统中的打补丁信息
1. select * from ad_patch_drivers /*查看已经打了哪些Patch*/
2. select * from ad_patch_runs /*查看打patch的时间,目录等信息*/
3. select * from ad_patch_driver_langs /*查看patch的语言*/
4. 查询补丁名称、语言、打Patch的开始时间、打Patch的完成时间:
SELECT driver.driver_file_name 补丁名称,
lang.language 语言,
TO_CHAR(run.start_date, ‘RRRR-MM-DD HH24:MI:SS‘) 开始时间,
TO_CHAR(run.end_date, ‘RRRR-MM-DD HH24:MI:SS‘) 完成时间
FROM ad_patch_runs run,
ad_patch_driver_langs lang,
ad_patch_drivers driver,
ad_applied_patches applied
WHERE run.patch_driver_id = driver.patch_driver_id
AND driver.applied_patch_id = applied.applied_patch_id
AND lang.patch_driver_id = driver.patch_driver_id ORDER BY 3,4,1,2
--可以统计打Patch的时间,有利于对产品环境的打Patch预计时间和计划安排。
Oracle EBS-SQL (SYS-13):查询DBA在系统中的打补丁信息.SQL,布布扣,bubuko.com
Oracle EBS-SQL (SYS-13):查询DBA在系统中的打补丁信息.SQL
原文:http://www.cnblogs.com/st-sun/p/3777634.html