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 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 Tutorials/Questions & Answers:
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
ModuleNotFoundError: No module named 'connectIO'
program is throwing following error: ModuleNotFoundError: No module named...;connectIO' error? Thanks   Hi, In your python environment you have to install padas library. You can install connectIO python with following
Advertisements
ModuleNotFoundError: No module named 'connectIO'
program is throwing following error: ModuleNotFoundError: No module named...;connectIO' error? Thanks   Hi, In your python environment you have to install padas library. You can install connectIO python with following
Error n Exception
Error n Exception  Difference between errors and exceptions
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
getting following error org.hibernate.AnnotationException: No identifier specified for entity: inheritance_tutorial17.TwoWheeler
getting following error org.hibernate.AnnotationException: No identifier specified for entity: inheritance_tutorial17.TwoWheeler  when i am running following code i am getting following error... package inheritance_tutorial17
ModuleNotFoundError: No module named 'listener'
program is throwing following error: ModuleNotFoundError: No module named... to install padas library. You can install listener python with following... library, ModuleNotFoundError: No module named 'listener' error
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
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
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
ModuleNotFoundError: No module named 'constant_listener'
Python program is throwing following error: ModuleNotFoundError: No module... named 'constant_listener' error? Thanks   Hi, In your..._listener python with following command: pip install constant_listener
ModuleNotFoundError: No module named 'message-listener'
Python program is throwing following error: ModuleNotFoundError: No module... named 'message-listener' error? Thanks   Hi, In your...-listener python with following command: pip install message-listener After
ModuleNotFoundError: No module named 'ndarray-listener'
Python program is throwing following error: ModuleNotFoundError: No module... named 'ndarray-listener' error? Thanks   Hi, In your...-listener python with following command: pip install ndarray-listener After
ModuleNotFoundError: No module named 'ndarray-listener'
Python program is throwing following error: ModuleNotFoundError: No module... named 'ndarray-listener' error? Thanks   Hi, In your...-listener python with following command: pip install ndarray-listener After
ModuleNotFoundError: No module named 'pytest-listener'
Python program is throwing following error: ModuleNotFoundError: No module... 'pytest-listener' error? Thanks   Hi, In your python... python with following command: pip install pytest-listener After
ModuleNotFoundError: No module named 'twitch-listener'
Python program is throwing following error: ModuleNotFoundError: No module... 'twitch-listener' error? Thanks   Hi, In your python... python with following command: pip install twitch-listener After
ModuleNotFoundError: No module named 'twitch-listener'
Python program is throwing following error: ModuleNotFoundError: No module... 'twitch-listener' error? Thanks   Hi, In your python... python with following command: pip install twitch-listener After
ModuleNotFoundError: No module named 'Webhook-Listener'
Python program is throwing following error: ModuleNotFoundError: No module... named 'Webhook-Listener' error? Thanks   Hi, In your...-Listener python with following command: pip install Webhook-Listener After
ModuleNotFoundError: No module named 'wsgi_listener'
Python program is throwing following error: ModuleNotFoundError: No module named... 'wsgi_listener' error? Thanks   Hi, In your python... with following command: pip install wsgi_listener After
ModuleNotFoundError: No module named 'constant_listener'
Python program is throwing following error: ModuleNotFoundError: No module... named 'constant_listener' error? Thanks   Hi, In your..._listener python with following command: pip install constant_listener
ModuleNotFoundError: No module named 'github_listener'
Python program is throwing following error: ModuleNotFoundError: No module... 'github_listener' error? Thanks   Hi, In your python... python with following command: pip install github_listener After
ModuleNotFoundError: No module named 'keyboard-listener'
Python program is throwing following error: ModuleNotFoundError: No module... named 'keyboard-listener' error? Thanks   Hi, In your...-listener python with following command: pip install keyboard-listener
Java listener
Java listener  What is source and listener
error
error  java.net.SocketException: java.net.ConnectException: Connection refused: connect at com.mysql.jdbc.StandardSocketFactory.connect... error
Listener ports - JMS
Listener ports Error in JMS  Hi, I am getting an listener ports error in JMS. Does anyone have solution
ModuleNotFoundError: No module named 'hs-social-listener'
Python program is throwing following error: ModuleNotFoundError: No module... named 'hs-social-listener' error? Thanks   Hi, In your...-social-listener python with following command: pip install hs-social-listener
ModuleNotFoundError: No module named 'multi_sqs_listener'
Python program is throwing following error: ModuleNotFoundError: No module... named 'multi_sqs_listener' error? Thanks   Hi, In your..._sqs_listener python with following command: pip install multi_sqs_listener
ModuleNotFoundError: No module named 'notifo-imap-listener'
, My Python program is throwing following error: ModuleNotFoundError...: No module named 'notifo-imap-listener' error? Thanks   Hi... notifo-imap-listener python with following command: pip install notifo-imap
ModuleNotFoundError: No module named 'robotframework-historic-listener'
; Hi, My Python program is throwing following error... with following command: pip install robotframework-historic-listener After..., ModuleNotFoundError: No module named 'robotframework-historic-listener' error
ModuleNotFoundError: No module named 'Canal-dispatch-listener'
, My Python program is throwing following error: ModuleNotFoundError...: No module named 'Canal-dispatch-listener' error? Thanks   ... install Canal-dispatch-listener python with following command: pip install
ModuleNotFoundError: No module named 'hs-social-listener'
Python program is throwing following error: ModuleNotFoundError: No module... named 'hs-social-listener' error? Thanks   Hi, In your...-social-listener python with following command: pip install hs-social-listener
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
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
Java event-listener
Java event-listener  What is the relationship between an event-listener interface and an event-adapter class
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
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
error
error  while iam compiling iam getting expected error
Error-
Error-   Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me
error
error  i have 404 error in my program plz tell me yhe solution about
error
error  i have 404 error in my program plz tell me yhe solution about
error
/ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest
Error
Error  I have created ajax with php for state and city. When I change state then city will not come in dropdown list and it give me error as 'Unknown Runtime Error'. This error come only in IE browser, but in other brower
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
error
error  java.lang.unsupportedclassversionerror:bad major version at offset 6 how to solve this????   Hi, Please check the version of framework used and also the JDK version.ADS_TO_REPLACE_1 This type error also comes
error
error  When I deploye the example I have this message cannot Deploy HelloWorld Deployment Error for module: HelloWorld: Error occurred during deployment: Exception while deploying the app [HelloWorld
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText

Ads