MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Migrating-Oracle-To-Postgres-Stored-Procedures

Migrating-Oracle-To-Postgres-Stored-Procedures是一款code方向的AI技能,核心价值是Migrates Oracle PL/SQL stored procedures to PostgreSQL PL/pgSQL,可用于解决开发者在code领域的实际问题,帮助用户提升效率、自动化重复任务或优化工作流。

Migrates Oracle PL/SQL stored procedures to PostgreSQL PL/pgSQL. Translates Oracle-specific syntax, preserves method signatures and type-anchored parameters, leverages orafce where appropriate, and ap

Last verified on: 2026-05-30
mkdir -p ./skills/migrating-oracle-to-postgres-stored-procedures && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/migrating-oracle-to-postgres-stored-procedures/SKILL.md -o ./skills/migrating-oracle-to-postgres-stored-procedures/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# Migrating Stored Procedures from Oracle to PostgreSQL


Translate Oracle PL/SQL stored procedures and functions to PostgreSQL PL/pgSQL equivalents.


Workflow


text
Progress:
- [ ] Step 1: Read the Oracle source procedure
- [ ] Step 2: Translate to PostgreSQL PL/pgSQL
- [ ] Step 3: Write the migrated procedure to Postgres output directory

**Step 1: Read the Oracle source procedure**


Read the Oracle stored procedure from `.github/oracle-to-postgres-migration/DDL/Oracle/Procedures and Functions/`. Consult the Oracle table/view definitions at `.github/oracle-to-postgres-migration/DDL/Oracle/Tables and Views/` for type resolution.


**Step 2: Translate to PostgreSQL PL/pgSQL**


Apply these translation rules:


- Translate all Oracle-specific syntax to PostgreSQL equivalents.

- Preserve original functionality and control flow logic.

- Keep type-anchored input parameters (e.g., `PARAM_NAME IN table_name.column_name%TYPE`).

- Use explicit types (`NUMERIC`, `VARCHAR`, `INTEGER`) for output parameters passed to other procedures — do not type-anchor these.

- Do not alter method signatures.

- Do not prefix object names with schema names unless already present in the Oracle source.

- Leave exception handling and rollback logic unchanged.

- Do not generate `COMMENT` or `GRANT` statements.

- Use `COLLATE "C"` when ordering by text fields for Oracle-compatible sorting.

- Leverage the `orafce` extension when it improves clarity or fidelity.


Consult the PostgreSQL table/view definitions at `.github/oracle-to-postgres-migration/DDL/Postgres/Tables and Views/` for target schema details.


**Step 3: Write the migrated procedure to Postgres output directory**


Place each migrated procedure in its own file under `.github/oracle-to-postgres-migration/DDL/Postgres/Procedures and Functions/{PACKAGE_NAME_IF_APPLICABLE}/`. One procedure per file.

🎯 Best For

  • Claude users
  • GitHub Copilot users
  • Software engineers
  • Development teams
  • Tech leads

💡 Use Cases

  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude or GitHub Copilot and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Migrating-Oracle-To-Postgres-Stored-Procedures to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Is Migrating-Oracle-To-Postgres-Stored-Procedures compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Migrating-Oracle-To-Postgres-Stored-Procedures?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Migrating-Oracle-To-Postgres-Stored-Procedures?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/migrating-oracle-to-postgres-stored-procedures/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills