Oracle SQL-选择OAF文件版本历史记录
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Oracle SQL-选择OAF文件版本历史记录相关的知识,希望对你有一定的参考价值。
This sql query will select the past version information about a given file from the database. An example would be searching for %ApprovalHistoryVOImpl% would return all past version numbers (in the database) for the ApprovalHistoryVOImpl.class file.This is useful for checking which patch versions of a file have been applied to a given database.
SELECT f.file_id, f.filename, f.app_short_name, b.orig_bug_number patch_num, v.version, a.creation_date, decode(a.common_action_id, 4043, 'copy', 72746, 'sql') action FROM ad_files f, ad_file_versions v, ad_patch_run_bug_actions a, ad_patch_run_bugs b WHERE f.filename = '&file_name' AND f.file_id = v.file_id AND v.file_version_id = nvl(a.patch_file_version_id, a.onsite_file_version_id) AND a.patch_run_bug_id = b.patch_run_bug_id ORDER BY a.action_id
以上是关于Oracle SQL-选择OAF文件版本历史记录的主要内容,如果未能解决你的问题,请参考以下文章