oracle-dba-routine-maintenancelisted
Install: claude install-skill Shreyas70773/oracle-dba-agentic-skills
# Oracle DBA - Routine Maintenance
Housekeeping that keeps a database healthy: recompiling invalid objects, purging
diagnostic files and history (trace/alert, recyclebin, AWR, stats history, audit
trail), the standard health-check report, sequence-cache tuning, and the reversible
side of index / partition / materialized-view maintenance — for Oracle 19c and 23ai
(EE; single-instance and Data Guard; on-prem). Everything self-executing here is
**T1 (observe, read-only)** or **T2 (reversible, dry-run-default)**. **Structural**
changes — partition `SPLIT`/`MERGE`/`DROP`/`EXCHANGE`, index `DROP`/`UNUSABLE`/
partition-level rebuild, and large segment/table moves (online redefinition / shrink)
— are **T3** and live only in `references/runbooks.md`; they print commands for a human
and never self-execute.
In-DB tasks run their SQL through the SQLcl MCP saved connection `dba_ai_conn`
("sqlcl-mcp" routing) via the `connect_db` / `Connect-Db` helper. The single host/OS
task (ADR file purge) cannot go through SQLcl MCP (host commands are out of scope for
that server, restrict level 4) so it runs as a generated `.sh`/`.ps1` ("script"
routing, a candidate to later front the guarded `oracle-dba-ops` MCP).
## Scope & risk map
| Task | Level | Tier | Mechanism (script / sql / runbook path) | Idempotent? |
|------|-------|------|------------------------------------------|-------------|
| Recompile invalid objects (utlrp / UTL_RECOMP) | L1 | T2 | `scripts/recompile_invalid.sh` / `.ps1` -> `s