PLSQL Developer 无法找到OCI dll

运行 PL/SQL Developer 14(64bit) 时,提示 

Initialization error 

无法找到OCI.dll 

OracleHomeKey:

OracleHomeDir: 

解决方式:

 1、从oracle 官方网站下载数据库瘦客户端链接工具

     instantclient-basic-windows.x64-21.9.0.0.0dbru.zip  

,解压在“D:\instantclient_21_9”文件夹下

2、创建 BAT命令文件,命名文件名为 PLSQLDEVSTART.BAT,详细代码如下:

@echo off

#设置OracleHome
#set ORACLE_HOME=D:\DevSuiteHome_1
set ORACLE_HOME=D:\instantclient_21_9
set Path=%ORACLE_HOME%;%Path%
set LD_LIBRARY_PATH=%ORACLE_HOME%
set SQL_PATH=%ORACLE_HOME%
set TNS_ADMIN=%ORACLE_HOME%\network\ADMIN
#设置你需要的语言
set NLS_LANG=SIMPLIFIED CHINESE_CHINA.ZHS16GBK
#SET NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
echo %NLS_LANG%
echo %SQL_PATH%
echo %TNS_ADMIN%

#跳转到你的PLSQL Developer目录
cd "D:\PLSQLDeveloper14_x64"

#启动plsqldev
start plsqldev.exe

 

3、 执行 PLSQLDEVSTART.BAT文件 。 

 

PS:

instantclient-basic-windows.x64-21.9.0.0.0dbru.zip

All files required to run OCI, OCCI, and JDBC:OCI applications

(83,142,984 bytes) (cksum - 4043771063)

Review the Operating System Checklist for Oracle Database Client Installation. Note Windows 7 is not supported.

The 21c Basic package requires the Microsoft Visual Studio 2017 Redistributable.

 

posted @ 2023-05-19 08:59  samrv  阅读(3086)  评论(0编辑  收藏  举报