Oracle Database

Provides Oracle Database conventions for data types, sequences, PL/SQL, partitioning, and performance tuning.

Updated May 12, 2026
One-click install
npx skills add https://github.com/ZzZueszZ/claude-kit --skill oracle-database-zzzueszz
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Oracle Database
Source: https://github.com/ZzZueszZ/claude-kit/tree/main/.claude/skills/oracle-database
Command: npx skills add https://github.com/ZzZueszZ/claude-kit --skill oracle-database-zzzueszz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with Oracle Database requires knowing its specific conventions that differ from other databases, such as using VARCHAR2 instead of VARCHAR, choosing between IDENTITY columns and sequences, and writing correct PL/SQL. This Skill gives you a complete reference of Oracle-specific best practices so you avoid common mistakes and write idiomatic, performant database code. ## Core Features & Use Cases - Data Type & Schema Guidance: Covers VARCHAR2, NUMBER precision for currency, DATE vs TIMESTAMP, CLOB/BLOB, and JSON columns with correct CREATE TABLE patterns. - PL/SQL & Sequences: Provides templates for stored procedures, functions, packages, triggers, IDENTITY columns, and bulk operations with FORALL and BULK COLLECT. - Performance & Administration: Explains partitioning strategies (range, list, hash), optimizer hints, DBMS_STATS statistics gathering, and tablespace management. - Use Case: When building a Spring Boot application backed by Oracle, use this Skill to generate a correctly typed JPA entity, configure HikariCP for Oracle, and write a partitioned orders table with proper indexes. ## Quick Start Ask the AI to design an Oracle table schema with proper data types, an IDENTITY primary key, and range partitioning for a high-volume orders table.

Frequently Asked Questions about Oracle Database

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create auto-increment primary keys in Oracle Database?▼

Use GENERATED BY DEFAULT AS IDENTITY on a NUMBER column in Oracle 12c and later. For Oracle 11g, create a sequence with CREATE SEQUENCE and reference it via NEXTVAL in inserts or a BEFORE INSERT trigger.

What is the difference between VARCHAR and VARCHAR2 in Oracle?▼

VARCHAR2 is the recommended variable-length string type in Oracle with well-defined behavior, while VARCHAR is reserved and may change semantics in future versions. Always use VARCHAR2 for string columns.

When should I partition a table in Oracle?▼

Partition when a table exceeds roughly 10 million rows or 2GB, when queries consistently filter on the partition key, or when you need fast data purging via DROP PARTITION. Range partitioning on date columns is the most common approach.

How do I map Oracle data types to JPA entities in Spring Boot?▼

Map NUMBER to Long or BigDecimal, VARCHAR2 to String, DATE to LocalDate, TIMESTAMP to LocalDateTime, and CLOB to String with @Lob. Use GenerationType.IDENTITY for Oracle identity columns and set the OracleDialect in Hibernate.

Why is my Oracle query slow even with an index?▼

Stale optimizer statistics often cause poor execution plans, so run DBMS_STATS.GATHER_TABLE_STATS first. Verify the plan with an execution plan review, and only add hints like INDEX or PARALLEL after confirming the optimizer chose poorly.