ORA 12505: JDBC Thin Client
Hi all
We face at the below of issues connecting to the server 11 g Oracle RAC using IP SCAN of JDK 1.7 application using JDBC Thin client
[16/may / 2014:22:33:58] warning (6975): CORE3283: stderr: java.sql.SQLException: IO exception: connection refused (DESCRIPTION = (TMP =)(VSNNUM=186647552) (ERR = 12505) (ERROR_STACK = (ERROR = (CODE = 12505) (EMFI = 4)))
[16/may / 2014:22:33:58] warning (6975): CORE3283: stderr: to oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
[16/may / 2014:22:33:58] warning (6975): CORE3283: stderr: to oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
[16/may / 2014:22:33:58] warning (6975): CORE3283: stderr: to oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
[16/may / 2014:22:33:58] warning (6975): CORE3283: stderr: to oracle.jdbc.driver.OracleConnection. < init > (OracleConnection.java:404)
[16/may / 2014:22:33:58] warning (6975): CORE3283: stderr: to oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
[16/may / 2014:22:33:58] warning (6975): CORE3283: stderr: to oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
[16/may / 2014:22:33:58] warning (6975): CORE3283: stderr: to java.sql.DriverManager.getConnection(DriverManager.java:571)
[16/may / 2014:22:33:58] warning (6975): CORE3283: stderr: to java.sql.DriverManager.getConnection(DriverManager.java:215)
Entrance to the TNSNAMES file ORA has good 'service_name', compared to the entries in the DB server Listener.ora file.
I only "tnsnames.ora' file in my client ' / opt/app/oracle/product/11.2.0/client_1/network/admin ' and my GUI application that uses as a reference.
HELLO =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP) (HOST = < name > - orasvip.rr. < xyz >)(PORT = 1522))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = HELLO)
)
)
= I checked all the blogs and confirmed with all the settings, please let me know if I should add any other libraries/configuration on the client side?
All,
JDBC connection string must be changed to connect to the DB CARS with names of SCAN VIP, Oracle RAC features using
JDBC: thin: @(DESCRIPTION = (ADDRESS_LIST = (LOAD_BALANCE = yes) (ADDRESS = (PROTOCOL = TCP) (HOST =
Tags: Database
Similar Questions
-
Group ADF opening too many sessions of database JDBC Thin Client.
Hi all
I have several panels of the ADF, which allows the user to run some simple queries against a database of Oracle is using the view objects ADF and ADF view links and ADF application module.
Each ADF Panel as I mentioned contains several queries view link and links in the form of Jbuttons to other ADF signs other ADF links running.
Run Control Panel of the ADF as described here opens up to 21 sessions of data showing as "JDBC Thin Client" when I look at their place of session$ v.
Why I find myself with a lot of databases of sessions.
Why didn't he just uses one or two sessions of database to run all of these links to view? It seems that it opens a session of data base for each of these links to view.
How can I change this destructive behavior? I have that one to see one or two sessions of database for the whole ADF matter how ADF display the links it contains.
Your suggestions are most appreciated.
Thank you.
Bobby has.Why so many AMs? Can not put all the your under a single AM?
Each AM you will use will open a connection to the DB. -
Thin client JDBC - IP source address
I see the program in session $ v as JDBC Thin Client. I need to know where the connections are coming from (source ip address).
I reason to assume that the only way I'll be able to see who is not in the views v$ but traces of sqlnet server-side to activate?
Thank you
Jacqueline wrote:
Hey, thanks for the replies. It is a database 10g running in a RAC 11g cluster.
Yes this is level 3 - end user connects from browser to the Web site, site Web running java code (or maybe the browser activates a java applet, although I doubt that - I don't know the complete development environment) and connects to the db via jdbc client light.
I see some server names, in v$ session.machine - probably that they are web servers, so maybe that's all I'm going to (same as IP really as they are internal servers)-as for the end user, I expect that they will have to use for this httpd logs
Thanks a lot for helping me to focus on this
If you wish / expect end user IP #, then the application MUST be modified & WEBSERVER must participate to get & send the IP # of the end-user; because the WEB server is the only device that is in direct contact with the end user.
-
TLSv1.2 with the JDBC Thin driver
I set up a secure connection, and the handshake connects using TLSv1.
Is it possible to have him negotiate TLSv1.2?
I use 12.1.0.2 ojdbc7.jar
The connection is made via a javax.sql.DataSource with org.apache.commons.dbcp.BasicDataSourceFactory reference
The secure connection works, and he negotiates a connection TLSv1. However, I was prompted to use TLSv1.2. The client initiates a handshake with:
'* ClientHello, TLSv1 '.
Which means that the server will negotiate with TLSv1.
How can I get the client starts the negotiation with a Hello TLSv1.2?
I tried to set the following options:
-Djdk.tls.client.protocols = TLSv1.2
-Dhttps.protocols = TLSv1.2
but neither had an effect.
For all those who come across of this question, here is the answer:
When you use the version 12.1.0.2 of ojdbc7 of the Java JDBC Thin client, there is a known bug (19030178) where the JDBC client acknowledges not TLS 1.1 and 1.2 ciphers.
There is a patch available if you have an Oracle support account.
When connecting to an Oracle 12 server that has the support of TLS 1.2, with the patch I get now:
ClientHello, TLSv1.2
ServerHello, TLSv1.2
and with a server Oracle 11 don't supports TLS 1, I get:
ClientHello, TLSv1.2
ServerHello, TLSv1
and the communication continues in TLSv1
It now works as expected.
-
ORA-12505, TNS:listener is not currently of SID...
The President complied,
I installed
It worked fine for 2 days and its suddenly began raise the following error:Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production With the Partitioning, OLAP and Data Mining options
My listener.orajava.sql.SQLException: Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: localhost:1521:XE
My tnsnames.ora# listener.ora Network Configuration File: c:\oracle\product\10.1.0\db_1\network\admin\listener.ora # Generated by Oracle configuration tools. SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = c:\oracle\product\10.1.0\db_1) (PROGRAM = extproc) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) ) (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) ) ) )
My sqlnet.ora# tnsnames.ora Network Configuration File: c:\oracle\product\10.1.0\db_1\network\admin\tnsnames.ora # Generated by Oracle configuration tools. XE = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE) ) ) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC)) ) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) )
My JDBC class:# sqlnet.ora Network Configuration File: c:\oracle\product\10.1.0\db_1\network\admin\sqlnet.ora # Generated by Oracle configuration tools. SQLNET.AUTHENTICATION_SERVICES= (NTS) NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
Journal of the listenerimport java.sql.Connection; import java.sql.DriverManager; public class DB{ public static Connection getOracleConnection() throws Exception { String driver = "oracle.jdbc.driver.OracleDriver"; String url = "jdbc:oracle:thin:@127.0.0.1:1521:XE"; String username = "RMS"; String password = "s09204031"; Class.forName(driver); Connection cnn = DriverManager.getConnection(url, username, password); return cnn; } }
Thank you and best regardsTNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production on 17-NOV-2009 16:01:55 Copyright (c) 1991, 2004, Oracle. All rights reserved. System parameter file is c:\oracle\product\10.1.0\db_1\network\admin\listener.ora Log messages written to c:\oracle\product\10.1.0\db_1\network\log\listener.log Trace information written to c:\oracle\product\10.1.0\db_1\network\trace\listener.trc Trace level is currently 0 Started with pid=3644 Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc))) Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521))) TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE 17-NOV-2009 16:01:57 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrator))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=168821248)) * status * 0 17-NOV-2009 16:02:47 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrator))(COMMAND=services)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=168821248)) * services * 0 17-NOV-2009 16:02:51 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=Administrator))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=168821248)) * status * 0
Run "lsnrctl status" and if she does not see that your XE service you may need to manually add in listener.ora part SID_LIST:
for example:SID_LIST_LISTENER10G =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = c:\oracle\product\10.1.0\db_1)
(= Extproc PROGRAM)
)
(SID_DESC =
(GLOBAL_DBNAME = XE)
(SID_NAME = XE)
(ORACLE_HOME = c:\oracle\product\10.1.0\db_1)
)
)or similar...
Also, make sure that you can resolve localhost for example ping localhost
Edited by: Kecskemethy November 17, 2009 06:12
-
java.sql.SQLException: listener refused the connection with the following error:
ORA-12505, TNS:listener is not currently of SID given in connect descriptor
Used by the client connect descriptor was:
* 127.0.0.1:1521:XE *.
My Java Code:
My Listener.ora:import java.io.*; import java.sql.*; public class db{ public static Connection getOracleConnection() throws Exception { String driver = "oracle.jdbc.driver.OracleDriver"; String url = "jdbc:oracle:thin:@127.0.0.1:1521:XE"; String username = "login"; String password = "*****"; Class.forName(driver); Connection cnn = DriverManager.getConnection(url, username, password); return cnn; } }
My tnsnames.ora# listener.ora Network Configuration File: SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server) (PROGRAM = extproc) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE)) (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) ) ) DEFAULT_SERVICE_LISTENER = (XE)
-bash-3, 1 # hostname# tnsnames.ora Network Configuration File: XE = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE) ) ) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE)) ) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO) ) )
100
My/etc/hosts
My sysconfig127.0.0.1 100 localhost localhost.localdomain
My status of the listener:NETWORKING="yes" GATEWAY="67.19.xx.xx" HOSTNAME="100"
My listener services:-bash-3.1# lsnrctl status LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 11-MAR-2009 05:44:49 Copyright (c) 1991, 2005, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production Start Date 11-MAR-2009 05:39:58 Uptime 0 days 0 hr. 4 min. 51 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Default Service XE Listener Parameter File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora Listener Log File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... The command completed successfully
Thank you and best regards-bash-3.1# lsnrctl service LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 11-MAR-2009 05:45:41 Copyright (c) 1991, 2005, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE))) Services Summary... Service "PLSExtProc" has 1 instance(s). Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service... Handler(s): "DEDICATED" established:0 refused:0 LOCAL SERVER The command completed successfully
Hello!
Your "lsnrctl status" tells you that the listener unaware of XE services. Try the following steps:
(1.) to connect to SQL * Plus as SYSDBA enter
ALTER SYSTEM REGISTER;
(2.) to check if your listener knows XE after that
If this does not work, try:
1.) modify your listener.ora like that
# listener.ora Network Configuration File: SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server) (PROGRAM = extproc) ) (SID_DESC = (GLOBAL_DBNAME=XE) (SID_NAME=XE) (ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server) ) ) LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE)) (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521)) ) )
Recharge 2.) the listenerparameters
lsnrctl reload
3.) again once check your status as a listener and try to connect from your Java application.
Yours sincerely
Florian W.
-
I get this error when you try to create a data store for Oracle database of the Disqualification.
ORA-12505, TNS: Listener does not currently of SID in the connection descriptor (code: 2 011)
I am able to connect to this database by using the same credentials through SQL, but the Disqualification, I'm not. Do I need to do anything in linux server before the implementation of Oracle data warehouses?
Thank you
Ravi
There are a number of ways.
1 use a JNDI connection configured in WebLogic and select by name
2. use the LDAP connection or TNS - see http://docs.oracle.com/middleware/1213/edq/DQEXT/config_dbase.htm#DQEXT202
3. Add an oracle.xml file in [local disqualification home] / dbconnectors with the following content. This will allow you to select the service name in the standard Oracle data store wizard:
Class = "com.datanomic.utils.databasespecies.species.Oracle"
MaxNameLength = "30" invalidnamechars ="" ' >
{JDBC:Oracle:Thin:@${service = "srv"? /': "} ${host}: ${port} {service ="srv"? '/' : ':'}${sid} Oracle {JDBC:Oracle:Thin:@${service = "srv"? /': "} ${host}: ${port} {service ="srv"? '/' : ':'}${sid} ${superior (schema = "? user: schema)} dbproductname ~ = '(?i) oracle' name ~ = ' $BIN\\ [A-Za-z0-9 + /] {22, 24} ==------$\\p {digit} +' user = ${user}
password = ${password}
FetchSize = 100
BatchSize = ${export.batchsize}
void = TRUNCATE TABLE %s
ALTER SESSION SET CURRENT_SCHEMA = ${schema} 1521 -
Creating a service; What must be included in tnsnames.ora and JDBC url?
DB version: 11.2.0.2
Operating system platform: Solaris 10
We have a 2 RAC node.
I want 1 Instance (mbsprd1) to use for our OLTP and Instance 2 (mbsprd2) application to use for another nature DSS request.DB name = mbsprd Instance1 = mbsprd1 Instance2 = mbsprd2
According to the syntax
I create 2 servicessrvctl add service -d <dbname> -s <ServiceName> -r <Preferred Instance> -a <Available Instance>
-Creation of a service called OLTP
-Creation of a service called DSSsrvctl add service -d mbsprd -s OLTP -r mbsprd1 -a mbsprd2
-Start servicessrvctl add service -d mbsprd -s DSS -r mbsprd2 -a mbsprd1
I guess the above steps are sufficient to set up a service on the side server.srvctl start service -d mbsprd -s OLTP srvctl start service -d mbsprd -s DSS
I would like to know what needs to be done on the client side.
Currently the file tnsnames.ora and JDBC url used by our clients are listed below. What needs to be added to the file URL and jdbc tnsnames.ora to start to use the services configured above?
Entry for RAC JDBC-- SCAN based TNS entry mbsprd = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (COMMUNITY = tcp.world) (PROTOCOL = TCP)(Host = p148149-scan.tpam.net) (Port = 36964)) ) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = mbsprd) (FAILOVER_MODE=(TYPE=SELECT)(METHOD=BASIC)) ) ) -- TNS entry based on local listener -- Instance 1 mbsprd1 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =(PROTOCOL = TCP)(HOST = hsolarp148-vip)(PORT = 36973)) ) (CONNECT_DATA = (SERVICE_NAME = mbsprd) (INSTANCE_NAME = mbsprd1) ) ) -- Instance 2 -- TNS entry based on local listener mbsprd2 = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =(PROTOCOL = TCP)(HOST = hsolarp149-vip)(PORT = 36973)) ) (CONNECT_DATA = (SERVICE_NAME = mbsprd) (INSTANCE_NAME = mbsprd2) ) )
-Another version used by some clients, because the above had "some problems".jdbc:oracle:thin:@p148149-scan.tpam.net:36964:mbsprd
jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=TCP)(HOST=p148149-scan.tpam.net) (PORT=36964))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=mbsprd)(FAILOVER_MODE =(TYPE = SELECT)(METHOD = BASIC)(RETRIES = 180)(DELAY = 10))))
OLTP = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = p148149-scan.tpam.net)(PORT = your_port_number)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = OLTP) ) ) DSS = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = p148149-scan.tpam.net)(PORT = your_port_number)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DSS) ) )
Entry for RAC JDBC
JDBC:Oracle:thin:@p148149-scan.tpam.NET:36964:SERVICE_NAME
JDBC:Oracle:thin:@new_tns_entry_description (if you do not want to connect to the database with particular service)
Try this and let us know about problems,
-
A localhost DB connection works, other gets ORA - 12505 connecting to the DB in Pentaho
Hello
I use LOCALHOST to connect to my database of dev and have no problem connection using JDBC in Pentaho. When I try to connect to my database of prod, he throws "listener refused the connection with the following error: ORA - 12505, TNS:listener is not currently of SID given in connect descriptor". Both are 11 G databases and I can't TNSPING both of them and I can connect at once using SQL Developer.
Here are my LISTENER and TNSNAMES entries:
DEV (working properly):
FTSDEV =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = localhost)
(PORT = 1531)
)
(CONNECT_DATA =
(SERVER = dedicated)
(SERVICE_NAME = FTSDEV)
)
)
PROD (does not work):
FTSPRD =
(DESCRIPTION =
(ADDRESS_LIST =
(LOAD_BALANCE = on)
(FAILOVER = off)
(ADDRESS = (PROTOCOL = TCP (PORT = 1528))(HOST=localhost))
)
(CONNECT_DATA = (SERVICE_NAME = FTSPRD_ETL))
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\Oracle\product\11.2.0\dbhome_1)
(= Extproc PROGRAM)
(ENVS = "EXTPROC_DLLS=ONLY:C:\Oracle\product\11.2.0\dbhome_1\bin\oraclr11.dll")
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost) (PORT = 1521))
)
)
C:\Users\ > lsnrctl services
LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 6 may 2015 10:39
: 35
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))
Summary of services...
Service 'CLRExtProc' has 1 instance (s).
Instance of 'CLRExtProc', status UNKNOWN, has 1 operation for this service...
Managers:
"DEDICATED" set up: 0 denied: 0
LOCAL SERVER
The command completed successfully
Thanks in advance for your help
Well, it sounds like a question for Pentaho.
However, if you have Oracle installed on the Pentaho Server customer, you could use OIC as the access method and then provide the TNS alias.
In the contrary case, it * seems * that Pentaho for a JDBC connection, use your 'database name' as a SID. What is the result of lsnrctl and status services on your box of production Oracle lsnrctl?
-
JDBC: thin gives error mystery
Hi all
I'm using Oracle 11 G and I have a java clause that is used to connect the other DB and extract the data. Here is my Echappementjdbc
Public Shared Sub query (string usr, String pssw, String hostname, String, String DB, String InitialDate port) survey of exceptions
{
Class.forName ("oracle.jdbc.OracleDriver");
String url = "jdbc:oracle:thin:@//" + name + ":" + port + "/" + DB;
Jacot connection = DriverManager.getConnection (url, usr, pssw);
try {}
Statement stmt = connIW.createStatement ();Now I get
ORA-29532:
Appeal of Java completed by eception Java exception: java.sql.SQLException:
ORA-01017: name of user and password invalid. connection refusedBut I can't able to connetc with Sql developer, using the same user name, password, HOST, port, and DB Service name .
Could help me solve the problem.
Kind regards
San.
We have fixed the problem. This
is an Oracle Bug, please see the Oracle note for reference below.Connection to the external database
Oracle Jvm using the Jdbc thin driver server-side throws Ora-01017 (Doc ID
1303712.1)Applies to:
Version - JDBC: 11.2.0.1 and later [Release: 11.2 and later]
Information in this document applies to any platform.
Symptoms
A Java stored procedure using the JDBC/thin driver side server to connect to
another database.When Java code is deployed on a pre - 11 g of the side database server
JDBC/thin connection works very well.Once the Java code is deployed on a 11.2 the database-side JDBC/thin server
failed to connect with ORA-01017: name of user and password invalid. connection refusedIf the Java code is executed on an external JAVA virtual machine connection works fine.
Despite the error ORA-01017 it was determined that the user name and
password are correct, and that it is not a matter of case sensitivity.Cause
Corruption with the JIT
compiled version of Java code.Oraclei¿½
The database Java Developer's Guide11g Release 1 (11.1)
Part number B31225-05
"Overview of the JITStarting JVM Oracle with Oracle 11 g release 1 (11.1),
There's a just-in-time (JIT) compiler for Oracle JVM environment. A JIT
for Oracle JVM compiler allows much faster execution, because it manages the
invalidation, recompilation and code without an external storage
mechanism. Based on profiling data collected dynamically, this compiler
seamlessly selects the Java methods to compile to native machine code and
dynamically make them available for Java sessions running. In addition, the
compiler can take advantage of the Oracle JAVA virtual machine class model to
possibly persist methods Java compiled in the database of calls, sessions, or
instances. This persistence avoids unnecessary recompilations overload
through sessions or instances, when we know that semantically the Java
code has not changed. "Solution
Workaround solution:
change the system
java_jit_enabled = FALSE;This allows the JIT code to be bypassed, by simply interpreting the Java
the code that is generated by bytecode, rather than using the JIT.There is no need to re - compile Java code. Just run the command above
and repeat the Java stored procedure.To restore the functionality of JIT just do:
change the system
java_jit_enabled = TRUE;Solution:
Delete all the lines in the java table $ mc$ and restart the database
The java$ mc$ table stores the persistent version of the JIT code generated
for performance reasons. remove this code apparently requires the JIT to
regenerate the code. -
Hello guys, I know this question has been posted on several occasions in the past, but my question includes developer oracle sql only. I can use the database and all the features through sql * more even execute sql queries. but when it comes to developer sql always returns this error. (error: ORA-12505.)
Windows 8-64 oracle 11 g r2
--------------------------------------------------------------------------------------------------------------------------------------
Welcome to LSNRCTL, enter 'help' for more information.
LSNRCTL > status
Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))
STATUS of the LISTENER
------------------------
Alias auditeur1
TNSLSNR for Windows 64-bit version: Version 11.2.0.1.0 - Production
Start date August 11, 2014 13:08:08
Uptime 0 days 0 h 14 min 55 sec
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Listener parameter File C:\app\oracle\product\11.2.0\dbhome_1\network\admin\listener.ora
C:\app\oracle\diag\tnslsnr\Needo-pc\listener1\alert\log.XML log listener
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp) (HOST = Needo-pc)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Summary of services...
Service 'CLRExtProc' has 1 instance (s).
Instance of 'CLRExtProc', status UNKNOWN, has 3 service management...
Service "orcl" has 1 instance (s).
Instance "orcl", State LOAN, has 1 operation for this service...
Service 'orclXDB' has 1 instance (s).
Instance "orcl", State LOAN, has 1 operation for this service...
The command completed successfully
-----------------------------------------------------------------------------------------------------------------
LSNRCTL > services
Connection to (ADDRESS = (PROTOCOL = tcp)(HOST=) (PORT = 1521))
Summary of services...
Service 'CLRExtProc' has 1 instance (s).
Instance of 'CLRExtProc', status UNKNOWN, has 3 service management...
Managers:
"DEDICATED" set up: 0 denied: 0
LOCAL SERVER
"ORACLE SERVER" put in place: 0 denied: current: 0 0 max: 25 status: ready
CLRExtProc
(ADDRESS = (PROTOCOL = ipc) (PIPENAME=\\.\pipe\NTN_122C_C6D0FCF3. ORA))
"ORACLE SERVER" put in place: 0 denied: current: 0 0 max: 25 status: ready
CLRExtProc
(ADDRESS = (PROTOCOL = ipc) (PIPENAME=\\.\pipe\NTN_122C_C6D0FCF3. ORA))
Service "orcl" has 1 instance (s).
Instance "orcl", State LOAN, has 1 operation for this service...
Managers:
"DEDICATED" set up: 22 refused: 0 status: ready
LOCAL SERVER
Service 'orclXDB' has 1 instance (s).
Instance "orcl", State LOAN, has 1 operation for this service...
Managers:
"D000" put in place: 0 denied: current: 0 0 max: 1022 State: loan
DISPATCHER < machine: NEEDO-PC, pid: 3172 >
(ADDRESS = (PROTOCOL = tcp) (HOST = Needo-pc)(PORT=52654))
The command completed successfully
------------------------------------------------------------------------------------------
Thank you!
Try it with sid ORCL instead of XE.
If this does not help, then choose SERVICE_NAME orcl instead of SID in sql developer.
Your listener seems to have an entry for this.
You can also test it in SQl * more. But what you've done so far in SQl * plus was a "server connection", without providing the database.
Because in your case, the client and the server is on the same machine, it works with sql * more.
If you try a customer coonnect by specifying the database, then you would do the same thing as the Oracle SQL Developer is by train.
For test purposes, something like
sqlplus user/pwd@host:port/ORCL
also in the Sqlnet.ora file must be an etry for local EZCONNECT connect method. I don't know if it is set during the installation of network by default.
You can try if there is an Alias-TNS name (configured in the tnsnames.ora)
sqlplus user/pwd@ORCL
If it works with sql * plus, so you must always indicate the sql developer where the tnsnames.ora file is located on your computer.
The setting can be found in the menu: extras/tools/base data/improved
The tnsnames.ora file is usually in a file like this:
C:\Oracle\product\11.2.0\client_1\network\admin
-
Hi guys,.
I am new to Oracle 12 c. Recently, I installed Oracle 12 c on my machine from Oracle Linux 6. Until yesterday, it was working absolutely fine. Since today morning go, I meet a very strange situation. I can not connect to Oracle 12 C database of Oracle SQL developer. Both are configured on the same computer. Here are the details
The global database name: cdb1.localdomain
SID: cdb1
Listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = u01/app/oracle/product/12.1.0/db_1)
(= Extproc PROGRAM)
(
(SID_DESC =
(GLOBAL_DBNAME = cdb1.localdomain)
(ORACLE_HOME = u01/app/oracle/product/12.1.0/db_1)
(SID_NAME = cdb1)
)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = padinjhattil) (PORT = 1521))
)
)
ADR_BASE_LISTENER = /u01/app/oracle/product/12.1.0/db_1/log
TNSNAME.ora
tnsnames.ora # Network Configuration file: /u01/app/oracle/product/12.1.0/db_1/network/admin/tnsnames.ora
# Generated by Oracle configuration tools.
CDB1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = padinjhattil) (PORT = 1521))
(CONNECT_DATA =
(SID = CDB1)
(SERVER = DEDICATED)
)
)
lsnrctl status
LSNRCTL for Linux: Version 12.1.0.1.0 - Production on 3 February 2014 10:30:40
Copyright (c) 1991, 2013, Oracle. All rights reserved.
From /u01/app/oracle/product/12.1.0/db_1/bin/tnslsnr: Please wait...
TNSLSNR for Linux: Version 12.1.0.1.0 - Production
System settings file is /u01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/12.1.0/db_1/log/diag/tnslsnr/padinjhattil/listener/alert/log.xml
Listen on: (DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))
Listen on: (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=padinjhattil) (PORT = 1521)))
Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias LISTENER
Version TNSLSNR for Linux: Version 12.1.0.1.0 - Production
Start date February 3, 2014 10:30:43
Uptime 0 days 0 h 0 min 0 sec
Draw level off
Security ON: OS Local Authentication
SNMP OFF
Parameter Listener of the /u01/app/oracle/product/12.1.0/db_1/network/admin/listener.ora file
The listener log file /U01/app/Oracle/product/12.1.0/Db_1/log/diag/tnslsnr/padinjhattil/listener/alert/log.XML
Summary of endpoints listening...
(DESCRIPTION = (ADDRESS = (PROTOCOL = ipc) (KEY = EXTPROC1521)))
(DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=padinjhattil) (PORT = 1521)))
Summary of services...
Service 'PLSExtProc' has 1 instance (s).
Instance of 'PLSExtProc', status UNKNOWN, has 1 operation for this service...
The command completed successfully
tnsping cdb1
AMT Ping utility for Linux: Version 12.1.0.1.0 - Production on 3 February 2014 10:32:23
Copyright (c) 1997, 2013, Oracle. All rights reserved.
Use settings files:
/U01/app/Oracle/product/12.1.0/Db_1/network/admin/SQLNET.ora
TNSNAMES adapter used to resolve the alias
Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = padinjhattil) (PORT = 1521)) (CONNECT_DATA = (SID = CDB1) (SERVER = DEDICATED)))
AMT-12543: TNS:destination host unreachable (yesterday it was - OK (30))
Now, I get an ORA-12505 error message. Could someone please explain, where did I go wrong turn. I spent like 3 hours but all my efforts have been in vain. Help, please!
Kind regards
Luke
As you say, the client and the server are on the same machine and user/password after setting ORACLE_SID and ORACLE_HOME cannot work
Perform the following steps:
1. If above works, it means that you are able to connect
2 bounce the listening process and try to connect
3. make sure that the listener and Oracle process owners are same
4. ensure that padinjhattil entry is in/etc/hosts file
Thank you
Harman
-
ORA-12505, TNS:listener is not currently of SID given in connect the
Hi, I have a problem connecting to the repository working ODI...
The master repository and repository of work are installed in the Oracle 11g company Manager...
From my PC, I can connect to the master repository and I can see the repository to work, but when I try to connect I get this message:
oracle.odi.core.config.WorkRepositoryResourceFailureException: ODI-10182: categorizar sin Excepcion durante el acceso al repositorio.
Could not make JDBC connection; nested exception is java.sql.SQLException: Se ha powered una excepcion al get the conexion: oracle.ucp.UniversalConnectionPoolException: No. is you can get the conexion del origen of datos: java.sql.SQLException: listener refused the connection with the following error:
ORA-12505, TNS:listener is not currently of SID given in connect descriptor
at oracle.odi.core.repository.Repository.getWorkRepository(Repository.java:195)
at oracle.odi.core.OdiInstance.createWorkRepository(OdiInstance.java:504)
to oracle.odi.core.OdiInstance. < init > (OdiInstance.java:581)
at oracle.odi.core.OdiInstance.createInstance(OdiInstance.java:521)
at com.sunopsis.graphical.dialog.SnpsDialogLoginDetail.testConnection(SnpsDialogLoginDetail.java:755)
to com.sunopsis.graphical.dialog.SnpsDialogLoginDetail.access$ 4 (SnpsDialogLoginDetail.java:743)
to com.sunopsis.graphical.dialog.SnpsDialogLoginDetail$ 2.performAction(SnpsDialogLoginDetail.java:287)
at oracle.odi.ui.framework.event.OdiActionListener.actionPerformed(OdiActionListener.java:69)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.Component.processMouseEvent(Component.java:6297)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6062)
at java.awt.Container.processEvent(Container.java:2039)
at java.awt.Component.dispatchEventImpl(Component.java:4660)
at java.awt.Container.dispatchEventImpl(Container.java:2097)
at java.awt.Component.dispatchEvent(Component.java:4488)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
at java.awt.Container.dispatchEventImpl(Container.java:2083)
at java.awt.Window.dispatchEventImpl(Window.java:2489)
at java.awt.Component.dispatchEvent(Component.java:4488)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:668)
to java.awt.EventQueue.access$ 400 (EventQueue.java:81)
in java.awt.EventQueue$ 2.run(EventQueue.java:627)
in java.awt.EventQueue$ 2.run(EventQueue.java:625)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
in java.awt.EventQueue$ 3.run(EventQueue.java:641)
in java.awt.EventQueue$ 3.run(EventQueue.java:639)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
in java.awt.Dialog$ 1.run(Dialog.java:1044)
in java.awt.Dialog$ 3.run(Dialog.java:1096)
at java.security.AccessController.doPrivileged (Native Method)
at java.awt.Dialog.show(Dialog.java:1094)
at java.awt.Component.show(Component.java:1591)
at java.awt.Component.setVisible(Component.java:1543)
at java.awt.Window.setVisible(Window.java:843)
at java.awt.Dialog.setVisible(Dialog.java:984)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:395)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:356)
at oracle.odi.ui.framework.adapter.DefaultAdapter.displayDialog(DefaultAdapter.java:242)
at oracle.odi.ui.framework.UIFramework.displayDialog(UIFramework.java:88)
at oracle.odi.ui.LoginFactory.modifyLogin(LoginFactory.java:334)
to com.sunopsis.graphical.dialog.SnpsDialogLogin$ 3.performAction(SnpsDialogLogin.java:185)
at oracle.odi.ui.framework.event.OdiActionListener.actionPerformed(OdiActionListener.java:69)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6297)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6062)
at java.awt.Container.processEvent(Container.java:2039)
at java.awt.Component.dispatchEventImpl(Component.java:4660)
at java.awt.Container.dispatchEventImpl(Container.java:2097)
at java.awt.Component.dispatchEvent(Component.java:4488)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
at java.awt.Container.dispatchEventImpl(Container.java:2083)
at java.awt.Window.dispatchEventImpl(Window.java:2489)
at java.awt.Component.dispatchEvent(Component.java:4488)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:668)
to java.awt.EventQueue.access$ 400 (EventQueue.java:81)
in java.awt.EventQueue$ 2.run(EventQueue.java:627)
in java.awt.EventQueue$ 2.run(EventQueue.java:625)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
in java.awt.EventQueue$ 3.run(EventQueue.java:641)
in java.awt.EventQueue$ 3.run(EventQueue.java:639)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:178)
in java.awt.Dialog$ 1.run(Dialog.java:1044)
in java.awt.Dialog$ 3.run(Dialog.java:1096)
at java.security.AccessController.doPrivileged (Native Method)
at java.awt.Dialog.show(Dialog.java:1094)
at java.awt.Component.show(Component.java:1591)
at java.awt.Component.setVisible(Component.java:1543)
at java.awt.Window.setVisible(Window.java:843)
at java.awt.Dialog.setVisible(Dialog.java:984)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:395)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(JEWTDialog.java:356)
at oracle.odi.ui.framework.adapter.DefaultAdapter.displayDialog(DefaultAdapter.java:242)
at oracle.odi.ui.framework.UIFramework.displayDialog(UIFramework.java:88)
at oracle.odi.ui.OdiConnectController.handleEvent(OdiConnectController.java:113)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:897)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:809)
in javax.swing.plaf.basic.BasicMenuItemUI$ Handler.mouseReleased (BasicMenuItemUI.java:850)
at java.awt.Component.processMouseEvent(Component.java:6297)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3275)
at java.awt.Component.processEvent(Component.java:6062)
at java.awt.Container.processEvent(Container.java:2039)
at java.awt.Component.dispatchEventImpl(Component.java:4660)
at java.awt.Container.dispatchEventImpl(Container.java:2097)
at java.awt.Component.dispatchEvent(Component.java:4488)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4236)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
at java.awt.Container.dispatchEventImpl(Container.java:2083)
at java.awt.Window.dispatchEventImpl(Window.java:2489)
at java.awt.Component.dispatchEvent(Component.java:4488)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:668)
to java.awt.EventQueue.access$ 400 (EventQueue.java:81)
in java.awt.EventQueue$ 2.run(EventQueue.java:627)
in java.awt.EventQueue$ 2.run(EventQueue.java:625)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
in java.awt.EventQueue$ 3.run(EventQueue.java:641)
in java.awt.EventQueue$ 3.run(EventQueue.java:639)
at java.security.AccessController.doPrivileged (Native Method)
in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:638)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: could not make connection JDBC; nested exception is java.sql.SQLException: Se ha powered una excepcion al get the conexion: oracle.ucp.UniversalConnectionPoolException: No. is you can get the conexion del origen of datos: java.sql.SQLException: listener refused the connection with the following error:
ORA-12505, TNS:listener is not currently of SID given in connect descriptor
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:82)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:524)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:588)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:613)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:645)
at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:111)
at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:121)
at org.springframework.jdbc.object.SqlQuery.execute(SqlQuery.java:136)
to oracle.odi.core.repository.support.RepositoryUtils$ RepositoryInfoSource.loadRepositoryInfo (RepositoryUtils.java:182)
at oracle.odi.core.repository.support.RepositoryUtils.loadWorkRepositoryInfo(RepositoryUtils.java:382)
at oracle.odi.core.repository.Repository.getWorkRepository(Repository.java:174)
... more than 144
Caused by: java.sql.SQLException: Se ha powered una excepcion al get the conexion: oracle.ucp.UniversalConnectionPoolException: No. is you can get the conexion del origen of datos: java.sql.SQLException: listener refused the connection with the following error:
ORA-12505, TNS:listener is not currently of SID given in connect descriptor
at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.doGetConnection(LoginTimeoutDatasourceAdapter.java:133)
at oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter.getConnection(LoginTimeoutDatasourceAdapter.java:62)
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:79)
... more than 154
Caused by: java.sql.SQLException: Se ha powered una excepcion al get the conexion: oracle.ucp.UniversalConnectionPoolException: No. is you can get the conexion del origen of datos: java.sql.SQLException: listener refused the connection with the following error:
ORA-12505, TNS:listener is not currently of SID given in connect descriptor
at oracle.ucp.util.UCPErrorHandler.newSQLException(UCPErrorHandler.java:488)
at oracle.ucp.util.UCPErrorHandler.throwSQLException(UCPErrorHandler.java:163)
at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:943)
at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:873)
at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:863)
at sun.reflect.GeneratedMethodAccessor95.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
to oracle.odi.core.datasource.support.RuntimeClassLoaderDataSourceCreator$ DataSourceInvocationHandler.invoke (RuntimeClassLoaderDataSourceCreator.java:48)
to $Proxy0.getConnection (Unknown Source)
to oracle.odi.jdbc.datasource.LoginTimeoutDatasourceAdapter$ ConnectionProcessor.run (LoginTimeoutDatasourceAdapter.java:217)
to java.util.concurrent.Executors$ RunnableAdapter.call (Executors.java:439)
to java.util.concurrent.FutureTask$ Sync.innerRun (FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
to java.util.concurrent.ThreadPoolExecutor$ Worker.runTask (ThreadPoolExecutor.java:886)
to java.util.concurrent.ThreadPoolExecutor$ Worker.run (ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: oracle.ucp.UniversalConnectionPoolException: No. is you can get the conexion del origen of datos: java.sql.SQLException: listener refused the connection with the following error:
ORA-12505, TNS:listener is not currently of SID given in connect descriptor
at oracle.ucp.util.UCPErrorHandler.newUniversalConnectionPoolException(UCPErrorHandler.java:368)
at oracle.ucp.util.UCPErrorHandler.throwUniversalConnectionPoolException(UCPErrorHandler.java:49)
at oracle.ucp.util.UCPErrorHandler.throwUniversalConnectionPoolException(UCPErrorHandler.java:80)
at oracle.ucp.jdbc.DriverConnectionFactoryAdapter.createConnection(DriverConnectionFactoryAdapter.java:122)
to oracle.ucp.common.UniversalConnectionPoolImpl$ UniversalConnectionPoolInternal.createOnePooledConnectionInternal (UniversalConnectionPoolImpl.java:1610)
to oracle.ucp.common.UniversalConnectionPoolImpl$ UniversalConnectionPoolInternal.access$ 600 (UniversalConnectionPoolImpl.java:1446)
at oracle.ucp.common.UniversalConnectionPoolImpl.createOnePooledConnection(UniversalConnectionPoolImpl.java:514)
at oracle.ucp.jdbc.oracle.OracleJDBCConnectionPool.createOnePooledConnection(OracleJDBCConnectionPool.java:129)
at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnectionWithoutCountingRequests(UniversalConnectionPoolImpl.java:297)
at oracle.ucp.common.UniversalConnectionPoolImpl.borrowConnection(UniversalConnectionPoolImpl.java:142)
at oracle.ucp.jdbc.JDBCConnectionPool.borrowConnection(JDBCConnectionPool.java:157)
at oracle.ucp.jdbc.PoolDataSourceImpl.getConnection(PoolDataSourceImpl.java:931)
... 14 more
Please, if someone could give me a tip. Thank you!!!Looks like a problem with the tnsnames file / wrong sid. try using tnsping
> that you will be in your tnsnames.ora. -
Listener refused the connection with the following error: ORA-12505
Hello
Windows XP + Oracle 10.1.0.20Listener refused the connection with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: 127.0.0.1:1521:XE
I checked my *.ora files and found the host 127.0.0.1 but I noticed by running the netstat command on prompt back most of my ports is captured by www.360.cn including 1521
When I try to stop the following message is displayed:
Thank you and best regardsORA-01034: ORACLE not available ORA-27101: shared memory realm does not exists
Hello
[oracle@myoramachine ~]$ oerr ora 12505 12505, 00000, "TNS:listener does not currently know of SID given in connect descriptor" // *Cause: The listener received a request to establish a connection to a // database or other service. The connect descriptor received by the listener // specified a SID for an instance (usually a database instance) that either // has not yet dynamically registered with the listener or has not been // statically configured for the listener. This may be a temporary condition // such as after the listener has started, but before the database instance // has registered with the listener. // *Action: // - Wait a moment and try to connect a second time. // - Check which instances are currently known by the listener by executing: // lsnrctl services
// - Check that the SID parameter in the connect descriptor specifies // an instance known by the listener. // - Check for an event in the listener.log file. [oracle@myoramachine ~]$ 1. check the lsnrctl services
2 check the tnsping output:
tnsping MYORACLE
3. check the connectivity to the computer hosting your Oracle server to the port (I guess 1521):
Telnet
1521 4. in case you are not able to connect to the Oracle Server - I investigate it in several directions:
-problem of network infrastructure
-some process disturbing / virus on the server Oracle itself
-firewall problem
Good luck!
---------------------------------
http://DBA-star.blogspot.com/ -
Oracle Thin Client error when inserting
Cold Fusion 8 fully patched on Windows Server 2008 fully patched
8.1.7.1 Oracle Linux as DB with network (encryption) Option
Oracle Client 10.2.0.3 Thin Client (tried with the ojdbc14 and ojdbc12 classes)
SELECT, DELETE, UPDATE instructions all work fine.
When an INSERT statement is sent to the DB, it is processed (the insert is done and committed!) but we receive a database error message 'Typlange grosser als Hochstwert', which translates as about type length is greater than the limit.
Multiple threads show this as a problem when the return of the db is too large, but it is certainly not the case (a simple insertion of a line of small).
The SQL that is executed to the DB includes a suffix of "ROWID of RETURN", which is not part of our SQL and is apparently added by CF or thin client. We do not handle the return value (we tried but that didn't help either).
Due to the fact that the INSERT is actually made and committed, we assume that the problem must be at the end of the customer and not in the database.
This is a blocking problem and seems to be limited to 8 CF with the customer.
CF 8 with an ODBC to the same DB connection works OK.
Be very happy for any help we want to go to production with this environment.
See you soon
Thomas
I am able to use the Oracle 10.2 OCI or JDBC 'fat client' driver do updates and deletions to my 8.1.7 database. Only a few changes are needed with the already installed Oracle client. You must update the java.library.path Coldfusion8\runtime\bin\jvm.config to include the dll from the Oracle client directory. For me it was:
Java.Library.Path=...,E:/Oraclient_10_2
You must restart coldfusion for all java configuration updates.
You must also change the JDBC URL of JDBC: thin:... to jdbc:oracle:oci:...You can still use the Oracle client where he works, using the OCI driver only if necessary. You could test your SQL with two drivers to see if you notice a significant difference in performance. Use what works the best.
Maybe you are looking for
-
App Store said that it could not connect to itunes. Help
I have an Iphone 5s. After that I updated the software (10 IOS), when I try to download or update applications, it says could not connect to the iTunes store. I tried to close the session and log in. He said the same error. Please help me. I don't kn
-
Unable to access my Apple TV after you add the 2nd layer of security to my profile of Apple
Hi, I have authorized after Apple install a 2nd layer of security on my iPhone and basically add it to my profile. Now I can't access my purchases on my 2nd generation Apple TV (film music, video). There is no way to get the required security code, w
-
Gel - MS Security Essentials Scan complete and during backup
HelloVirgin of forum here! My machine is freezing during the full analysis using Microsoft security essentials and everything by making a backup.I tried to make a backup to make sure that if I had a failure while setting the security essentials that
-
Integrated webcam not working only not with Skype in Windows XP.
Original title: webcam on compaq presario cq60 I have a compaq presario CQ60 with integrated webcam. I have tried Skype and can't find the webcam, and it is not automatically kick in even if it is set to video. Can someone tell me where the webcam
-
Found "Save as model" grayed out and cannot save. Recorded with .dwt but saved them "model" does not present as a "site template. Can anyone help? Thank you