Listener refused the connectio n with the following error

Ads
 

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

Ads









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
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
error
error  java.net.SocketException: java.net.ConnectException: Connection refused: connect at com.mysql.jdbc.StandardSocketFactory.connect... error
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 '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
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 '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
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
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-
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  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

Ads