oracle-dba-performance-tuning-diagnosticslisted
Install: claude install-skill Shreyas70773/oracle-dba-agentic-skills
# Oracle DBA - Performance Tuning & Diagnostics
Diagnose and (within safe tiers) remediate Oracle performance problems on Oracle
19c and 23ai (EE; single-instance and Data Guard; on-prem). Everything that
self-executes is **T1 (observe, read-only)** or **T2 (reversible, dry-run-default)**.
Every change that alters an execution plan, an optimizer/instance parameter, memory
sizing, or object structure is **T3** and lives only in `references/runbooks.md` —
it PRINTS commands for a human operator and never self-executes.
Routing: in-DB SQL/PLSQL runs as `sql/*.sql` through the SQLcl MCP `run-sql` on the
saved connection `dba_ai_conn` (mechanism `sqlcl-mcp`). Host-side report drivers and
gated mutators run as behaviour-equivalent `.sh`/`.ps1` (mechanism `script`). T3
remediation requires `require_approval_token` and a runbook. **When in doubt, runbook.**
## Scope & risk map
| Task | Level | Tier | Mechanism (script / sql / runbook path) | Idempotent? |
|------|-------|------|------------------------------------------|-------------|
| Performance issue triage / first response | L1 | T1 | `scripts/checks/perf_triage.sh` / `.ps1` + `sql/perf_triage.sql` | yes — read-only snapshot; surfaces findings, never acts |
| Scheduled optimizer stats gathering (autotask enable/disable) | L1 | T2 | `scripts/autotask_stats_set.sh` / `.ps1` + `sql/autotask_stats_set.sql` (`sql/autotask_stats_status.sql` audit) | yes — noop if already in desired state; flip via opposite `--state` |
| Manual sta