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.
  1. SELECT
  2. f.file_id,
  3. f.filename,
  4. f.app_short_name,
  5. b.orig_bug_number patch_num,
  6. v.version,
  7. a.creation_date,
  8. decode(a.common_action_id, 4043, 'copy', 72746, 'sql') action
  9. FROM
  10. ad_files f,
  11. ad_file_versions v,
  12. ad_patch_run_bug_actions a,
  13. ad_patch_run_bugs b
  14. WHERE
  15. f.filename = '&file_name'
  16. AND f.file_id = v.file_id
  17. AND v.file_version_id = nvl(a.patch_file_version_id, a.onsite_file_version_id)
  18. AND a.patch_run_bug_id = b.patch_run_bug_id
  19. ORDER BY a.action_id

以上是关于Oracle SQL-选择OAF文件版本历史记录的主要内容,如果未能解决你的问题,请参考以下文章

oracle执行历史查不到执行sql

OAF 开发前置配置

Oracle学习(十三):闪回

Oracle学习(十三):闪回

Oracle OAF 学习小结- 增删改查/LOV/Button/Sequence 的完整案例开发

查看oracle 用户执行的sql语句历史记录