/SKILL.md
Oracle DBA and DevOps expertise for Autonomous Database (ADB) on OCI. This skill should be used when managing Oracle Autonomous Databases, writing optimized SQL/PLSQL, configuring security (TDE, Database Vault, Data Safe), implementing HA/DR (Data Guard, PITR), using OCI CLI for database operations, or integrating with Oracle MCP servers for AI-assisted database management. Covers Oracle Database versions 19c, 21c, 23ai, and 26ai.
npx skillsauth add acedergren/oracle-dba-skill oracle-dbaInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Expert Oracle Database administration and DevOps engineering for Autonomous Database (ADB) on Oracle Cloud Infrastructure.
This skill provides comprehensive guidance for:
# Using wallet
sql admin@charlstn_high?TNS_ADMIN=/path/to/wallet
# Using Cloud Shell (no wallet needed)
sql -cloudconfig wallet.zip admin@adb_name_high
# List Autonomous Databases
oci db autonomous-database list --compartment-id $C
# Start/Stop ADB
oci db autonomous-database start --autonomous-database-id $ADB_ID
oci db autonomous-database stop --autonomous-database-id $ADB_ID
# Scale ECPU
oci db autonomous-database update --autonomous-database-id $ADB_ID \
--compute-count 4
# Create manual backup
oci db autonomous-database-backup create \
--autonomous-database-id $ADB_ID \
--display-name "pre-upgrade-backup"
-- Always use bind variables
SELECT * FROM users WHERE id = :user_id;
-- Use FETCH FIRST (not LIMIT)
SELECT * FROM orders ORDER BY created_at DESC FETCH FIRST 10 ROWS ONLY;
-- Vector similarity search (26ai)
SELECT id, content, VECTOR_DISTANCE(embedding, :query_vec, COSINE) AS score
FROM documents
ORDER BY score
FETCH FIRST 5 ROWS ONLY;
This skill integrates with three Oracle MCP servers for AI-assisted database operations:
Enables AI agents to execute SQL queries and manage database connections.
Key Tools:
| Tool | Purpose |
|------|---------|
| list-connections | List available database connections |
| connect | Connect to a database |
| run-sql | Execute SQL statements |
| schema-information | Get schema metadata |
Usage Pattern:
1. Call list-connections to see available connections
2. Call connect with connection name
3. Call run-sql to execute queries
4. Call disconnect when done
Comprehensive database management through MCP tools.
Tool Categories:
Search official Oracle documentation from within AI conversations.
Tool:
| Tool | Purpose |
|------|---------|
| search_oracle_database_documentation | Search Oracle docs by phrase |
Database Task Required
├── Performance Issue?
│ ├── Slow Query → references/sql-patterns.md (query optimization)
│ ├── High CPU/Wait → AWR/ADDM analysis via MCP tools
│ └── Scaling Needed → OCI CLI scale commands
├── Security Task?
│ ├── Encryption → references/adb-security.md (TDE)
│ ├── Access Control → Database Vault, Label Security
│ └── Auditing → Unified Audit, Data Safe
├── HA/DR Task?
│ ├── Standby Setup → references/adb-ha-dr.md (Autonomous Data Guard)
│ ├── Backup/Restore → Automatic backups, PITR (95 days)
│ └── Failover → Switchover/Failover procedures
└── Development Task?
├── SQL Query → references/sql-patterns.md
├── Vector Search → DBMS_VECTOR, AI Vector Search
└── JSON Processing → JSON Relational Duality
| Feature | 19c | 21c | 23ai | 26ai | |---------|-----|-----|------|------| | JSON Duality | - | - | ✓ | ✓ | | AI Vector Search | - | - | ✓ | ✓ | | JavaScript Stored Procs | - | - | - | ✓ | | Select AI | - | - | ✓ | ✓ | | Property Graphs | - | ✓ | ✓ | ✓ | | True Cache | - | - | - | ✓ |
-- Find top SQL by elapsed time (last hour)
SELECT sql_id, elapsed_time/1000000 AS elapsed_sec, executions,
ROUND(elapsed_time/executions/1000,2) AS avg_ms
FROM v$sql
WHERE executions > 0 AND last_active_time > SYSDATE - 1/24
ORDER BY elapsed_time DESC
FETCH FIRST 10 ROWS ONLY;
-- Check session wait events
SELECT event, total_waits, time_waited_micro/1000000 AS wait_sec
FROM v$system_event
WHERE wait_class != 'Idle'
ORDER BY time_waited_micro DESC
FETCH FIRST 10 ROWS ONLY;
-- Generate AWR report (requires DBA privilege)
SELECT * FROM TABLE(DBMS_WORKLOAD_REPOSITORY.AWR_REPORT_HTML(
l_dbid => (SELECT dbid FROM v$database),
l_inst_num => 1,
l_bid => :begin_snap_id,
l_eid => :end_snap_id
));
-- Enable TDE for tablespace (auto-enabled in ADB)
ALTER TABLESPACE users ENCRYPTION USING 'AES256' ENCRYPT;
-- Create read-only user
CREATE USER report_user IDENTIFIED BY :password;
GRANT CREATE SESSION TO report_user;
GRANT SELECT ON schema.table TO report_user;
-- Enable unified auditing for schema
CREATE AUDIT POLICY audit_sales_schema
ACTIONS ALL ON sales.orders, ALL ON sales.customers;
AUDIT POLICY audit_sales_schema;
# Restore to point in time (OCI Console or CLI)
oci db autonomous-database restore \
--autonomous-database-id $ADB_ID \
--timestamp "2024-01-15T10:30:00Z"
# Create refreshable clone
oci db autonomous-database create-clone \
--source-autonomous-database-id $SOURCE_ID \
--compartment-id $C \
--clone-type REFRESHABLE_CLONE \
--db-name "dev_clone" \
--display-name "Development Clone"
dbaascli --skip_patch_check trueFor detailed reference information, see:
references/mcp-tools.md - Complete MCP server tool catalogreferences/oci-cli.md - OCI CLI commands for Autonomous Databasereferences/adb-security.md - Security configuration (TDE, Vault, Data Safe)references/adb-ha-dr.md - High availability and disaster recoveryreferences/sql-patterns.md - SQL/PLSQL patterns optimized for ADBtools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.