Search Results audit
The MSD_AUDIT_SQL_STATEMENTS table in Oracle E-Business Suite (EBS) versions 12.1.1 and 12.2.2 is a critical repository for auditing SQL statements executed within the system. This table is part of the Oracle Diagnostics framework, specifically designed to capture and store SQL execution details for performance monitoring, troubleshooting, and compliance purposes. Below is a detailed analysis of its structure, purpose, and relevance in Oracle EBS environments.
Purpose and Context
The MSD_AUDIT_SQL_STATEMENTS table serves as a centralized audit log for SQL statements executed in Oracle EBS. It is primarily used by Oracle Diagnostics and Monitoring tools to track SQL performance, identify bottlenecks, and ensure adherence to security policies. This table is particularly useful for DBAs and functional consultants who need to analyze query execution patterns, optimize performance, or investigate unauthorized access.Table Structure
The table contains columns that capture comprehensive metadata about executed SQL statements, including but not limited to:- SQL_ID: A unique identifier for the SQL statement, derived from its hash value.
- SQL_TEXT: The actual SQL query text, often truncated for very long statements.
- EXECUTIONS: The number of times the SQL statement has been executed.
- ELAPSED_TIME: Total time taken by all executions of the SQL statement.
- MODULE: The application or module (e.g., Oracle Forms, Concurrent Manager) that executed the SQL.
- ACTION: A more granular identifier for the operation, such as a specific form or report.
- LAST_ACTIVE_TIME: The timestamp of the most recent execution.
- USERNAME: The database user who executed the SQL statement.
Key Use Cases
- Performance Tuning: By analyzing high-elapsed-time queries, DBAs can identify and optimize poorly performing SQL statements.
- Security Auditing The table helps track unauthorized or suspicious SQL activities, such as ad-hoc queries against sensitive tables.
- Compliance Reporting Organizations can generate audit reports to demonstrate compliance with regulatory requirements like SOX or GDPR.
- Troubleshooting Functional consultants can correlate SQL executions with application errors to diagnose issues.
Integration with Oracle EBS
In Oracle EBS 12.1.1 and 12.2.2, the MSD_AUDIT_SQL_STATEMENTS table is populated by the Oracle Diagnostics framework, which hooks into the database layer to capture SQL activity. It integrates with tools like Oracle Application Manager (OAM) and Automatic Workload Repository (AWR) to provide a holistic view of system performance. The table is often queried in conjunction with other diagnostic tables like MSD_AUDIT_SQL_BINDS or MSD_AUDIT_SQL_PLANS for deeper analysis.Maintenance Considerations
Given its audit nature, the MSD_AUDIT_SQL_STATEMENTS table can grow rapidly in high-transaction environments. Oracle provides purging mechanisms, such as the FND_CONCURRENT_REQUESTS program, to manage table size. DBAs should schedule regular purges to prevent excessive storage consumption.Conclusion
The MSD_AUDIT_SQL_STATEMENTS table is an indispensable component of Oracle EBS diagnostics and auditing. Its structured data enables efficient performance monitoring, security enforcement, and compliance reporting. Proper utilization of this table can significantly enhance the stability and security of Oracle EBS deployments in versions 12.1.1 and 12.2.2.-
Lookup Type: MSD_AUDIT_REPORT
12.1.1
product: MSD - Demand Planning , meaning: MSD_AUDIT_REPORT , description: Audit Report Lookup Type ,
-
Lookup Type: MSD_AUDIT_REPORT
12.2.2
product: MSD - Demand Planning , meaning: MSD_AUDIT_REPORT , description: Audit Report Lookup Type ,
-
Concurrent Program: MSDAUDM
12.2.2
execution_filename: MSD_COMMON_UTILITIES.audit_measures , product: MSD - Demand Planning , user_name: MSDAUDM , description: Audit Measures Program , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Lookup Type: MSD_AUD_APP_LK
12.1.1
product: MSD - Demand Planning , meaning: Audit Application Type ,
-
Lookup Type: MSD_AUD_APP_LK
12.2.2
product: MSD - Demand Planning , meaning: Audit Application Type ,
-
Concurrent Program: MSDVALE
12.2.2
execution_filename: msd_validate.run_validation , product: MSD - Demand Planning , user_name: MSDVALE , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Concurrent Program: MSDVALEALL
12.1.1
execution_filename: msd_validate.run_validation_all , product: MSD - Demand Planning , user_name: MSDVALEALL , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Lookup Type: MSD_AUD_REP_TYPE_LK
12.2.2
product: MSD - Demand Planning , meaning: Audit Report Type ,
-
Concurrent Program: MSDVALEALL
12.2.2
execution_filename: msd_validate.run_validation_all , product: MSD - Demand Planning , user_name: MSDVALEALL , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Concurrent Program: MSDVALE
12.1.1
execution_filename: msd_validate.run_validation , product: MSD - Demand Planning , user_name: MSDVALE , argument_method: Standard , enabled: Yes , execution_method: PL/SQL Stored Procedure ,
-
Lookup Type: MSD_AUD_REP_TYPE_LK
12.1.1
product: MSD - Demand Planning , meaning: Audit Report Type ,
-
Table: MSD_AUDIT_SQL_STATEMENTS
12.1.1
owner:MSD, object_type:TABLE, fnd_design_data:MSD.MSD_AUDIT_SQL_STATEMENTS, object_name:MSD_AUDIT_SQL_STATEMENTS, status:VALID, product: MSD - Demand Planning , description: This table forms the basis for the Audit Statements architecture. Each row can be interpreted as a valid sql query. A concurrent program picks up selective queries from this table (based on FUNCTION and APPLICATION_CODE), runs them, and l , implementation_dba_data: MSD.MSD_AUDIT_SQL_STATEMENTS ,
-
Table: MSD_AUDIT_SQL_STATEMENTS
12.2.2
owner:MSD, object_type:TABLE, fnd_design_data:MSD.MSD_AUDIT_SQL_STATEMENTS, object_name:MSD_AUDIT_SQL_STATEMENTS, status:VALID, product: MSD - Demand Planning , description: This table forms the basis for the Audit Statements architecture. Each row can be interpreted as a valid sql query. A concurrent program picks up selective queries from this table (based on FUNCTION and APPLICATION_CODE), runs them, and l , implementation_dba_data: MSD.MSD_AUDIT_SQL_STATEMENTS ,
-
View: MSD_CS_DATA_V1
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:MSD.MSD_CS_DATA_V1, object_name:MSD_CS_DATA_V1, status:VALID, product: MSD - Demand Planning , description: This view is for Audit report , implementation_dba_data: APPS.MSD_CS_DATA_V1 ,
-
View: MSD_CS_DATA_V1
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:MSD.MSD_CS_DATA_V1, object_name:MSD_CS_DATA_V1, status:VALID, product: MSD - Demand Planning , description: This view is for Audit report , implementation_dba_data: APPS.MSD_CS_DATA_V1 ,