Skip to content

Commit bb47c19

Browse files
committed
Updating readme and change log
1 parent 95b8523 commit bb47c19

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.chloggen/oracledb_enhanced_plan_details.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ issues: [49329]
1616
# These lines will be padded with 2 spaces and then inserted directly into the document.
1717
# Use pipe (|) for multiline entries.
1818
subtext: |
19-
The Oracle DB collector now retrieves SQL execution plan details from V$SQL_PLAN_STATISTICS_ALL instead of V$SQL_PLAN,enabling collection of additional runtime execution statistics
19+
This change requires the collector user to have access to V$SQL_PLAN_STATISTICS_ALL. Existing deployments that only grant access to V$SQL_PLAN
20+
may experience query plan collection failures until the appropriate privileges are granted.
21+
22+
SQL query plan details are now retrieved from V$SQL_PLAN_STATISTICS_ALL instead of V$SQL_PLAN. Since V$SQL_PLAN_STATISTICS_ALL is a superset of V$SQL_PLAN,
23+
this change is backward compatible with respect to the emitted plan detail fields while enabling collection of additional runtime execution statistics,
2024
including OUTPUT_ROWS, LAST_OUTPUT_ROWS, LAST_ELAPSED_TIME, LAST_CR_BUFFER_GETS, LAST_CU_BUFFER_GETS, STARTS, and LAST_STARTS.
21-
This change is backward compatible in terms of emitted plan detail fields because V$SQL_PLAN_STATISTICS_ALL is a superset of V$SQL_PLAN; however, it may require additional database privileges.
22-
Users must ensure the collector user has access to V$SQL_PLAN_STATISTICS_ALL, otherwise query plan collection may fail.
2325
2426
# If your change doesn't affect end users or the exported elements of any package,
2527
# you should instead start your pull request title with [chore] or use the "Skip Changelog" label.

receiver/oracledbreceiver/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ GRANT SELECT ON DBA_PROCEDURES TO <username>;
120120
```
121121

122122
> [!NOTE]
123-
> In the SQL query plan details, the `LAST_*`, `OUTPUT_ROWS`, and `STARTS` columns are populated only when Oracle is configured to collect execution plan statistics (for example, `STATISTICS_LEVEL=ALL` or the `GATHER_PLAN_STATISTICS` hint). Otherwise, these fields will be `NULL` or empty. Enabling this Oracle instrumentation may introduce additional runtime overhead.
123+
> In the SQL query plan details, the LAST_*, OUTPUT_ROWS, and STARTS columns are populated only when Oracle is configured to collect execution plan statistics (for example, STATISTICS_LEVEL=ALL or the GATHER_PLAN_STATISTICS hint). Otherwise, these fields will be NULL or empty. Configuring this Oracle instrumentation may introduce additional runtime overhead. Enable it only if you need these runtime execution statistics for query performance analysis.
124124

125125
```sql
126126
ALTER SYSTEM SET statistics_level = ALL;

0 commit comments

Comments
 (0)