跳到正文
Skillpedia
数据库40k · #7148

creating-oracle-to-postgres-master-migration-plan

它能做什么

这个工具会检查你的 .NET 软件项目,找出哪些部分需要从 Oracle 数据库迁移到 PostgreSQL,然后把这些信息整理成一份计划。

适用场景

  • ✓开始一个涉及多个项目的 Oracle 迁移到 PostgreSQL 工作时。
  • ✓需要盘点哪些项目在使用 Oracle 时。
  • ✓想评估哪些 .NET 项目依赖 Oracle 时。

技能链接

https://github.com/github/awesome-copilot/blob/main/skills/creating-oracle-to-postgres-master-migration-plan/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/github/awesome-copilot/blob/main/skills/creating-oracle-to-postgres-master-migration-plan/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“分析我的 .NET 解决方案,并制定一份 Oracle 迁移到 PostgreSQL 的计划。”

每周 5 个新技能,1 分钟读完。

工作原理

该工具会找到你的主项目文件(.sln),列出所有其他项目,并逐一检查它们是否使用了 Oracle 的痕迹。然后,它会把每个项目分类为“需要迁移”“可以跳过”“已完成迁移”或“测试项目”,并生成一份报告。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Creating an Oracle-to-PostgreSQL Master Migration Plan

Analyze a .NET solution, classify every project for Oracle→PostgreSQL migration eligibility, and write a structured plan that downstream agents and skills can parse.

Workflow

Progress:
- [ ] Step 1: Discover projects in the solution
- [ ] Step 2: Classify each project
- [ ] Step 3: Confirm with user
- [ ] Step 4: Write the plan file

Step 1: Discover projects

Find the Solution File (it has a .sln or .slnx extension) in the workspace root (ask the user if multiple exist). Parse it to extract all .csproj project references. For each project, note the name, path, and type (class library, web API, console, test, etc.).

Step 2: Classify each project

Scan every non-test project for Oracle indicators:

  • NuGet references: Oracle.ManagedDataAccess, Oracle.EntityFrameworkCore (check .csproj and packages.config)
  • Config entries: Oracle connection strings in appsettings.json, web.config, app.config
  • Code usage: OracleConnection, OracleCommand, OracleDataReader
  • DDL cross-references under .github/oracle-to-postgres-migration/DDL/Oracle/ (if present)

Assign one classification per project:

Classification Meaning
MIGRATE Has Oracle interactions requiring conversion
SKIP No Oracle indicators (UI-only, shared utility, etc.)
ALREADY_MIGRATED A -postgres or .Postgres duplicate exists and appears processed
TEST_PROJECT Test project; handled by the testing workflow

Step 3: Confirm with user

Present the classified list. Let the user adjust classifications or migration ordering before finalizing.

Step 4: Write the plan file

Save to: .github/oracle-to-postgres-migration/Reports/MasterMigrationPlan.md

Use this exact template — downstream consumers depend on the structure:

# Master Migration Plan

**Solution:** {solution file name}
**Solution Root:** {REPOSITORY_ROOT}
**Created:** {timestamp}
**Last Updated:** {timestamp}

## DDL Artifacts

**Location:** {path to DDL artifacts, e.g., `.github/oracle-to-postgres-migration/DDL/`}
**External tool used:** {Yes / No} — {If Yes, name the tool (e.g., `ora2pg`) and note that Phase 4 (Schema & DDL Migration) can be skipped; PostgreSQL DDL artifacts already exist.}

## Solution Summary

| Metric | Count |
|--------|-------|
| Total projects in solution | {n} |
| Projects requiring migration | {n} |
| Projects already migrated | {n} |
| Projects skipped (no Oracle usage) | {n} |
| Test projects (handled separately) | {n} |

## Project Inventory

| # | Project Name | Path | Classification | Notes |
|---|---|---|---|---|
| 1 | {name} | {relative path} | MIGRATE | {notes} |
| 2 | {name} | {relative path} | SKIP | No Oracle dependencies |

## Migration Order

1. **{ProjectName}** — {rationale, e.g., "Core data access library; other projects depend on it."}
2. **{ProjectName}** — {rationale}

Order projects so that shared/foundational libraries are migrated before their dependents.

常见问题

“分类”是什么意思?

这是工具为每个项目贴上的标签,用来表示它是否使用 Oracle(MIGRATE)、不使用(SKIP)、已经完成转换(ALREADY_MIGRATED),还是测试项目(TEST_PROJECT)。

计划保存在哪里?

计划保存在你项目中的 `.github/oracle-to-postgres-migration/Reports/` 文件夹下,文件名为 MasterMigrationPlan.md。

我可以修改分类结果吗?

可以。工具会展示项目列表及其分类结果,你可以先做调整,再生成最终计划。

详情

作者的原始描述

Discovers all projects in a .NET solution, classifies each for Oracle-to-PostgreSQL migration eligibility, and produces a persistent master migration plan. Use when starting a multi-project Oracle-to-PostgreSQL migration, creating a migration inventory, or assessing which .NET projects contain Oracle dependencies.

repo: github/awesome-copilot

热度

GitHub 星标
40k
排名
#7148
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能