acedergren/oci-agent-skills/database-management
Claude Code and agent skill by acedergren/oci-agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Use when creating Autonomous Databases, troubleshooting connection failures, managing PDBs, or optimizing database costs. Covers connection string confusion, password validation errors, stop/start cost traps, clone type selection, and backup retention gotchas.
Install
npx vskill@latest install acedergren/oci-agent-skills/database-managementSKILL.md
OCI Database Management - Expert Knowledge
ποΈ Use OCI Landing Zone Terraform Modules
Don't reinvent the wheel. Use oracle-terraform-modules/landing-zone for database infrastructure.
Landing Zone solves:
- β Bad Practice #4: Poor network segmentation (Landing Zone isolates database tier)
- β Bad Practice #9: Public database endpoints (Security Zones enforce private subnets)
- β Bad Practice #10: No monitoring (Landing Zone auto-configures database alarms)
This skill provides: ADB operations, troubleshooting, and cost optimization for databases deployed WITHIN a Landing Zone.
β οΈ OCI CLI/API Knowledge Gap
You don't know OCI CLI commands or OCI API structure.
Your training data has limited and outdated knowledge of:
- OCI CLI syntax and parameters (updates monthly)
- OCI API endpoints and request/response formats
- Database service CLI operations (
oci db autonomous-database) - Wallet configuration and connection string formats
- Latest ADB features (23ai, 26ai) and API changes
When OCI operations are needed:
- Use exact CLI commands from skill references
- Do NOT guess OCI CLI syntax or parameters
- Do NOT assume API endpoint structures
- Load oracle-dba skill for detailed ADB operations
What you DO know:
- Oracle Database internals (SQL, PL/SQL)
- General database administration principles
- Connection pooling and HA concepts
This skill bridges the gap by providing current OCI-specific database operations.
You are an OCI Database expert. This skill provides knowledge Claude lacks: connection string gotchas, cost traps, backup/clone patterns, PDB management mistakes, and ADB-specific operational knowledge.
NEVER Do This
β NEVER use wrong connection service name (performance/cost impact)
Cost impact: Using HIGH vs LOW for 24/7 connection pool: $220/month vs $73/month wasted (3x)
β NEVER assume stopped database = zero cost
β NEVER ignore password complexity (ALWAYS fails)
β NEVER confuse clone types (performance/cost consequences)
Cost trap: Full clone for testing = $500/month vs $150/month for refreshable clone (70% savings)
β NEVER delete CDB without checking PDBs first
β NEVER use ADMIN user in application code (security risk)
β NEVER forget Always-Free limits (scale-up fails)
Connection String Gotchas
Wallet Connection Failure Decision Tree
Service Name Selection (Cost vs Performance)
| Service | CPU Allocation | Concurrency | Cost | Use For | |
|---|---|---|---|---|---|
| HIGH | Dedicated OCPU | 1Γ OCPU count | 3Γ base | OLTP critical transactions, interactive queries | |
| MEDIUM | Shared OCPU | 2Γ OCPU count | 1Γ base | Batch jobs, reporting, most apps | |
| LOW | Most sharing | 3Γ OCPU count | 1Γ base | Background tasks, data loads |
Example: 2 OCPU ADB
- HIGH: 2 concurrent queries max, $584/month
- MEDIUM: 4 concurrent queries, $584/month
- LOW: 6 concurrent queries, $584/month (same cost, more concurrency)
Gotcha: HIGH doesn't cost more in ADB pricing, but uses more OCPU-hours if you scale based on load.
Cost Optimization with Exact Calculations
Stop vs Scale Down Decision
Scenario: Development ADB, 2 OCPUs, 1 TB storage, used 8 hrs/day weekdays only
Option 1: Stop when not in use (16 hrs/day + weekends)
Option 2: Scale to 1 OCPU always-on
Winner: Stop/start saves $139/month (48% savings)
License Model Impact
| Model | Cost | Use When | |
|---|---|---|---|
| License Included | $0.36/OCPU-hr | No existing licenses | |
| BYOL | $0.18/OCPU-hr | Have Oracle DB licenses (50% off) |
Scenario: 4 OCPU ADB, 24/7 production
- License Included: $0.36 Γ 4 Γ 730 = $1,051/month
- BYOL: $0.18 Γ 4 Γ 730 = $526/month
- Savings: $525/month ($6,300/year) if you have licenses
Gotcha: BYOL requires proof of licenses if audited
Auto-Scaling Cost Control
Best practice: Set max OCPU = 2Γ baseline to control costs (2 OCPU β max 4 OCPU)
Backup and Clone Patterns
Automatic vs Manual Backup Retention
Automatic backups (free):
- Retention: 60 days default (configurable 1-60 days)
- Frequency: Daily incremental
- Cost: Included in ADB storage cost
- Gotcha: Deleting ADB deletes automatic backups after retention period
Manual backups:
- Retention: Until you delete them
- Cost: $0.025/GB/month (same as storage)
- Use case: Long-term retention (compliance, legal hold)
Cost trap:
Clone vs Refreshable Clone Decision
| Full Clone | Refreshable Clone | ||
|---|---|---|---|
| Use case | Permanent dev copy | Test env needing prod data | |
| Cost | 100% of source ADB | ~30% (storage only) | |
| Refresh | Cannot refresh | Manual refresh from source | |
| When source deleted | Clone survives | Clone auto-deleted | |
| Editable | Yes | Yes (but refresh overwrites) |
Gotcha: Refreshable clone deleted when source ADB deleted - no warning!
Best practice:
- Dev environment (permanent): Full clone
- QA environment (weekly prod refresh): Refreshable clone
- Before prod migration: Full clone (survives source deletion)
PDB Management Gotchas
Hierarchy confusion:
Critical: PDB connection string uses CDB host but PDB service name
PDB lifecycle gotcha: Unplugging PDB doesn't delete data
Progressive Loading References
OCI Database Cloud Service CLI
WHEN TO LOAD `oci-dbcs-cli.md`:
- Creating or managing DB Systems (VM, RAC, Exadata)
- Configuring Data Guard for disaster recovery
- Patching and maintenance operations
- Backup and recovery procedures
- ExaDB-D and ExaDB-C@C operations
Do NOT load for:
- Autonomous Database operations (use oracle-dba skill)
- Connection troubleshooting (decision tree above)
- Cost calculations (tables above)
Official Oracle Documentation Sources
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/database-management/SKILL.md
Popularity
- Repository stars
- 5
- Repository forks
- 3
- 7-day trend score
- 9
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 28 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/acedergren/oci-agent-skills/database-management)