Search Results x_mode
Overview
APPS.AD_ZD is the core Oracle E-Business Suite package that implements and manages the Edition-Based Redefinition (EBR) infrastructure introduced with Online Patching in EBS 12.2. Where 12.1.1 relied on traditional patching downtime through adpatch and AutoPatch phases, 12.2.x uses multiple database editions to run the file system and database tiers of the patch cycle while the production application remains online. AD_ZD is the PL/SQL layer that orchestrates this machinery: it creates and retires editions, switches the runtime edition, controls the logon trigger that routes new sessions to the correct edition, disconnects existing sessions at cutover, and executes the DDL that each patch phase requires. The HEADER line (ADZDXS.pls 120.25, shipped January 2013) confirms the package is part of the 12.2 code line and is owned by APPS with definer-style privileges, declared as authid current_user.
The package is documented in ETRM 12.2.2 with an API classification of OTHER, reflecting that it is an internal, AD utilities-owned package rather than a published business API. It is referenced by 28 other packages, largely the Online Patching driver code executed through ADOP and AutoPatch.
Key Procedures and Functions
The documented interface divides into helper routines, edition lifecycle procedures, and online patching phase control.
- LOG, ERROR — Write informational and error messages to the AD_ZD log repository and raise the standard error for the calling phase.
- EXEC — Overloaded helper that executes dynamic SQL (VARCHAR2 or CLOB) with a logging module name and an optional ignore-error flag; this is the workhorse used by all phase procedures.
- LOAD_DDL — Loads DDL statements for a given patch phase (PREPARE, CUTOVER, CLEANUP, etc.) into the edition so they can be applied at the correct point in the cycle.
- APPS_SCHEMA, APPLSYS_SCHEMA — Return the current APPS and APPLSYS schema names, accounting for edition-specific object resolution.
- IS_EDITIONS_ENABLED — Reports whether the database is in an editions-enabled, online-patching capable configuration.
- GET_EDITION, GET_EDITION_TYPE, SET_EDITION — Retrieve the current edition name or type (RUN, PATCH, PREPARE, etc.) and set the session’s edition context.
- CHECK_SPACE — Validates available tablespace and free space before an edition is created.
- CREATE_EDITION, RETIRE_EDITION, DROP_EDITION, DROP_OLD_EDITIONS — Manage the full edition lifecycle: create the new patch edition, retire the previous runtime edition, drop it, and purge all obsolete editions.
- ALTER_LOGON_TRIGGER — Enable or disable the database logon trigger that directs new connections to the appropriate edition. This is the procedure directly relevant to the search term
logon_trigger_status. - LOGON_TRIGGER_STATUS — Returns the current enabled or disabled state of the EBS logon trigger, allowing ADOP and operators to confirm that session routing is in the expected state before and after a cutover.
- KILL_SESSIONS — Terminates active sessions for a specified edition type, essential for ensuring no user remains attached to the old edition at cutover.
- PREPARE, FINALIZE, COMPILE, CUTOVER, CLEANUP, ABORT — The phase control API. Each procedure performs the database-side work for the corresponding ADOP phase.
Tables Accessed
AD_ZD queries and modifies several data dictionary views (via APPS synonyms) to drive edition management. ALL_EDITIONS, DBA_EDITIONS, and DBA_OBJECTS_AE provide the edition catalog and editioned object metadata used to determine which objects are patched. DATABASE_PROPERTIES exposes the default edition and related database settings. DBA_DATA_FILES and DBA_FREE_SPACE back CHECK_SPACE. DBA_TRIGGERS and DBA_USERS support logon-trigger inspection and session/user validation, while DBA_TAB_PRIVS is used for privilege checks. V$SESSION and V$PROCESS supply the session information consumed by KILL_SESSIONS. DBMS_LOB, DBMS_SESSION, DBMS_SQL, and DBMS_STATS are invoked for CLOB handling, session control, dynamic SQL execution, and statistics gathering during the patch cycle.
Usage Notes
AD_ZD is not intended for direct application use; it is invoked by the Online Patching infrastructure and is a prerequisite for 12.2 patching operations. The logon_trigger_status function is typically queried when diagnosing session-routing problems during adoption, for example to verify that ALTER_LOGON_TRIGGER left the trigger enabled after an aborted cutover. In the 12.1.1 context there was no EBR, so AD_ZD exists only in 12.2.x; the corresponding 12.1.1-only scenarios relied on AD utilities and adpatch alone. When custom code must run during a patch cycle, developers should respect the current edition context returned by GET_EDITION rather than hard-coding edition names, and should not call AD_ZD phase procedures directly. All log output can be reviewed through the standard ADOP log locations to trace execution.
-
APPS.IGS_UC_PROC_REFERENCE_DATA SQL Statements
12.1.1
-
PACKAGE: APPS.AD_ZD
12.2.2
-
APPS.IGI_IAC_ADJ_EXPENSED_PKG SQL Statements
12.2.2
-
APPS.IGI_IAC_RETIREMENT SQL Statements
12.1.1
-
APPS.IGS_AD_ASSIGN_REVIEW_GRP SQL Statements
12.1.1
-
APPS.IGI_IAC_RETIREMENT SQL Statements
12.2.2
-
APPS.IGS_PS_GEN_001 SQL Statements
12.1.1
-
APPS.FND_PROFILE_HIERARCHY_PKG SQL Statements
12.1.1
-
APPS.IGF_SP_ROLLOVER SQL Statements
12.1.1
-
PACKAGE BODY: APPS.PSP_ENC_PAYROLL_ASSIGN_PKG
12.2.2
-
PACKAGE BODY: APPS.PSP_TEMPLATE_ORGANIZATIONS_PKG
12.2.2
-
PACKAGE BODY: APPS.PSP_ENC_SETUP_OPTIONS_PKG
12.2.2
-
APPS.IGS_DA_UTILS_PKG SQL Statements
12.1.1
-
APPS.IGP_VW_PORT_ACTIVITIES_PKG SQL Statements
12.1.1
-
APPS.FND_PROFILE_HIERARCHY_PKG SQL Statements
12.2.2
-
APPS.IGI_IAC_ADJ_EXPENSED_PKG SQL Statements
12.1.1
-
PACKAGE BODY: APPS.IGW_PROP_LOCATIONS_PKG
12.1.1
-
PACKAGE: APPS.IGW_PROP_SCIENCE_CODES_PKG
12.1.1
-
APPS.IGS_PR_GEN_006 SQL Statements
12.1.1
-
PACKAGE BODY: APPS.PSP_EFFORT_MESSAGES_PKG
12.1.1
-
PACKAGE BODY: APPS.PSP_SUB_LINE_REASONS_PKG
12.1.1
-
PACKAGE BODY: APPS.IGW_PROP_PROGRAM_ADDRESS_PKG
12.1.1
-
PACKAGE BODY: APPS.PSP_SUB_LINE_REASONS_PKG
12.2.2
-
PACKAGE BODY: APPS.PSP_ENC_SETUP_OPTIONS_PKG
12.1.1
-
PACKAGE BODY: APPS.PSP_ER_APPROVALS_PKG
12.2.2
-
PACKAGE: APPS.PSP_SUB_LINE_REASONS_PKG
12.2.2
-
PACKAGE BODY: APPS.IGW_PROP_SCIENCE_CODES_PKG
12.1.1
-
PACKAGE BODY: APPS.PSP_EFFORT_MESSAGES_PKG
12.2.2
-
APPS.IGS_PR_PROUT_LGCY_PUB SQL Statements
12.1.1
-
PACKAGE BODY: APPS.GMS_PERSONNEL_PKG
12.1.1
-
PACKAGE BODY: APPS.GMS_PERSONNEL_PKG
12.2.2
-
PACKAGE BODY: APPS.PSP_SCHEDULE_HIERARCHY_PKG
12.2.2
-
APPS.PSP_PAYTRN SQL Statements
12.2.2
-
APPS.PSP_PAYTRN SQL Statements
12.1.1
-
PACKAGE: APPS.IGS_PS_FAC_TCFT_TMP_PKG
12.1.1
-
PACKAGE: APPS.IGS_PE_OFFICE_HRS_PKG
12.1.1
-
PACKAGE BODY: APPS.PSP_ENC_PAYROLL_ASSIGN_PKG
12.1.1
-
PACKAGE BODY: APPS.PSP_TEMPLATE_PROJECTS_PKG
12.2.2
-
PACKAGE BODY: APPS.PSP_ER_APPROVALS_PKG
12.1.1
-
APPS.IGI_IAC_REINSTATE_PKG SQL Statements
12.1.1
-
APPS.IGI_IAC_REINSTATE_PKG SQL Statements
12.2.2
-
PACKAGE: APPS.IGW_PROP_PROGRAM_ADDRESS_PKG
12.1.1
-
PACKAGE BODY: APPS.PSP_TEMPLATE_PROJECTS_PKG
12.1.1
-
PACKAGE BODY: APPS.PSP_TEMPLATE_AWARDS_PKG
12.1.1
-
PACKAGE BODY: APPS.PSP_AUTO_SEGMENTS_PKG
12.1.1
-
PACKAGE BODY: APPS.PSP_TEMPLATE_AWARDS_PKG
12.2.2
-
PACKAGE BODY: APPS.PSP_AUTO_SEGMENTS_PKG
12.2.2
-
APPS.IGS_AD_INT_RECONSIDER SQL Statements
12.1.1
-
PACKAGE BODY: APPS.GMS_REFERENCE_NUMBERS_PKG
12.2.2
-
PACKAGE: APPS.IGW_PROP_LOCATIONS_PKG
12.1.1