Search Results init_map
Overview
OKS_BASE64 is a PL/SQL utility package in the Oracle E-Business Suite APPS schema that provides Base64 encoding and decoding functionality for service and support contract data. In the Oracle EBS 12.1.1 and 12.2.2 environments, this package is classified under the Service (OKS) module, which manages service contracts, warranties, and entitlement information. The primary business purpose of OKS_BASE64 is to convert binary RAW data into an ASCII-safe Base64 string representation, and to reverse that transformation, enabling reliable transport and storage of binary content across interfaces that cannot natively handle binary streams.
The package is defined with the header identifier OKSBASEB.pls 120.0, dated 2005/05/25, which indicates it has been present since earlier releases and remains stable through the 12.x line. Its design is deliberately narrow: it addresses no business rules of its own but rather supplies a reusable encoding primitive consumed by other service-module programs.
Key Procedures and Functions
- ENCODE — The single documented function in the package. It accepts a RAW value and returns a VARCHAR2 string containing the Base64 representation of the input. Internally it processes the input three bytes at a time, splitting each 24-bit group into four 6-bit units and mapping each unit to its corresponding Base64 character, then handles any trailing bytes with appropriate padding.
- INIT_MAP — A supporting private procedure within the package body that populates the Base64 character map. This is the element users commonly search for with "init_map." It is not part of the documented API surface but serves as the initialization routine that loads the 64-character alphabet used by ENCODE. The map is declared as a collection (a PL/SQL indexed-by table of single characters) indexed by binary integer, and INIT_MAP assigns positions 0 through 63 their corresponding characters: 'A'–'Z' for the first 26, 'a'–'z' for the next 26, '0'–'9' for the ten numeric positions, and finally '+' and '/' for values 62 and 63.
Tables Accessed
The package references no application tables directly. The only referenced object documented is UTL_RAW, the standard Oracle supplied package used to manipulate binary data at the byte level. ENCODE calls UTL_RAW.LENGTH and UTL_RAW.SUBSTR to walk through the input RAW byte by byte. Because the character map is held entirely in PL/SQL memory and no persistent database tables are read or written, the package operates without any transactional footprint and cannot generate undo or redo activity beyond normal session-level PL/SQL execution.
Usage Notes
OKS_BASE64 is referenced by one other package within the EBS schema, meaning it is invoked indirectly through higher-level service-module logic rather than being called directly from Oracle Forms or concurrent programs. Typical invocation scenarios include preparing binary attachments, encoded document payloads, or interface messages for delivery to external systems or web services where a text-safe encoding is mandatory. Because it is a packaged utility with no database dependency, it is also a suitable candidate for copy into custom schemas or wrapper packages when developers require Base64 handling in bespoke extensions. Standard Oracle support for encoding in EBS is provided by UTL_ENCODE, and OKS_BASE64 effectively reflects a pre-existing module-specific implementation of the same concept; developers should verify whether the underlying service functionality still requires this package when planning patching or upgrade activities.
-
PACKAGE BODY: APPS.OKS_BASE64
12.1.1
-
PACKAGE BODY: APPS.OKS_BASE64
12.2.2
-
PACKAGE BODY: APPS.PAY_FR_MAP_CALC
12.1.1
-
PACKAGE BODY: APPS.PAY_FR_MAP_CALC
12.2.2
-
PACKAGE BODY: APPS.IBY_UTILITY_PVT
12.1.1
-
PACKAGE: APPS.M4U_XML_EXTN_UTILS
12.1.1
-
PACKAGE: APPS.M4U_XML_EXTN_UTILS
12.2.2
-
PACKAGE BODY: APPS.IBY_UTILITY_PVT
12.2.2
-
PACKAGE BODY: APPS.GL_ACCOUNTS_MAP_GRP
12.1.1
-
PACKAGE BODY: APPS.GL_ACCOUNTS_MAP_GRP
12.2.2
-
APPS.PAY_FR_MAP_CALC dependencies on FND_NUMBER
12.1.1
-
APPS.PAY_FR_MAP_CALC dependencies on FND_NUMBER
12.2.2
-
APPS.PAY_FR_MAP_CALC dependencies on HR_GENERAL
12.1.1
-
APPS.PAY_FR_MAP_CALC dependencies on HR_GENERAL
12.2.2
-
APPS.PAY_FR_MAP_CALC dependencies on HR_UTILITY
12.2.2
-
APPS.PAY_FR_MAP_CALC dependencies on HR_UTILITY
12.1.1
-
APPS.M4U_XML_EXTN_UTILS dependencies on WF_PARAMETER_LIST_T
12.2.2
-
APPS.M4U_XML_EXTN_UTILS dependencies on WF_PARAMETER_LIST_T
12.1.1
-
APPS.M4U_XML_EXTN_UTILS dependencies on WF_PARAMETER_LIST_T
12.1.1
-
APPS.M4U_XML_EXTN_UTILS dependencies on WF_PARAMETER_LIST_T
12.2.2
-
PACKAGE BODY: APPS.M4U_XML_EXTN_UTILS
12.1.1
-
PACKAGE BODY: APPS.M4U_XML_EXTN_UTILS
12.2.2
-
APPS.M4U_XML_EXTN_UTILS dependencies on M4U_ELEMENT_MAPPINGS
12.1.1
-
APPS.M4U_XML_EXTN_UTILS dependencies on M4U_ELEMENT_MAPPINGS
12.2.2
-
APPS.IBY_UTILITY_PVT dependencies on UTL_RAW
12.2.2
-
APPS.IBY_UTILITY_PVT dependencies on UTL_RAW
12.1.1
-
APPS.M4U_XML_EXTN_UTILS dependencies on M4U_XML_EXTN_UTILS
12.1.1
-
APPS.M4U_XML_EXTN_UTILS dependencies on M4U_XML_EXTN_UTILS
12.2.2