节点 js 连接到 Oracle DB 给出 DPI-1047
Node js connection to Oracle DB gives DPI-1047
我正在尝试将 Oracle 数据库连接到节点 JS。 SQL developer 已经安装并成功运行,SQL developer 已使用 tnsnames.ora 文件连接到服务器数据库。但是当我尝试 运行 下面的代码
oracledb.getConnection({
user : "Admin",
password : "Password",
connectString : "(DESCRIPTION =(ADDRESS = (PROTOCOL = tcp)(HOST =
xx.xx.xx.xx)(PORT = 1521)) (CONNECT_DATA =(SERVER = DEDICATED)
(SERVICE_NAME = sblbld)))"})
it throws below error:
Error: DPI-1047: Cannot locate a 64-bit Oracle Client library: "C:\app\product
1.1.0\client_1\bin\oci.dll is not the correct architecture". See https://oracle.
github.io/odpi/doc/installation.html#windows for help
Node-oracledb installation instructions: https://oracle.github.io/node-oracledb/
INSTALL.html
You must have 64-bit Oracle client libraries in your PATH environment variable.
If you do not have Oracle Database on this computer, then install the Instant Client Basic or Basic Light package from.
有人可以帮忙吗。
谢谢
SQL 开发人员没有抱怨与您的 node.js 应用相同的问题的原因是 SQL 开发人员使用的是纯 Java JDBC 驱动程序连接到数据库。 JDBC thin driver 完全写在 Java 中,包含在产品 "SQL Developer".
的安装中
如果您要求 SQL 开发人员使用 thick 驱动程序(OCI 库)连接到数据库,您应该会收到类似的错误消息
在某些情况下,您需要厚驱动程序才能在 SQL Developer 中进行连接。这个 link 会解释什么时候:
https://www.thatjeffsmith.com/archive/2019/04/sql-developer-19-1-connections-thick-or-thin/
您的 node.js oracledb 模块需要客户端库 (OCI) 才能连接到数据库,因此请在尝试任何连接之前下载并安装 oracle 即时客户端。
祝你好运
我正在尝试将 Oracle 数据库连接到节点 JS。 SQL developer 已经安装并成功运行,SQL developer 已使用 tnsnames.ora 文件连接到服务器数据库。但是当我尝试 运行 下面的代码
oracledb.getConnection({
user : "Admin",
password : "Password",
connectString : "(DESCRIPTION =(ADDRESS = (PROTOCOL = tcp)(HOST =
xx.xx.xx.xx)(PORT = 1521)) (CONNECT_DATA =(SERVER = DEDICATED)
(SERVICE_NAME = sblbld)))"})
it throws below error:
Error: DPI-1047: Cannot locate a 64-bit Oracle Client library: "C:\app\product
1.1.0\client_1\bin\oci.dll is not the correct architecture". See https://oracle.
github.io/odpi/doc/installation.html#windows for help
Node-oracledb installation instructions: https://oracle.github.io/node-oracledb/
INSTALL.html
You must have 64-bit Oracle client libraries in your PATH environment variable.
If you do not have Oracle Database on this computer, then install the Instant Client Basic or Basic Light package from.
有人可以帮忙吗。 谢谢
SQL 开发人员没有抱怨与您的 node.js 应用相同的问题的原因是 SQL 开发人员使用的是纯 Java JDBC 驱动程序连接到数据库。 JDBC thin driver 完全写在 Java 中,包含在产品 "SQL Developer".
的安装中如果您要求 SQL 开发人员使用 thick 驱动程序(OCI 库)连接到数据库,您应该会收到类似的错误消息
在某些情况下,您需要厚驱动程序才能在 SQL Developer 中进行连接。这个 link 会解释什么时候: https://www.thatjeffsmith.com/archive/2019/04/sql-developer-19-1-connections-thick-or-thin/
您的 node.js oracledb 模块需要客户端库 (OCI) 才能连接到数据库,因此请在尝试任何连接之前下载并安装 oracle 即时客户端。
祝你好运