My Oracle Support Banner

java.sql.SQLException: &#65533 When Connecting To MOUNTED Databases As Sys User With OJDBC OCI and UCP On Oracle JDBC Versions 12.2+ (Doc ID 2716388.1)

Last updated on FEBRUARY 10, 2022

Applies to:

JDBC - Version and later
Information in this document applies to any platform.


Attempts to use JDBC OCI  and UCP libraries to establish a Java BEQ connection as "sys" user to Oracle databases running in MOUNTED mode. The connection fails with the stack trace below:

Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(
Caused by: java.sql.SQLException: Unable to start the Universal Connection Pool: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource: java.sql.SQLException: �
        at oracle.ucp.util.UCPErrorHandler.newSQLException(
        at oracle.ucp.util.UCPErrorHandler.throwSQLException(
        at oracle.ucp.jdbc.PoolDataSourceImpl.startPool(
        at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(
        at oracle.ucp.jdbc.PoolDataSourceImpl.access$400(
        at oracle.ucp.jdbc.PoolDataSourceImpl$
        at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(
        at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(
        at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(
        at delphix.ojdbc.App.main(
        ... 5 more
Caused by: oracle.ucp.UniversalConnectionPoolException: Cannot get Connection from Datasource: java.sql.SQLException: �
        at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException(
        at oracle.ucp.util.UCPErrorHandler.throwUniversalConnectionPoolException(
        at oracle.ucp.common.Topology.start(
        at oracle.ucp.common.Core.start(
        at oracle.ucp.common.UniversalConnectionPoolBase.start(UniversalConnectionPoolBas
        at oracle.ucp.jdbc.PoolDataSourceImpl.startPool(
        ... 12 more
Caused by: java.sql.SQLException: �
        at oracle.jdbc.driver.T2CConnection.checkError(
        at oracle.jdbc.driver.T2CConnection.checkError(
        at oracle.jdbc.driver.T2CConnection.getServerSessionInfo(
        ... 18 more

This problem has been observed on JDBC versions 12.2, 18c, and 19c. This problem does not occur on version 12.1. 




To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.