ORA-12170: TNS:Connect timeout occurred

前端 未结 8 1940
梦毁少年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:14

    I was getting the same error while connecting my "hr" user of ORCLPDB which is a pluggable database.

    First, get hostname and port number by typing a command lsnrctl status on windows command prompt. In my case, it was 127.0.0.1 with port number as 1521

    Second, enter the below command with your hostname and port number:

    sqlplus username/password@HostName:Port Number/PluggableDatabaseName.
    

    For example:

    sqlplus hr/hr@127.0.0.1:1521/ORCLPDB.
    
    0 讨论(0)
  • 2020-12-03 02:17
    open sqlnet.ora  
    
    NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)
    SQLNET.INBOUND_CONNECT_TIMEOUT=360
    SQLNET.RECV_TIMEOUT=10
    SQLNET.SEND_TIMEOUT=10
    

    http://docs.oracle.com/cd/B19306_01/network.102/b14213/sqlnet.htm

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