It is just a quick idea. I have suspicious that ad_applied_patches
contains information about patches that you applied on the system,
ad_bugs has information about all bugs and patches that have been
included in the patches you applied.
For example you apply merged patch merge123 it contains 5 patches
10001 10002 10003 …
ad_applied_patches – will have one record about merge123
ad_bugs – 5 records
Another example: you apply maintenance patch which includes 51 other
patches. In that case
ad_applied_patches – will have one record about maintenance patch
ad_bugs – 51 + 1
I hope my thought is clear for you.
PS Anyway I use ad_bugs table in order to find out do I have one or
another patch to apply.
AD_BUGS holds information about the various Oracle Applications bugs whose fixes have been applied (ie. patched) in the Oracle Applications installation.
AD_APPLIED_PATCHES holds information about the “distinct” Oracle Applications patches that have been applied. If 2 patches happen to have the same name but are different in content (eg. “merged” patches), then they are considered distinct and this table will therefore hold 2 records.
select count(bug_number) from apps.ad_bugs; bug_number 对应 patch号
Filename [adpatch.log] : 10257769_EN_adpatch.log(指定adpatch输出日志的名字，一般放在$APPL_TOP/admin/<SID>/log下，默认名为adpatch.log，不过最好改成补丁编号+语言.log)