sql-extract-ddl-oracle-mcp

Export Oracle schema DDL via MCP into Flyway-compatible SQL migrations.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/diegolirio/ai-showcase-skills --skill sql-extract-ddl-oracle-mcp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-extract-ddl-oracle-mcp
Source: https://github.com/diegolirio/ai-showcase-skills/tree/main/skills/sql-extract-ddl-oracle-mcp
Command: npx skills add https://github.com/diegolirio/ai-showcase-skills --skill sql-extract-ddl-oracle-mcp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates extracting a complete Oracle schema DDL via MCP and converts it into Flyway-compatible SQL migrations, enabling reproducible database deployment and versioning across environments.

Core Features & Use Cases

  • Extracts all DDL objects (types, sequences, tables, views, indexes, triggers, procedures, functions, packages, synonyms) in a dependency-safe order suitable for clean-schema migrations.
  • Writes migrations to migrations-staging/ with Flyway-style filenames and 1000-line split rules, ensuring manageable deployment units.
  • Produces only SQL migration files (no scripts or non-SQL artifacts), ready for integration into CI/CD pipelines.

Quick Start

Run the skill to export all DDLs from your Oracle schema as Flyway-compatible migrations into migrations-staging.

Frequently Asked Questions about sql-extract-ddl-oracle-mcp

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

FAQPage Schema
How do I export an Oracle schema DDL to Flyway migrations?

To export Oracle schema DDL to Flyway migrations, extract all DDL objects via MCP and write them to migrations-staging with Flyway-style filenames. The process normalizes DDL by stripping schema qualifiers and ordering objects dependency-safe for clean-schema deployment.

What is the best way to reverse engineer an Oracle database into version-controlled SQL?

Reverse engineering an Oracle database into version-controlled SQL involves extracting all schema objects and converting them into Flyway-compatible migration files. This approach normalizes DDL by adding tablespaces and ordering objects to ensure safe, reproducible deployments across environments.

Does this Oracle DDL extraction process handle dependencies like triggers and packages?

Yes, Oracle DDL extraction handles dependencies by extracting types, sequences, tables, views, indexes, triggers, procedures, functions, packages, and synonyms. It orders all objects in a dependency-safe sequence to ensure clean-schema migrations without deployment errors.

Can I use MCP to generate a portable database baseline from an existing Oracle schema?

Yes, you can use MCP to generate a portable database baseline from an existing Oracle schema. The extraction outputs Flyway-compatible SQL migrations into migrations-staging, applying 1000-line split rules to create manageable deployment units for CI/CD integration.

Why does my Oracle DDL migration fail due to schema qualifiers and tablespaces?

Oracle DDL migrations often fail due to hardcoded schema qualifiers and missing tablespaces. The extraction process normalizes DDL by stripping schema qualifiers and adding standard tablespaces, ensuring the generated Flyway migrations deploy safely across different environments.

What limitations exist when generating Flyway migrations from an Oracle schema?

A limitation of generating Flyway migrations from Oracle schema is that the output is restricted to SQL migration files only, producing no scripts or non-SQL artifacts. Migrations are written to migrations-staging with 1000-line split rules for manageable deployment units.