My Oracle Support Banner

Issues Creating JCS instance in OCI (Doc ID 2500035.1)

Last updated on MAY 18, 2022

Applies to:

Java Cloud Service - Version N/A to N/A [Release 1.0]
Information in this document applies to any platform.

Symptoms

PROBLEM

Customer wants to create a Java Cloud Service instance on OCI . Customer was provided with the following documentation for the process.

https://docs.oracle.com/en/cloud/paas/java-cloud/tutorial-create-instance-oracle-cloud-infrastructure/

Customer faced two major issues in the process..

1. Customer was not allowed to create any resources in the OCI Console and was getting a Not Authorized error

 

 

2. Instance creation failed with the following error failing to connect to the DB system created on OCI in the same compartment where the JCS instance was being created.

 

Could not connect to the database. Failure Reason: 'Listener refused the connection with the following error:ORA-12514, TNS:listener does not currently know of service requested in connect descriptor'; Retry Count: '9'
<JCS-ERR-20027> : <Cannot establish connection using connect string '//<DB-HOST>:1521/<DB-NAME>' and userName 'SYS as sysdba'. Reason: 'Listener refused the connection with the following error:ORA-12514, TNS:listener does not currently know of service requested in connect descriptor
java.sql.SQLRecoverableException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:800)
at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:789)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:33)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:443)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:324)
at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:234)
at com.oracle.cloudservice.jaas.DBConnectivityValidator.getConnection(DBConnectivityValidator.java:95)
at com.oracle.cloudservice.jaas.DBConnectivityValidator.main(DBConnectivityValidator.java:106)
Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:
ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

at oracle.net.ns.NSProtocolStream.negotiateConnection(NSProtocolStream.java:299)
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:275)
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1606)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:539)
... 8 more
'.>

 

 

Cause

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
Symptoms
Cause
Solution
References


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