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

com.liferay.exportimport.service のアップグレード プロセス実行時のエラー

written-by

Kanchan Bisht

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 6.2 から DXP 7.2 へのアップグレード中に、ExportImport サービスが失敗しました。
    ERROR - Failed upgrade process for module com.liferay.exportimport.service
    com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.SQLGrammarException: could not execute query
    ...
    Caused by: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.SQLGrammarException: could not execute query
    ...
    Caused by: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.SQLGrammarException: could not execute query
    ...
    Caused by: org.hibernate.exception.SQLGrammarException: could not execute query
    ...
    Caused by: java.sql.SQLSyntaxErrorException: ORA-00904: "DBMS_LOB"."SUBSTR": invalid identifier_ [Sanitized]
  • アップグレード プロセスのトラブルシューティング時にサービスの release.state が -1 だったため、コマンド upgrade :execute com.liferay.exportimport.serviceを使用してアップグレードを再試行しましたが、まだ次のエラーが表示されます。

    [pipe-upgrade:execute com.liferay.exportimport.service] 02:18:22,004 INFO UpgradeProcess:93 - Upgrading com.liferay.exportimport.internal.upgrade.v1_0_0.UpgradePublisherRequest
    [pipe-upgrade:execute com.liferay.exportimport.service] 02:18:22,013 ERROR JDBCExceptionReporter:234 - ORA-00904: "DBMS_LOB"."SUBSTR": invalid identifier_ [Sanitized]
    [pipe-upgrade:execute com.liferay.exportimport.service] 02:18:22,013 INFO UpgradeProcess:107 - Failed upgrade process com.liferay.exportimport.internal.upgrade.v1_0_0.UpgradePublisherRequest in 9 ms
    [pipe-upgrade:execute com.liferay.exportimport.service] 02:18:22,019 ERROR PortalSynchronousLogListener:93 - bundle com.liferay.portal.upgrade.impl:3.0.19 (540)[com.liferay.portal.upgrade.internal.release.osgi.commands.ReleaseManagerOSGiCommands(1420)] : The activate method has thrown an exception
    com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: org.hibernate.exception.SQLGrammarException: could not execute query
    at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:101)
    at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:137)
    at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor$UpgradeInfosRunnable.run(UpgradeExecutor.java:200)
    at com.liferay.portal.output.stream.container.internal.OutputStreamContainerFactoryTrackerImpl.runWithSwappedLog(OutputStreamContainerFactoryTrackerImpl.java:134)
    at com.liferay.portal.upgrade.internal.executor.SwappedLogExecutor.execute(SwappedLogExecutor.java:51)
    at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor.executeUpgradeInfos(UpgradeExecutor.java:155)
    at com.liferay.portal.upgrade.internal.executor.UpgradeExecutor.execute(UpgradeExecutor.java:118)
    at com.liferay.portal.upgrade.internal.release.osgi.commands.ReleaseManagerOSGiCommands.activate(ReleaseManagerOSGiCommands.java:287)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    .
    .
    .....................................................................................

Environment

  • Liferay DXP 7.2

解決策

  • DBMS lob.instr も DBMS lob.substr も機能しなかったため、観測されたエラーは、データベース ユーザーが DBMS lob 関数を実行する権限を持っていないことを示しており、DBA チームが対処する必要があります。

  • 権限が付与されると、アップグレード プロセスで適切な SQL を実行できるようになります。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base