Search Results retcode_error
Overview
OKC_TEMPLATE_KEYWORD_PVT is a private (PVT-classified) PL/SQL package body owned by APPS within the Oracle Contracts (OKC) module of Oracle E-Business Suite 12.1.1 and 12.2.2. Its business function is to maintain the Oracle Text (interMedia) search index named okc_terms_templates_ctx that backs keyword-based retrieval of contract terms and templates. Contract administrators and legal users rely on this index to locate templates and standard clauses by free-text keyword, so the package provides the controlled maintenance operations that keep that index synchronized, optimized, and usable from concurrent processing.
The package body is deliberately thin, exposing only administrative DDL-style operations against the Oracle Text index rather than transactional business logic. It is not intended to be called from contract entry forms during normal user transactions; its role is scheduled and DBA-driven upkeep of the search infrastructure.
Key Procedures and Functions
- SYNC — Sets the effective schema to
okcthroughad_ctx_ddl.set_effective_schemaand then invokesad_ctx_ddl.sync_indexon theokc_terms_templates_ctxindex. This applies pending index changes so newly created or modified template keyword content becomes searchable. Any exception is propagated to the caller with a bareraise. - OPTIMIZE — Also sets the effective schema to
okc, then callsad_ctx_ddl.optimize_indexwithoptlevel_fullandmaxtime_unlimited, performing a full optimization of the index to compact it and improve query performance. Exceptions propagate unchanged. - SYNC_CTX — The concurrent-program entry point for synchronization. It logs entry and exit via
fnd_log.stringusing the package-level debug level, calls the internalsyncprocedure, and returnsretcode_success('0') on completion. Its exception handler setsretcode := retcode_error('2') and truncatessqlerrminto the 200-charactererrbufoutput parameter, which is the standard concurrent manager convention. - OPTIMIZE_CTX — The concurrent-program counterpart for optimization, invoking
optimizeand following the same errbuf/retcode error-reporting contract.
The named constants retcode_success ('0'), retcode_warning ('1'), and retcode_error ('2') define the standard Oracle EBS concurrent return codes. A search for "retcode_error" surfaces this package because that constant is assigned in the exception handler, which is the mechanism by which a failed index synchronization or optimization reports failure back to the concurrent manager rather than raising an unhandled error.
Tables Accessed
The only documented object referenced is the AD_CTX_DDL package, invoked through APPS synonyms. AD_CTX_DDL is the Oracle Application Object Library helper that wraps Oracle Text DDL operations (schema context, index synchronization, and optimization). The package therefore does not read or write contract tables directly; it manipulates the underlying okc_terms_templates_ctx index, whose source data resides in the OKC terms and templates tables maintained elsewhere in the Contracts schema.
Usage Notes
OKC_TEMPLATE_KEYWORD_PVT is classified as private, so it is not part of the supported public API surface. It is referenced by no other documented packages in ETRM 12.2.2. Typical invocation is through Oracle EBS concurrent programs that expose SYNC_CTX and OPTIMIZE_CTX, scheduled during low-activity windows because full index optimization is resource-intensive. The errbuf/retcode signature confirms the concurrent-manager pattern; administrators monitoring a request that ends with a return code of 2 should inspect the truncated SQL error text supplied by the exception handler.
-
PACKAGE BODY: APPS.OKC_TEMPLATE_KEYWORD_PVT
12.1.1
-
PACKAGE BODY: APPS.OKC_TEMPLATE_KEYWORD_PVT
12.2.2
-
PACKAGE: APPS.INV_GEN_LOC_KFV
12.1.1
-
PACKAGE: APPS.INV_HV_TXN_PURGE
12.1.1
-
PACKAGE: APPS.INV_HV_TXN_PURGE
12.2.2
-
PACKAGE: APPS.INV_GEN_LOC_KFV
12.2.2
-
PACKAGE: APPS.INV_MO_PURGE
12.1.1
-
PACKAGE BODY: APPS.OKC_CHR_KEYWORD_PVT
12.1.1
-
PACKAGE BODY: APPS.OKC_CHR_KEYWORD_PVT
12.2.2
-
PACKAGE: APPS.INV_MO_PURGE
12.2.2
-
PACKAGE: APPS.INV_MGD_PRD_CONTROL_MEDIATOR
12.1.1
-
PACKAGE: APPS.INV_MGD_PRD_CONTROL_MEDIATOR
12.2.2
-
PACKAGE: APPS.INV_THIRD_PARTY_STOCK_CP
12.2.2
-
PACKAGE: APPS.INV_MGD_PURGE_CP
12.1.1
-
PACKAGE: APPS.INV_MGD_PURGE_CP
12.2.2
-
PACKAGE: APPS.INV_THIRD_PARTY_STOCK_CP
12.1.1
-
PACKAGE: APPS.INV_MGD_PERIOD_CONTROL_CP
12.1.1
-
PACKAGE: APPS.INV_MGD_PERIOD_CONTROL_CP
12.2.2
-
PACKAGE BODY: APPS.EGO_CHANGE_PEOPLE_IMPORT_PKG
12.2.2
-
PACKAGE BODY: APPS.EGO_CHANGE_PEOPLE_IMPORT_PKG
12.1.1
-
PACKAGE: APPS.EGO_ITEM_COMPARE_PKG
12.1.1
-
PACKAGE: APPS.EGO_ITEM_COMPARE_PKG
12.2.2
-
PACKAGE BODY: APPS.INV_MGD_PURGE_CP
12.1.1
-
PACKAGE BODY: APPS.INV_MGD_PURGE_CP
12.2.2
-
PACKAGE BODY: APPS.OKC_ARTICLE_KEYWORD_PVT
12.2.2
-
PACKAGE BODY: APPS.OKC_ARTICLE_KEYWORD_PVT
12.1.1
-
PACKAGE BODY: APPS.INV_MO_PURGE
12.1.1
-
PACKAGE BODY: APPS.EGO_ITEM_PEOPLE_IMPORT_PKG
12.1.1
-
PACKAGE BODY: APPS.INV_MO_PURGE
12.2.2
-
PACKAGE BODY: APPS.EGO_ITEM_PEOPLE_IMPORT_PKG
12.2.2
-
PACKAGE: APPS.WMS_PUTAWAY_SUGGESTIONS
12.1.1
-
PACKAGE: APPS.WMS_PUTAWAY_SUGGESTIONS
12.2.2
-
PACKAGE: APPS.EGO_ITEM_BULKLOAD_PKG
12.2.2
-
PACKAGE BODY: APPS.INV_GEN_LOC_KFV
12.1.1
-
PACKAGE: APPS.EGO_ITEM_BULKLOAD_PKG
12.1.1
-
PACKAGE: APPS.EGO_CHANGE_PEOPLE_IMPORT_PKG
12.2.2
-
PACKAGE: APPS.INV_ITEM_ORG_ASSIGN_CP
12.1.1
-
PACKAGE BODY: APPS.INV_GEN_LOC_KFV
12.2.2
-
PACKAGE: APPS.EGO_CHANGE_PEOPLE_IMPORT_PKG
12.1.1
-
PACKAGE: APPS.INV_ITEM_ORG_ASSIGN_CP
12.2.2
-
PACKAGE: APPS.EGO_ITEM_PEOPLE_IMPORT_PKG
12.1.1
-
PACKAGE: APPS.EGO_ITEM_PEOPLE_IMPORT_PKG
12.2.2
-
PACKAGE: APPS.INV_ITEM_ATTRIBUTES_PKG
12.1.1
-
PACKAGE: APPS.INV_ITEM_ATTRIBUTES_PKG
12.2.2
-
PACKAGE: APPS.CST_MGD_LIFO_COST_PROCESSOR
12.2.2
-
PACKAGE: APPS.CST_MGD_LIFO_COST_PROCESSOR
12.1.1
-
PACKAGE BODY: APPS.INV_HV_TXN_PURGE
12.1.1
-
PACKAGE BODY: APPS.INV_HV_TXN_PURGE
12.2.2
-
APPS.EGO_ITEM_PEOPLE_IMPORT_PKG SQL Statements
12.1.1
-
PACKAGE BODY: APPS.WMS_PUTAWAY_SUGGESTIONS
12.1.1