My Oracle Support Banner

LoadDTDToClob Command Fails With Error ORA-12505, TNS:listener Does Not Currently Know Of SID Given (Doc ID 2979074.1)

Last updated on OCTOBER 05, 2023

Applies to:

Oracle XML Gateway - Version 12.1.3 and later
Information in this document applies to any platform.

Symptoms

On : 12.1.3 version, SUPPORT

When attempting to load a DTD with LoadDTDToClob
the following error occurs:

java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

Exception in thread "main" java.sql.SQLException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

  at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:458)
  at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:546)
  at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:236)
  at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
  at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
  at java.sql.DriverManager.getConnection(DriverManager.java:571)
  at java.sql.DriverManager.getConnection(DriverManager.java:215)
  at oracle.apps.ecx.loader.CoreDbServices.setDb(CoreDbServices.java:146)
  at oracle.apps.ecx.loader.LoadDTDToClob.<init>(LoadDTDToClob.java:102)
  at oracle.apps.ecx.loader.LoadDTDToClob.main(LoadDTDToClob.java:131)
Caused by: oracle.net.ns.NetException: Listener refused the connection with the following error:
ORA-12505, TNS:listener does not currently know of SID given in connect descriptor

  at oracle.net.ns.NSProtocol.connect(NSProtocol.java:395)
  at oracle.jdbc.driver.T4CConnection.connect(



The issue can be reproduced at will with the following steps:
1. invoke from command line with the syntax 

LoadDTDToClob<DB username><DB password><Hostname>:<Port>:<SID><mydtd.dtd> <RootElementName><Location>

Changes

 

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
Changes
Cause
Solution


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