Search Results set_security_context
Overview
ZX_SECURITY is the PL/SQL security enforcement package for the Oracle E-Business Tax (EBTax) module within Oracle EBS 12.1.1 and 12.2.2. Its principal business function is to implement and enforce first-party organization security policies that govern read and write access to tax configuration data — including tax rules, formulas, subscriptions, and exception records. The package operates as a supporting security layer behind Oracle Virtual Private Database (VPD) or Application Context mechanisms, returning predicate strings that restrict visibility of rows in EBTax setup tables according to the currently established security context.
A central element of its design is the runtime session context. Security predicates reference values exposed through SYS_CONTEXT('my_ctx', ...), notably EFFECTIVEDATE and FIRSTPTYORGID. The package therefore provides both the functions that generate access predicates and the routines that populate that session context before EBTax queries execute.
Key Procedures and Functions
The package exposes sixteen documented procedures and functions, grouped by purpose:
- Context management: SET_SECURITY_CONTEXT and SET_SECURITY_CONTEXT_UI initialize the session-level security context that all subsequent predicate evaluations depend upon.
- Single-organization read policies: SINGLE_READ_ACCESS, SINGLE_READ_ACCESS_FOR_EXCP, and SINGLE_READ_ACCESS_FOR_OVRD generate predicates limiting read access to setup, exception, and override data respectively for one first-party organization.
- Multi-organization read policies: MULTIPLE_READ_ACCESS and MULTIPLE_READ_ACCESS_FOR_EXCP extend the same predicate model to scenarios spanning more than one first-party organization.
- Write policies: WRITE_ACCESS and WRITE_ACCESS_FOR_EXCP produce predicates governing write (insert/update) access to setup and exception data. CHECK_WRITE_ACCESS is a helper for validating write permission.
- Supporting accessors: FIRST_PARTY_ORG_ACCESS, SINGLE_REGIME_ACCESS, ADD_ICX_SESSION_ID, NAME_VALUE, and GET_EFFECTIVE_DATE provide organization, regime, session-tagging, name-value lookup, and effective-date retrieval utilities.
The documented source excerpt confirms SINGLE_READ_ACCESS builds a predicate comparing (content_owner_id, tax_regime_code) against ZX_SUBSCRIPTION_DETAILS rows where view options are NONE, VFC, or VFR, filtered by the effective date and the session's first-party organization identifier.
Tables Accessed
Two tables are documented as referenced through APPS synonyms:
- ZX_SUBSCRIPTION_DETAILS — the primary source for security filtering. It links first-party organizations to tax regimes and subscription view options, and supplies the parent organization and regime values against which access predicates are matched.
- DBMS_SESSION — used to set and manage the application context (my_ctx) that carries effective date and first-party organization values for the duration of the session.
Usage Notes
ZX_SECURITY is invoked indirectly rather than directly by end users. EBTax configuration forms and concurrent programs call SET_SECURITY_CONTEXT (or SET_SECURITY_CONTEXT_UI for user-interface flows) before issuing queries, after which database policies reference the predicate functions. The package is referenced by nine other packages, reflecting its role as a shared security foundation. Custom code or extensions that must respect EBTax security should establish the context first, then rely on the predicate functions rather than querying the underlying tables directly. In 12.2.x, the same package continues to serve this function, with the version header indicating maintenance through the 12.1.1 family.
-
PACKAGE BODY: APPS.ZX_SECURITY
12.1.1
-
PACKAGE BODY: APPS.ZX_SECURITY
12.2.2
-
PACKAGE: APPS.XLA_SECURITY_PKG
12.1.1
-
PACKAGE: APPS.XLA_SECURITY_PKG
12.2.2
-
PACKAGE: APPS.ZX_SECURITY
12.2.2
-
PACKAGE BODY: APPS.XLA_SECURITY_PKG
12.1.1
-
PACKAGE BODY: APPS.XLA_SECURITY_PKG
12.2.2
-
PACKAGE: APPS.ZX_SECURITY
12.1.1
-
PACKAGE BODY: APPS.XLA_CONTEXT_PKG
12.1.1
-
PACKAGE: APPS.XLA_CONTEXT_PKG
12.1.1
-
PACKAGE: APPS.XLA_CONTEXT_PKG
12.2.2
-
PACKAGE BODY: APPS.XLA_CONTEXT_PKG
12.2.2
-
PACKAGE BODY: APPS.BIS_INIT
12.1.1
-
PACKAGE BODY: APPS.ZX_VALID_INIT_PARAMS_PKG
12.1.1
-
PACKAGE BODY: APPS.ZX_VALID_INIT_PARAMS_PKG
12.2.2
-
PACKAGE: APPS.FEM_DIM_UTILS_PVT
12.1.1
-
APPS.ZX_SECURITY dependencies on FND_LOG
12.1.1
-
APPS.ZX_SECURITY dependencies on FND_API
12.1.1
-
APPS.ZX_SECURITY dependencies on ZX_SECURITY
12.2.2
-
APPS.ZX_SECURITY dependencies on ZX_SECURITY
12.1.1
-
APPS.ZX_SECURITY dependencies on FND_API
12.2.2
-
APPS.ZX_SECURITY dependencies on FND_LOG
12.2.2
-
APPS.XLA_TB_AP_REPORT_PVT dependencies on XLA_SECURITY_PKG
12.1.1
-
APPS.XLA_TB_REPORT_PVT dependencies on XLA_SECURITY_PKG
12.1.1
-
APPS.ZX_SECURITY dependencies on ZX_TCM_PTP_PKG
12.1.1
-
APPS.ZX_SECURITY dependencies on ZX_TCM_PTP_PKG
12.2.2
-
APPS.ZX_SECURITY dependencies on FND_MESSAGE
12.1.1
-
APPS.XLA_TB_AP_REPORT_PVT dependencies on XLA_SECURITY_PKG
12.2.2
-
APPS.XLA_TB_AP_REPORT_PVT dependencies on MO_GLOBAL
12.1.1
-
APPS.XLA_TB_REPORT_PVT dependencies on MO_GLOBAL
12.2.2
-
APPS.XLA_TB_REPORT_PVT dependencies on XLA_SECURITY_PKG
12.2.2
-
APPS.XLA_TB_REPORT_PVT dependencies on MO_GLOBAL
12.1.1
-
APPS.XLA_TB_AP_REPORT_PVT dependencies on MO_GLOBAL
12.2.2
-
APPS.XLA_TB_AP_REPORT_PVT dependencies on XLA_SUBLEDGERS
12.2.2
-
APPS.XLA_TB_AP_REPORT_PVT dependencies on XLA_SUBLEDGERS
12.1.1
-
APPS.XLA_TB_REPORT_PVT dependencies on XLA_SUBLEDGERS
12.2.2
-
APPS.XLA_TB_REPORT_PVT dependencies on XLA_SUBLEDGERS
12.1.1
-
PACKAGE BODY: APPS.XLA_TB_AP_REPORT_PVT
12.1.1
-
APPS.XLA_SECURITY_PKG dependencies on XLA_EXCEPTIONS_PKG
12.2.2
-
APPS.XLA_SECURITY_PKG dependencies on XLA_SECURITY_PKG
12.2.2
-
APPS.XLA_SECURITY_PKG dependencies on XLA_SECURITY_PKG
12.1.1
-
APPS.XLA_SECURITY_PKG dependencies on XLA_EXCEPTIONS_PKG
12.1.1
-
PACKAGE BODY: APPS.XLA_TB_REPORT_PVT
12.2.2
-
APPS.XLA_CONTEXT_PKG dependencies on XLA_CONTEXT_PKG
12.1.1
-
PACKAGE BODY: APPS.XLA_TB_REPORT_PVT
12.1.1
-
PACKAGE BODY: APPS.XLA_TB_AP_REPORT_PVT
12.2.2
-
APPS.XLA_CONTEXT_PKG dependencies on XLA_EXCEPTIONS_PKG
12.1.1
-
APPS.XLA_CONTEXT_PKG dependencies on XLA_CONTEXT_PKG
12.2.2
-
APPS.XLA_CONTEXT_PKG dependencies on XLA_EXCEPTIONS_PKG
12.2.2
-
APPS.ZX_VALID_INIT_PARAMS_PKG dependencies on ZX_API_PUB
12.1.1