Home › Discussions › Questions & Answers › Finding Application Top ID for EBS 12.2 Patch Check

Finding Application Top ID for EBS 12.2 Patch Check

Avatar photoCustomer Questions & Answers 7 replies

We are using the `ad_patch.is_patch_applied` function within a Blitz Report to check patch status on our multi-node EBS 12.2 instance. How do I correctly retrieve the `appltop_id` for use in this function, ensuring I filter out obsolete records?

7 replies

  • Support Enginatics

    For multi-node installations, retrieving the correct `appltop_id` requires a specific SQL query . You need to join the `applsys.ad_appl_tops` table (which may contain obsolete entries) with the `applsys.fnd_appl_tops` table (which typically doesn’t have obsolete records) . The suggested query is: `select aat.name, aat.appl_top_id from applsys.ad_appl_tops aat, (select distinct fat.name from applsys.fnd_appl_tops fat) fat where aat.name = fat.name` .

  • Why is the `DISTINCT` keyword used on the `fnd_appl_tops` subquery in the recommended approach?

  • Support Enginatics

    The `DISTINCT` keyword is necessary because in Oracle EBS Release 12.2, the `fnd_appl_tops` table often returns two dual filesystem appl_tops . Using `DISTINCT` ensures that only one entry for each application top name is returned, simplifying the selection for the subsequent join and correct identification of the `appltop_id` .

  • If I am checking for patch status on a single-node EBS system, is there a simplified way to determine the `appltop_id` parameter?

  • Support Enginatics

    Yes, for single-node EBS systems, you can simplify the usage of the `ad_patch.is_patch_applied` function by using the constant value `appltop_id=-1` for the second parameter . This bypasses the need to query the application top tables directly .

  • If I want to check multiple patch numbers (e.g., 123456, 789012) across all application nodes simultaneously, how do I structure the query?

  • Support Enginatics

    You modify the improved query version that selects across multiple application nodes and languages . You join `ad_bugs` and `ad_appl_tops`, and use an `IN` clause to filter by your list of patch numbers . The query would contain `where adb.bug_number in (123456, 789012)` and include the join to the filtered `ad_appl_tops` and the function call `ad_patch.is_patch_applied` to check the status for each combination .

  • You must be logged in to reply to this post.