Navicat connects to the Oracle database and reports an error ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA

Local Navicat version: 12.1.16 (64-bit)

Problem: When using Navicat to connect to the Oracle database, an error ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA was reported
insert image description here

Cause of the problem: Check that the host, port, user name and password are correct, and the service name is not filled. When Navicat connects to Oracle, the service name is ORCL by default, and an error will be reported if it is not filled or filled in incorrectly.
insert image description here

Solution: Fill in the correct service name and the connection will be successful
insert image description here

Guess you like

Origin blog.csdn.net/weixin_48415452/article/details/131181693