sqldeveloper error message: Network adapter could not establish the connection error

前端 未结 11 1479
面向向阳花
面向向阳花 2021-01-01 12:55

I had made connection to the remote oracle database through sqldeveloper on my system. Suddenly the power went down and I had to restart the system. Now, when I am trying t

相关标签:
11条回答
  • 2021-01-01 13:36

    Control Panel > Administrative Tools > Services >

    Start OracleOraDb11g_home1TNSListener

    0 讨论(0)
  • 2021-01-01 13:38

    https://forums.oracle.com/forums/thread.jspa?threadID=2150962

    Re: SQL DevErr:The Network Adapter could not establish the connection VenCode20 Posted: Dec 7, 2011 3:23 AM in response to: MehulDoshi Reply

    This worked for me:

    Open the "New/Select Database Connection" dialogue and try changing the connection type setting from "Basic" to "TNS" and then selecting the network alias (for me: "ORCL").

    0 讨论(0)
  • 2021-01-01 13:41

    If you have such error when using remote oracle database, you can delete your tnsname and listener then create new config with "hostname" or ip address instead of "localhost". such as listener.ora

    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
        )
    

    tnsnames.ora

    DB =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = TCP)(HOST = hostname)(PORT = 1521))
        )
        (CONNECT_DATA =
          (SERVICE_NAME = DB)
        )
      )
    

    It works fine for me.

    0 讨论(0)
  • 2021-01-01 13:42

    I have had the same problem. I am using windows 7 and this should also work for windows 8. The services responsible for the TNS listener and database were stopped when I looked in the Task Manager.

    1: Hit Ctrl-Alt-Del and select "Start Task Manager".

    From there go to the "Services" tab.

    There are 5 services that need to be running for the database to be accessed correctly.

    In the list below "databasename" is the database name you assigned during creation without the quotes.

    I am also using database 11g, if you are using another type those fields would be different below. the * after home is the home install, if you have more than 1 database there would be home1, and home2

    These are the 5 services

    1. OracleVssWriter"databasename"
    2. OracleService"databasename"
    3. OracleOraDb11g_home*TNSListener
    4. OracleOraDb11g_home*ClrAgent
    5. OracleDBConsole"databasename"

    If any of these services are stopped right click on them and start them. After they have all started go back into SQL developer and re-try the connection and it should work.

    0 讨论(0)
  • 2021-01-01 13:42

    Problem - I was not able to connect to DB through sql developer.

    Solution - First thing to note is that SQL Developer is only UI to access to your database. I need to connect remote database not the localhost so I need not to install the oracle 8i/9i. Only I need is oracle client to install. After installation it got the path in environment variable like C:\oracle\product\10.2.0\client_1\bin. Still I was not able to connect the db.

    Things to be checked.

    1. Listner/port should be up for the server IP where you want to connect.
    2. you will be able to ping the server. go to cmd prompt. type ping server Ip then enter.
    3. telnet the server IP and port. should be succesful.

    If all points are ok for you then check from where you are running sql developer .exe file. I pasted sql developer folder to C:\oracle folder and run the .exe file from here and I am able to connect the database. and my problem of 'IO Error: The Network Adapter could not establish the connection' got resolved. Hurrey... :) :)

    0 讨论(0)
提交回复
热议问题