# Oracle

> Oracle Database with PL/SQL, RAC, and enterprise features. Use for enterprise systems.

- Skill: `g1joshi/oracle` (Agent Skill)
- Install (CLI): `npx skillmds@latest add g1joshi/oracle`
- Raw SKILL.md: https://api.skillmd.com/api/skills/g1joshi/oracle/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: G1Joshi (https://skillmd.com/u/g1joshi)
- Updated: 2026-09-10
- Page: https://skillmd.com/skills/g1joshi/oracle

---


# Oracle Database

Oracle Database is a multi-model database management system. It is the de-facto standard for Fortune 500 mission-critical systems due to its reliability, scalability (RAC), and PL/SQL power.

## When to Use

- **Mission Critical**: Banking, Airlines, Telecoms where 99.999% uptime is required.
- **PL/SQL**: When you have massive business logic that needs to run close to the data.
- **Complex Workloads**: OLTP and OLAP in the same DB.

## Quick Start

```sql
-- Implicit cursor loop in PL/SQL
BEGIN
  FOR r IN (SELECT first_name, last_name FROM employees WHERE department_id = 10)
  LOOP
    DBMS_OUTPUT.PUT_LINE(r.first_name || ' ' || r.last_name);
  END LOOP;
END;
/
```

## Core Concepts

### PL/SQL

Procedural Language/SQL. Extremely mature and powerful language stored within the DB.

### RAC (Real Application Clusters)

Allows multiple servers to access the same database storage simultaneously. If one server fails, the others keep running (High Availability).

### Multi-Tenant (CDB/PDB)

One Container Database (CDB) hosts multiple Pluggable Databases (PDBs). Efficient resource sharing.

## Best Practices (2025)

**Do**:

- **Use Oracle 23ai**: Leverage "JSON Relational Duality" to view the same data as both Tables and JSON Documents simultaneously.
- **Use Tuning Advisor**: Oracle's automated tuning tools are excellent.
- **Use Flashback**: Query data "as of" a timestamp in the past to recover from accidental logical errors.

**Don't**:

- **Don't commit in loops**: It kills IO. Commit once at the end.
- **Don't treat it like MySQL**: Oracle's architecture (Redo, Undo, Shared Pool) is heavier and requires specific tuning.

## References

- [Oracle Database 23ai Documentation](https://docs.oracle.com/en/database/oracle/oracle-database/)

