Skip to main content

db-upgrade

A new Oracle Database version is released. It should work with the existing datafiles without requiring a dump/restore, verify and then prepare the migration guide for users.

ソース情報

リポジトリ
United-Codes/uc-local-apex-dev
ソースの最終更新活動
2026年9月3日 09:31
検出された SKILL.md の言語
英語
スター
63
フォーク
22

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
db-upgrade
description
A new Oracle Database version is released. It should work with the existing datafiles without requiring a dump/restore, verify and then prepare the migration guide for users.
## New Oracle Database version released **First, check that the release is adoptable at all.** Changing the image tag on an existing `oradata` volume does not upgrade the data dictionary, and neither `datapatch` nor `catupgrd` corrects it. Run the `db-ru-dictionary-check` skill (`.agents/skills/db-ru-dictionary-check/SKILL.md`) before anything below. It tells you whether an in-place swap plus `scripts/repair-ru-dictionary.sh` is safe, or whether this release needs a Data Pump migration instead. Its outcome decides what the migration guide has to say. Use `gh run list --workflow=test-db-upgrade.yml` to check if a recent successful run of the `test-db-upgrade.yml` workflow exists. If not, ask the user if they want to trigger a new run with the new database version. First verify that such a version exists on the repo. ## Upgrade DB locally Follow the actual migration guides of similar upgrades (e.g. 26-2) to upgrade the database locally. This will involve: - Pulling new database image - Backup the existing database - Stopping the current database - Starting the new database Do it in a safe way and confirm that everything is working correctly before proceeding to the next step. ## Write migration guide After a successful upgrade, create a new migration guide in `docs/src/content/docs/migrations/`. Use the existing guides (e.g. `25-3.md`) as a template. The guide should include: - **Frontmatter**: `title`, `description`, `sidebar.order` (increment from the previous guide) - **Intro**: link to getting-started, note to be on the previous version first - **Changes section**: a human-readable changelog covering: - DB and ORDS version bumps (note whether DB files are compatible or a dump/restore is needed) - New scripts - Enhanced scripts (what changed and why) - Bug fixes - Use `git log --oneline <last-tag>..HEAD --no-merges` and `git show <hash> --stat` to gather the full list of commits and changed files since the last release tag (even though they where committed on the old tags branches, they are still relevant for the new version if they were committed after the last release) - **Migration section**: step-by-step instructions (backup → stop → switch branch → chmod → start → verify) - If DB files are compatible (minor version bump), the steps are simple: backup, pull branch, start - If DB files are incompatible (major version change like 23ai → 26ai), include dump/restore steps - End with an optional step to remove old docker images
GitHubで見る