Legacy Knowledge Base
公開されました Sep. 10, 2025

エラー ORA-01461 および Oracle ojdbc11.jar バージョン

Written By

Sergio Alonso

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • Oracle データベースを使用して DXP 7.4 にアップグレード中に、このパターンでエラーが発生することがあります:
...
ORA-01461: can bind a LONG value only for insert into a LONG column_
...

環境

  • Liferay DXP 7.4
  • ojdbc11.jar データベースドライバとして .

解像度

  • 使用されているOJDBCドライバのバージョンを考慮しなければならない。 実行
java -jar ojdbc11.jar 

をクリックすると、詳細なバージョン情報が表示されます。

  • 有効なバージョン(バージョン21)は以下の通り:
Oracle 21.11.0.0.0 JDBC 4.3 compiled with javac 11.0.1 on Thu_Jun_15_06:23:55_PDT_2023
  • 一方、以下は無効なバージョン(バージョン23) 、エンコーディングの問題を引き起こし、 ORA-01461 エラーを発生させる:
Oracle 23.2.0.0.0 JDBC 4.3 debug compiled with javac 11.0.6 on Mon_Mar_20_06:37:20_UTC_2023

追加情報

Oracle 正しいOJDBCドライバ https://www.oracle.com/database/technologies/appdev/jdbc-downloads.htmlを参照。

Did this article resolve your issue ?

Legacy Knowledge Base