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

SQLスクリプトでキーの重複を引き起こす

written-by

Liferay Support

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
Liferay Portalの新しいインスタンスを使用中に、一部の環境では以下のエラーが発生することがあります:

ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found

解像度

このエラーは、 create-*.sql スクリプトによるサンプルデータの作成にエラーがあるために発生します。 その結果、 Layout (uuid_, groupId) インデックスのキーが重複することになります。

この問題を回避するために

  1. データベースを空にした状態でポータルを起動します。 これにより、デフォルトのデータが自動的に正しく入力されます。

  2. このオプションを使用できない場合は、 create-minimal.sql スクリプトを使用します。 これは正しく機能しています(ただし、サンプルデータの作成は行われません)。

did-this-article-resolve-your-issue

legacy-knowledge-base