Search Results sql_statement_name




Overview

The BOM_DELETE_SQL_STATEMENTS table is a core repository for SQL statements that govern the validation and deletion of entities within the Bills of Material (BOM) module of Oracle E-Business Suite. It functions as a control table for the BOM entity deletion process, ensuring data integrity by storing the specific SQL logic used to check for dependencies and perform deletions. Its role is critical during operations such as deleting a bill, component, or routing, as it centralizes the business rules that prevent orphaned records and maintain referential integrity across the complex BOM data model.

Key Information Stored

The table organizes its data using a composite key structure to uniquely identify and sequence the SQL operations. The primary columns include SQL_STATEMENT_NAME, which serves as the unique identifier for a given deletion rule. The SQL_STATEMENT_TYPE categorizes the statement's purpose, typically distinguishing between validation checks and actual delete operations. The DELETE_ENTITY_TYPE specifies the BOM entity, such as a bill or component, to which the statement applies. Finally, the SEQUENCE_NUMBER dictates the precise execution order of multiple statements for a single entity type, which is essential for a logically sound deletion process.

Common Use Cases and Queries

The primary use case is the execution of the BOM entity deletion programs, such as those invoked from the BOM forms or concurrent requests. Administrators may query this table to audit or troubleshoot deletion failures. A common query pattern involves listing all validation and deletion steps for a specific entity to understand the process flow:

  • SELECT sql_statement_name, sql_statement_type, sequence_number FROM bom.bom_delete_sql_statements WHERE delete_entity_type = 'BILL' ORDER BY sequence_number;

Another critical scenario involves investigating errors logged during deletion. By joining with the BOM_DELETE_ERRORS table, one can identify which specific validation or delete rule caused a failure, providing direct insight into the data dependency that blocked the operation.

Related Objects

The table has a direct, documented relationship with the BOM_DELETE_ERRORS table, which logs failures from the execution of the SQL statements stored here. The foreign key relationship is defined as BOM_DELETE_ERRORS.SQL_STATEMENT_NAME referencing BOM_DELETE_SQL_STATEMENTS.SQL_STATEMENT_NAME. This means the SQL_STATEMENT_NAME column is the primary key for BOM_DELETE_SQL_STATEMENTS and is used to link specific errors back to the exact rule that generated them. No other foreign key relationships are documented in the provided metadata, indicating this table is a master source for deletion logic consumed by internal BOM deletion engines and the error logging mechanism.