Search Results lock_infrastructure




Overview

AD_FILE_UTIL is a utility package owned by the APPS schema in Oracle E-Business Suite 12.1.1 and 12.2.2. Its primary business function is to support the Oracle Applications file system infrastructure used during patching, snapshot preseeding, and checkfile processing. The package header carries the AUTHID CURRENT_USER directive, meaning that all unqualified object references resolve against the invoking schema rather than the definer schema. This is significant because the package is designed to be called from AD administration scripts, patching utilities, and concurrent processing routines that operate under the APPLSYS schema.

At its core, AD_FILE_UTIL manages the staging and loading of file-system metadata into the AD dictionary tables. It provides the serialization mechanism that allows multiple concurrent scripts to safely share the AD_CHECK_FILE_TEMP staging table, and it supplies the loaders that move staged rows into the persistent AD_FILES, AD_FILE_VERSIONS, and related repositories. In this sense, the package is part of the foundational plumbing that lets AutoPatch, adpatch, and the snapshot preseeding processes reconcile the physical file system against the database records of the Applications file hierarchy.

Key Procedures and Functions

The package exposes eighteen documented procedures and functions. The most prominent are:

Tables Accessed

AD_FILE_UTIL reads and writes a specific set of AD dictionary tables, all accessed through APPS synonyms:

Usage Notes

AD_FILE_UTIL is not intended to be invoked interactively from Oracle Forms. It is called from AD administration scripts, AutoPatch, snapshot preseeding routines, and concurrent programs that need to reconcile the physical Applications file system against the AD dictionary. The documented usage pattern requires each caller to call LOCK_AND_EMPTY_TEMP_TABLE, insert rows into AD_CHECK_FILE_TEMP, gather statistics on that table, invoke the relevant loader, and commit — repeating the cycle for each batch before finally calling UNLOCK_INFRASTRUCTURE. When a patching session aborts unexpectedly, the residual infrastructure lock can be released by invoking UNLOCK_INFRASTRUCTURE explicitly, which is why the procedure is commonly sought by DBAs and EBS technicians. Custom code should treat the package as an internal utility and avoid calling it outside established AD patch and snapshot workflows.