ORA-12170: TNS:Connect timeout occurred

前端 未结 8 2017
梦毁少年i
梦毁少年i 2020-12-03 01:48

I was trying to connect to the database here in my laptop using Oracle Toad but I kept on having this error:

ORA-12170: TNS:Connect timeout occurred

8条回答
  •  不知归路
    2020-12-03 02:08

    [Gathering the answers in the comments]

    The problem is that the Oracle service is running on a IP address, and the host is configured with another IP address.

    To see the IP address of the Oracle service, issue an lsnrctl status command and check the address reported (in this case is 127.0.0.1, the localhost):

    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    

    To see the host IP address, issue the ipconfig (under windows) or ifconfig (under linux) command.

    Howewer, in my installation, the Oracle service does not work if set on localhost address, I must set the real host IP address (for example 192.168.10.X).

    To avoid this problem in the future, do not use DHCP for assigning an IP address of the host, but use a static one.

提交回复
热议问题