Search Results ad_patch_hist_temp
Overview
AD_PATCH_HIST_TEMP, owned by the APPLSYS schema, is a temporary staging table used by the Oracle Applications DBA (AD) product to record patch-history information during patch application and maintenance operations. It functions as a transient repository into which the AutoPatch and AD utilities write row-level patch file and bug data before that data is validated, transformed, and ultimately persisted to the permanent patch-history tables. Its presence is significant because it isolates in-progress or intermediate patch metadata from the authoritative history records, allowing failed or aborted patching sessions to be discarded without corrupting the master history.
The table is documented as VALID and contains 81 columns in the ETRM 12.2.2 physical schema. The same definition and staging role applies across Oracle EBS 12.1.1 and 12.2.2, where AD utilities such as AutoPatch (adpatch) and its supporting workers interact with the table on every patching cycle. Because the object is explicitly labeled temporary in purpose, its rows carry a short operational lifespan and are typically purged or overwritten as each patch run completes. The heuristic Data Vault classification mined from the foreign-key structure is standalone, meaning the table is not best modeled as a hub, link, or satellite within a Data Vault representation; it should be treated as a transient operational buffer rather than a durable modeled entity.
Key Information Stored
The most operationally important columns fall into three logical groups: patch identity, file/version comparison, and action execution.
- PATCH_RUN_ID — foreign key to AD_PATCH_RUNS; identifies the patch run that staged the row and is the primary correlating business key for recovery and reporting.
- BUG_NUMBER / BUG_ID / ORIG_BUG_NUMBER — the bug (patch) being processed; BUG_ID is the FK to AD_BUGS.
- PATCH_RUN_BUG_ID — FK to AD_PATCH_RUN_BUGS, linking the staging row to the specific bug within the run.
- FILENAME / FILE_ID / FILE_SUBDIR / FILE_APPS_SHORT_NAME — the patch file payload delivered by the patch.
- PATCH_FILE_VERS_ID / ONSITE_FILE_VERS_ID / DB_FILE_VERS_ID — three-way file version identifiers that support the comparison between the patch-delivered file, the onsite file, and the database-registered file.
- APPLIED_FLAG / SUCCESS_FLAG / REASON_NOT_APPLIED — execution outcome and rationale fields used to report which files applied or were skipped.
- COMMON_ACTION_ID / ACTION_CODE / ACTION_PHASE / ACTION_ARGUMENTS / ACTION_EXECUTED_FLAG — the action instruction set executed against the file; COMMON_ACTION_ID is the FK to AD_PATCH_COMMON_ACTIONS.
- MAJOR_PHASE / MINOR_PHASE / PATCH_TRANS_LEVEL / ONSITE_TRANS_LEVEL / DB_TRANS_LEVEL — phase and translation-level tracking columns that drive patch sequencing.
- GENERIC_PATCH / BASELINE_NAME / TRACKABLE_ENTITY_NAME / LANGUAGE — classification and localization attributes for the staged record.
No surrogate primary key is documented for this staging table; the combination of PATCH_RUN_ID, BUG_ID, and FILE_ID (or PATCH_RUN_BUG_ID and FILENAME) behaves as the effective business-key candidate for correlating a given file action to a run.
Common Use Cases and Queries
Typical use cases center on troubleshooting, reconciliation, and pre-migration verification. DBAs query AD_PATCH_HIST_TEMP to confirm which files a run actually staged before they were promoted to permanent history, and to detect runs that terminated before completing staging.
- Identify files staged for a run:
SELECT patch_run_id, bug_number, filename, applied_flag, success_flag FROM ad_patch_hist_temp WHERE patch_run_id = :run_id; - Report files skipped with reasons:
SELECT bug_number, filename, reason_not_applied FROM ad_patch_hist_temp WHERE applied_flag = 'N'; - Correlate actions to files: join COMMON_ACTION_ID to AD_PATCH_COMMON_ACTIONS to see action code and phase per staged file.
- Cross-check versions: compare PATCH_FILE_VERS_ID, ONSITE_FILE_VERS_ID, and DB_FILE_VERS_ID to detect version drift.
- Purge readiness checks: because the table is a transient staging area, queries are frequently written to determine what can safely be cleared after a run completes.
Related Objects
The documented foreign keys establish the object's principal dependencies:
- AD_PATCH_RUNS — joined on AD_PATCH_HIST_TEMP.PATCH_RUN_ID = AD_PATCH_RUNS.PATCH_RUN_ID; parent run record.
- AD_BUGS — joined on AD_PATCH_HIST_TEMP.BUG_ID = AD_BUGS.BUG_ID; bug/patch master data.
- AD_PATCH_RUN_BUGS — joined on AD_PATCH_HIST_TEMP.PATCH_RUN_BUG_ID = AD_PATCH_RUN_BUGS.PATCH_RUN_BUG_ID; bug-in-run association.
- AD_PATCH_COMMON_ACTIONS — joined on AD_PATCH_HIST_TEMP.COMMON_ACTION_ID = AD_PATCH_COMMON_ACTIONS.COMMON_ACTION_ID; action definitions.
- AD_PATCH_HIST — the permanent counterpart table into which staged rows are ultimately promoted for durable patch-history reporting.
- AutoPatch utilities and AD Worker APIs that populate and consume this staging table during patch application.
-
Table: AD_PATCH_HIST_TEMP
12.2.2
owner:APPLSYS, object_type:TABLE, fnd_design_data:AD.AD_PATCH_HIST_TEMP, object_name:AD_PATCH_HIST_TEMP, status:VALID, product: AD - Applications DBA , description: Temporary staging table for recording patch-history , implementation_dba_data: APPLSYS.AD_PATCH_HIST_TEMP ,
-
SYNONYM: APPS.AD_PATCH_HIST_TEMP
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AD_PATCH_HIST_TEMP, status:VALID,
-
SYNONYM: APPS.AD_PATCH_HIST_TEMP
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AD_PATCH_HIST_TEMP, status:VALID,
-
APPS.AD_FILE_UTIL SQL Statements
12.2.2
-
APPS.AD_FILE_UTIL SQL Statements
12.1.1
-
VIEW: APPLSYS.AD_PATCH_HIST_TEMP#
12.2.2
owner:APPLSYS, object_type:VIEW, object_name:AD_PATCH_HIST_TEMP#, status:VALID,
-
PACKAGE BODY: APPS.AD_FILE_UTIL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AD_FILE_UTIL, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
VIEW: APPLSYS.AD_PATCH_HIST_TEMP#
12.2.2
-
PACKAGE BODY: APPS.AD_FILE_UTIL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AD_FILE_UTIL, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 FND Design Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
PACKAGE BODY: APPS.AD_FILE_UTIL
12.1.1
-
12.1.1 DBA Data
12.1.1
-
PACKAGE BODY: APPS.AD_FILE_UTIL
12.2.2
-
TABLE: APPLSYS.AD_PATCH_HIST_TEMP
12.1.1
owner:APPLSYS, object_type:TABLE, object_name:AD_PATCH_HIST_TEMP, status:VALID,
-
TABLE: APPLSYS.AD_PATCH_HIST_TEMP
12.2.2
owner:APPLSYS, object_type:TABLE, fnd_design_data:AD.AD_PATCH_HIST_TEMP, object_name:AD_PATCH_HIST_TEMP, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
APPS.AD_FILE_UTIL dependencies on AD_PATCH_HIST_TEMP
12.1.1
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
APPS.AD_FILE_UTIL dependencies on AD_PATCH_HIST_TEMP
12.2.2
-
eTRM - AD Tables and Views
12.2.2
description: Oracle Applications products installed at your site ,
-
APPS.AD_FILE_UTIL dependencies on FND_STATS
12.2.2
-
APPS.AD_FILE_UTIL dependencies on FND_STATS
12.1.1
-
APPS.AD_FILE_UTIL dependencies on AD_SNAPSHOT_BUGFIXES
12.1.1
-
APPS.AD_FILE_UTIL dependencies on AD_FILES
12.1.1
-
APPS.AD_FILE_UTIL dependencies on AD_SNAPSHOT_BUGFIXES
12.2.2
-
APPS.AD_FILE_UTIL dependencies on AD_FILES
12.2.2
-
APPS.AD_FILE_UTIL dependencies on AD_SNAPSHOT_FILES
12.2.2
-
APPS.AD_FILE_UTIL dependencies on AD_SNAPSHOT_FILES
12.1.1
-
eTRM - AD Tables and Views
12.2.2
description: Oracle Applications products installed at your site ,
-
APPS.AD_FILE_UTIL dependencies on AD_BUGS
12.2.2
-
APPS.AD_FILE_UTIL dependencies on AD_BUGS
12.1.1
-
APPS.AD_FILE_UTIL dependencies on AD_CHECK_FILE_TEMP
12.1.1
-
APPS.AD_FILE_UTIL dependencies on AD_CHECK_FILE_TEMP
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1