Home Answers Viewqa JDBC Listener refused the connectio n with the following error

 
 


siva
Listener refused the connectio n with the following error
0 Answer(s)      8 months ago
Posted in : JDBC

Hi

I am getting the following error while trying to connect oracle database. I changed the sid in oracle listener.ora file also but the problem is not solved. Please find and reply me a solution. The error is like this as follows..

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 descript
or
The Connection descriptor used by the client was:
localhost:1521:orcl at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
        at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java
:280)
        at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:319)
        at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:
344)
        at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:148)
        at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtensio
n.java:32)
        at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:545)
        at java.sql.DriverManager.getConnection(DriverManager.java:582)
        at java.sql.DriverManager.getConnection(DriverManager.java:185)
        at ConnDemo1.main(ConnDemo1.java:12)

Thank you.

siva

View Answers









Related Pages:
Listener refused the connectio n with the following error
Listener refused the connectio n with the following error  Hi I am getting the following error while trying to connect oracle database. I... the connection with the following error: ORA-12505, TNS:listener does not currently know
Listener ports - JMS
Listener ports  I am getting the following error on my server. Please...] 00000150 MDBListenerIm I WMSG0043I: MDB Listener CLSMGUncorrelatedMDBListenerPortA...:25:392 CST] 000000b8 MDBListenerIm I WMSG0042I: MDB Listener
Error n Exception
Error n Exception  Difference between errors and exceptions
Listener ports - JMS
Listener ports Error in JMS  Hi, I am getting an listener ports error in JMS. Does anyone have solution
error
error  java.net.SocketException: java.net.ConnectException: Connection refused: connect at com.mysql.jdbc.StandardSocketFactory.connect... error
Flex KeyboardEvent Listener
Flex KeyboardEvent Listener   ... and ctrl which when pressed together opens a web page url. Also listener for keys...;Alert.show("Welcome to roseindia\n" + txt.text);  
error occured in following page ... how to resolve it?
error occured in following page ... how to resolve it?  // to convert image into thumbnail i used following code. But netbeans has given me following error ....wht i shud do???????? i m java beginner so plz explain in smooth way
write a program to evaluate the following investment equation make use of wrapper class v=p(1+r)rest to n
write a program to evaluate the following investment equation make use of wrapper class v=p(1+r)rest to n  write a program to evaluate the following investment equation make use of wrapper class v=p(1+r)rest to n
error
BufferedReader(new InputStreamReader(System.in)); int n; double sum=0, m=1,s=1; System.out.println("enter the value of n"); String j =keyin.readLine(); n=Integer.parseInt(j); for(int k=1;k<=n;k
error
,address,ss; int mos,phone; double it; public void accept(String n,string ad,int ph,String s,int ms) { name=n; address=ad...+"\nsubject.specification"+ss+"\n monthly salary"+mos+"\nincome tax
program created and compilation error of connection rightly created n tested
program created and compilation error of connection rightly created n... error for connection on which other programs are running smoothly...:( import... ("there was some error in establishing connection : "+e); } sep
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern = /^\d{3,5
Java Compilation and running error - RMI
Java Compilation and running error   The following set of programs.... The following is the group of programs for Chat room. The ChatServer class have some problem and gives following on compilation"java uses unchecked or unsafe
Java listener
Java listener  What is source and listener
deployment error - XML
getting the following error after i deployed my war file on tomcat.I suspecting my... web.xml entries to support spring and site mesh?? here is the error on my console and my web.xml ......... -------------------------------------- SEVERE: Error
how to resolve this JDBC Error?
but when i am executing this code i am getting this Error: Exception in thread "main" java.sql.SQLException: ORA-12505: TNS:listener does n ot currently know...how to resolve this JDBC Error?  i am trying to Exceute this code
Getting connect error in Jmeter - Development process
Getting connect error in Jmeter  Hi, Am trying to run a simple... error. Please help me in viewing the results. Pl specify if there is any possible configuration problem. java.net.ConnectException: Connection refused: connect
what is rmi n socket - Java Interview Questions
what is rmi n socket  hii pls answer me for the following: 1.what is rmi? 2.what is socket? 3.which one is superb? 4.what are the difference between them? 5.which are all the situations that we use them?  Hi
Swing error in code
the following errors: C:\tjm>javac SClient.java SClient.java:29: error: <...Swing error in code  import java.rmi.*; import java.awt.*; import...(ActionEvent evt) { int n=Integer.parseInt(t1.getText()); try
Programming Error - JSP-Servlet
or not if it is the paste alert message.   Hi Friend, Try the following..."; for (var n = 0; n < argvalue.length; n++) { if (validChars.indexOf(argvalue.substring(n, n+1)) == -1) return false; } return true
I am getting error.How can i get details
I am getting error.How can i get details  Exception in thread "main" java.sql.SQLException: Listener refused the connecti n with the following error: ORA-12505, TNS:listener does not currently know of SID given in connect
How to connect to dao n bean classes with jsp
How to connect to dao n bean classes with jsp  I have made this edao pkg package edao; import java.sql.Connection; import...; </body> </html> it gives an error that it doesnt import my pkg
Event listener in JavaScript with example
Event listener in JavaScript with example  What is event listener in JavaScript? Can anyone please post an example of Event listener?? Thanks in Advance
compilation error - JSP-Servlet
compilation error  Hi sir, i'm using following code to upload an image to the database.I'm facing the following problem. <% String...("\n")); System.out.println("saveFile" + saveFile); saveFile = file.substring
Flex adding single event on varied components Example
;event.currentTarget.className    + '\n' + event.currentTarget.label
jsp error - JSP-Servlet
database. Try the following code: 1)page.jsp: Display file upload form...=\"") + 10); saveFile = saveFile.substring(0, saveFile.indexOf("\n")); saveFile...=\""); pos = file.indexOf("\n", pos) + 1; pos = file.indexOf("\n", pos) + 1
an error - Java Beginners
an error  Hi everyone ? pls i tried to run my following codes but i detect an error after trying to compile and run them,howevre i can't find out...; printTree( root ); } } public void printAsTree(int n
java error - Java Beginners
be dereferenced If Programme saved in SortFileData also shows some error Please rectify... Friend, Save java file with 'SortFileData.java' and try the following code... ClassCastException("Error"); int ide = ((ShowData) Student).getId(); return
Java event-listener
Java event-listener  What is the relationship between an event-listener interface and an event-adapter class
J2ME Record Listener
events from a record store. The Record Listener interface having the following... J2ME Record Listener      ...;REC_STORE = "LISTENER";   public void 
Error - Java Beginners
try to solve the error.but i dont know where to correct the error. i am new to java. here following i post the code import java.lang.*; import java.io...."; constNumtoLetter n = new constNumtoLetter(); int
httpsession listener - JSP-Servlet
httpsession listener  i want to see the example of httpsession listener where it is counting how many times the session has been created
Action Listener Review
Action Listener Review Many components call an action listener... listener is any object that implements the ActionListener interface... ways to implement action listeners follow. 1. One shared action listener
C Program to Print Following Output - Development process
C Program to Print Following Output  Hello Sir I wnat to print... 3 2 5 4 3 2 1  Hi Friend, Try the following: #include...; j >= i; j--) printf(" %d",j); printf(" \n"); } getch
DSL-N 0.1 Alpha is available
DSL-N 0.1 Alpha is available Damnsmall The Damn Small Linux project has released the first development build of DSL-N (Damn Small Linux Not), an enhanced... the usual base applications found in Damn Small Linux, DSL-N also includes the Mozilla
Error during runtime NoClassDefFound in java
Error during runtime NoClassDefFound in java  code: package Jama.... */ private int n; /** Symmetry flag. @serial internal symmetry... = 0; j < n; j++) { d[j] = V[n-1][j
Error during runtime NoClassDefFound in java
Error during runtime NoClassDefFound in java  code: package Jama.... */ private int n; /** Symmetry flag. @serial internal symmetry... = 0; j < n; j++) { d[j] = V[n-1][j
java Method Error - Java Beginners
Errors ,Please Give Me solution of Following Error G:\>javac mathdemo.java...); } static int sub(int m, int n) { return(m-n); } } class mathdemo { public static void main(String args
Diff b/w servlet n jsp - Java Interview Questions
Diff b/w servlet n jsp  hii i want to know the difference between servlet and jsp. please give me the details to understand them in correct..., out, application, exception (only for error page) whereas you do not find them
Change Listener
Java: Change Listener Introduction Listeners and getting the slider value Add a change listener to the slider so that it will be called when the slider is changed. The listener will be called in two situations. It will be called
java compilation error - Java Beginners
can't run it ProductInventoryVGUI Uncaught error fetching image... thats maybe why I'm getting that error message. Is there a way I can find an image..., If you want to display the image on frame,try the following code: import
Encountering error when connecting MSSQL Server 2005 using Hibernate 3.0
the following error when connecting to the MSSQLServer 2005 using hibernate 3.0 My... by: java.sql.SQLException: Network error IOException: Connection refused: connect...Encountering error when connecting MSSQL Server 2005 using Hibernate 3.0 
Error in MySQL Procedure Using JAVA Code
Error in MySQL Procedure Using JAVA Code  The following Java code... abdt WHERE student_id = std;\n\nEND;\n//\nDELIMITER... the following way: String query=""; query = "CREATE PROCEDURE process
programming error
programming error  I got an error when i did the following program the prg. is to "select the name from database when the age is given for the respective name" error i got is:SQL exception please give me the solution by providing
Error in JfreeChart
Error in JfreeChart  I am getting an error when i am using jfreechart for graph generation, that is: D:\my\linechart.java:5: package org.jfree.chart... solution to the problem.   Hello Friend, Please visit the following link

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.