Oracle SQL Developer: Failure - Test failed: The Network Adapter could not establish the connection?

后端 未结 10 1670
孤城傲影
孤城傲影 2020-12-09 04:52

Problem

Please note that I changed details for security purposes. However, the problem remains intact.

I installed an Oracle 11g database on a server at l

相关标签:
10条回答
  • 2020-12-09 05:43

    For me, the HOST was set differently in tnsnames.ora and listener.ora. One was set to the full name of the computer and the other was set to IP address. I synchronized them to the full name of the computer and it worked. Don't forget to restart the oracle services.

    I still don't understand exactly why this caused problem because I think IP address and computer name are ultimately same in my understanding.

    0 讨论(0)
  • 2020-12-09 05:44

    I solved just by: given correct host and port so:

    1. Open oracle net manager
    2. Local
    3. Listener

    in Listener on address 2 then copy host to Oracle Developer

    finally connect to oracle

    0 讨论(0)
  • 2020-12-09 05:44

    only start listner then u can connect with database. command run on editor:

    lsnrctl start

    its work fine.

    0 讨论(0)
  • 2020-12-09 05:45

    You can locate a file named listener.ora under the installation folder oraclexe\app\oracle\product\11.2.0\server\network\ADMIN It contains the following entries

    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = PLSExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        )
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
          (PROGRAM = extproc)
        )
      )
    
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
          (ADDRESS = (PROTOCOL = TCP)(HOST = Codemaker-PC)(PORT = 1521))
        )
      )
    
    DEFAULT_SERVICE_LISTENER = (XE)
    

    You should verify the HOST (Here it is Codemaker-PC) should be the computer name. If it's not correct the change it as computer name.

    then try the following command on the command prompt run as administrator,

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