Problems with Mac using SQL Developer to connect to Oracle database

using PL/SQL Developer to connect to Windows is normal, and the tns configuration is as follows

  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.101)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
  )

recently, when I installed a new SQL Developer connection in MacBook, I chose to use SID to configure orcl connection. Times error:

The Network Adapter could not establish the connection

an error occurs when the service name is configured as an orcl connection:

Unknown host specified

how to solve this problem?

Mar.09,2021
Menu