legacy-knowledge-base
公開されました Sep. 10, 2025

6.2~7.1 Oracle 12データベースのアップグレードの結果、カスタム構造とテンプレートを使用したWebコンテンツに欠落したコンテンツが存在するようになる

written-by

Ben Clement

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Oracle 12で6.2から7.1にアップグレードすると、structureIdとtemplateIdがJournalArticleテーブルで観察できるBasic Web Contentの構造とテンプレートに戻ることがある。 もう一つの症状としては、アップグレード後、カスタムテンプレートと構造を利用したWebコンテンツのコンテンツセクションにコンテンツが存在しないことが挙げられます。 アップグレードログに以下のWARNメッセージが表示されます。
WARN  [main][UpgradeProcess:447] Attempting to upgrade table JournalArticle by recreating the table due to: ORA-54032: column to be renamed is used in a virtual column expression_ [Sanitized]
WARN - Attempting to upgrade table JournalArticle by recreating the table due to: ORA-54032: column to be renamed is used in a virtual column expression_ [Sanitized]

環境への配慮

  • Liferay EE 6.2
  • Liferay DXP 7.1

決議

アップグレード中のこのプロセスでは、JournalArticleテーブルのStructureIdとtemplateIdの列の名前をDDMStructureKeyとDDMTemplateKeyに変更します。 オラクルはこのような変更をサポートしていません。 この動作を解決するためには、以下のことを行う必要があります。

  1. 6.2データベースで仮想/非表示のカラムがあるかどうかを確認します。 以下にクエリの例を示します。
    select column_name, data_default, hidden_column from user_tab_cols where table_name = 'JOURNALARTICLE';
  2. 仮想カラムが存在する場合、カラムをバックアップ/コピーします。
  3. カラムの削除
  4. アップグレードの実行
  5. アップグレード完了後のデータベースへのカラムの追加

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base