Issue
- During upgrade to
DXP 7.4
using anOracle
database, some errors happen with this pattern:
...
ORA-01461: can bind a LONG value only for insert into a LONG column_
...
Environment
- Liferay
DXP 7.4
-
ojdbc11.jar
as database driver .
Resolution
- We must have into account the OJDBC driver version used. Execute
java -jar ojdbc11.jar
to get detailed version information.
- A valid version (version 21) is like following:
Oracle 21.11.0.0.0 JDBC 4.3 compiled with javac 11.0.1 on Thu_Jun_15_06:23:55_PDT_2023
- Whereas following is an invalid version (version 23) that causes issues with encondings and raises the
ORA-01461
error:
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
Additional Information
Refer to theOracle
correct OJDBC driver https://www.oracle.com/database/technologies/appdev/jdbc-downloads.html
Contenido exclusivo para suscriptores.
Una Suscripción Enterprise de Liferay proporciona acceso a más de 1.500 artículos que incluyen las mejores practicas, diagnóstico de problemas y otras soluciones útiles. Inicia sesión para tener un acceso completo.
Inicia sesión