Navicat 报错ORA-12514:TNS:listener does not currently know of service requested in connect descriptor

今天和同事使用Navicat连接Oracle的时候报错:ORA-12514:TNS:listener does not currently know of service requested in connect descriptor

经过研究发现了错误,现在一起看下解决办法

第一步

错误提示:ORA-12514:TNS:listener does not currently know of service requested in connect descriptor
我这边使用的Navicat版本为12版本:
Navicat 报错ORA-12514:TNS:listener does not currently know of service requested in connect descriptor_第1张图片
解决错误:
1.下载Oracle Instant Client Downloads
Navicat 报错ORA-12514:TNS:listener does not currently know of service requested in connect descriptor_第2张图片
ps:这个你们直接去官网下载就可以,我会把官网下载方法写下面

2官网下载方法
Navicat 报错ORA-12514:TNS:listener does not currently know of service requested in connect descriptor_第3张图片
Navicat 报错ORA-12514:TNS:listener does not currently know of service requested in connect descriptor_第4张图片
ps:.如果没有登录,则会跳转到下面的登录界面。没有账户就注册个账户,有就直接输入账号跟密码,点击“登录”按钮就会自动下载那个zip压缩包了。

3.下载好压缩包后解压,并将解压后文件夹放到安装的Navicat Premium 12文件夹里面

解压:
Navicat 报错ORA-12514:TNS:listener does not currently know of service requested in connect descriptor_第5张图片
放到我的Navicat 安装路径中
Navicat 报错ORA-12514:TNS:listener does not currently know of service requested in connect descriptor_第6张图片Navicat 报错ORA-12514:TNS:listener does not currently know of service requested in connect descriptor_第7张图片4.打开Navicat Premium程序,打开“工具 - 选项 - 环境 - OCI环境 - OCI library (oci.dll)”,然后将你刚才下载的文件夹中的oci.dll文件的完整目录填上,点击确定。
Navicat 报错ORA-12514:TNS:listener does not currently know of service requested in connect descriptor_第8张图片

测试一下:

重启后成功

你可能感兴趣的:(Oracle,数据库)