| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Implement the Oracle-compatible DBMS_MONITOR package in ivorysql_ora. The package provides subprograms for end-to-end application tracing, workload monitoring, and database diagnostics: - CLIENT_ID_STAT_ENABLE / CLIENT_ID_STAT_DISABLE: enables and disables statistics collection for a specific client_id. - CLIENT_ID_TRACE_ENABLE / CLIENT_ID_TRACE_DISABLE: enables and disables SQL tracing across sessions for a specific client_id. - SESSION_TRACE_ENABLE / SESSION_TRACE_DISABLE: toggles session SQL tracing with wait and bind variable instrumentation. - DATABASE_TRACE_ENABLE / DATABASE_TRACE_DISABLE: enables and disables instance-wide SQL tracing. - Monitoring catalog tables: sys.monitored_client_ids and sys.monitored_sessions. Security & compliance: - Revoke execute privilege on internal sys.dbms_monitor_* functions from PUBLIC to prevent authorization bypass (CWE-862). - Pure backend C implementation using SPI. - Wired into Makefile, meson.build, and ivorysql_ora_merge_sqls. - Comprehensive regression tests covering client_id statistics, client_id tracing, session tracing, database-wide tracing, and catalog ACL checks.
|
Thanks for contributing to IvorySQL! Could you please disclose whether AI was used for this contribution? If so, please include the approximate percentage and the model(s) used. |
Sorry, something went wrong.
|
Thanks for your contribution. According to the community rules, every PR must be linked to a corresponding issue (either an existing one or a new one created alongside this PR). Please add the issue associated with your PR. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
Implement the Oracle-compatible DBMS_MONITOR package in the ivorysql_ora extension. DBMS_MONITOR allows database administrators to control end-to-end application tracing, gather metrics by client identifier, and manage diagnostic tracing for sessions and database instances.
Key Features
Security & Governance
Test plan