【发布时间】:2021-06-25 01:59:48
【问题描述】:
我正在尝试在 Centos7 上安装我的 Web 应用程序。 我已经在我的 Windows 上进行了测试,一切正常。
我遵循了 oracle 的指令。但是,无法连接到 DB。
机器中已经有一个正在运行的程序,所以我不相信 oracle 没有像错误所说的那样安装。请检查打击和帮助。
添加到.bashrc:
- 导出 LD_LIBRARY_PATH=/home/bcweb/oracleclient/instantclient_19_3
创建了 oracleclient 文件夹并添加了所有需要的文件 2.
-r--r--r-- 1 bcweb oinstall 5780 4월 17 2019 BASIC_LICENSE
-rw-r--r-- 1 bcweb oinstall 1632 4월 17 2019 BASIC_README
-rw-r--r-- 1 bcweb oinstall 41840 4월 17 2019 adrci
-rw-r--r-- 1 bcweb oinstall 59296 4월 17 2019 genezi
lrwxrwxrwx 1 bcweb oinstall 17 3월 29 08:18 libcintsh.so -> libclntsh.so.19.3
-rw-r--r-- 1 bcweb oinstall 17 4월 17 2019 libclntsh.so
-rw-r--r-- 1 bcweb oinstall 17 4월 17 2019 libclntsh.so.10.1
-rw-r--r-- 1 bcweb oinstall 17 4월 17 2019 libclntsh.so.11.1
-rw-r--r-- 1 bcweb oinstall 17 4월 17 2019 libclntsh.so.12.1
-rw-r--r-- 1 bcweb oinstall 17 4월 17 2019 libclntsh.so.18.1
-rw-r--r-- 1 bcweb oinstall 79961792 4월 17 2019 libclntsh.so.19.1
-rw-r--r-- 1 bcweb oinstall 8041608 4월 17 2019 libclntshcore.so.19.1
-r--r--r-- 1 bcweb oinstall 3609536 4월 17 2019 libipc1.so
-r--r--r-- 1 bcweb oinstall 478432 4월 17 2019 libmql1.so
-rw-r--r-- 1 bcweb oinstall 6587832 4월 17 2019 libnnz19.so
-rw-r--r-- 1 bcweb oinstall 15 4월 17 2019 libocci.so
-rw-r--r-- 1 bcweb oinstall 15 4월 17 2019 libocci.so.10.1
-rw-r--r-- 1 bcweb oinstall 15 4월 17 2019 libocci.so.11.1
-rw-r--r-- 1 bcweb oinstall 15 4월 17 2019 libocci.so.12.1
-rw-r--r-- 1 bcweb oinstall 15 4월 17 2019 libocci.so.18.1
-rw-r--r-- 1 bcweb oinstall 2339896 4월 17 2019 libocci.so.19.1
-rw-r--r-- 1 bcweb oinstall 130515320 4월 17 2019 libociei.so
-r--r--r-- 1 bcweb oinstall 153624 4월 17 2019 libocijdbc19.so
-rw-r--r-- 1 bcweb oinstall 115976 4월 17 2019 liboramysql19.so
drwxr-xr-x 3 bcweb oinstall 19 8월 27 2020 network
-rw-r--r-- 1 bcweb oinstall 4210517 4월 17 2019 ojdbc8.jar
-rw-r--r-- 1 bcweb oinstall 1680074 4월 17 2019 ucp.jar
-rw-r--r-- 1 bcweb oinstall 236960 4월 17 2019 uidrvci
-rw-r--r-- 1 bcweb oinstall 74263 4월 17 2019 xstreams.jar
错误:
Error: DPI-1047: Cannot locate a 64-bit Oracle Client library: "libclntsh.so: cannot open shared object file: No such file or directory". See https://oracle.github.io/node-oracledb/INSTALL.html for help
Node-oracledb installation instructions: https://oracle.github.io/node-oracledb/INSTALL.html
You must have 64-bit Oracle client libraries in LD_LIBRARY_PATH, or configured with ldconfig.
If you do not have Oracle Database on this computer, then install the Instant Client Basic or Basic Light package from
http://www.oracle.com/technetwork/topics/linuxx86-64soft-092277.html
at OracleDb.getConnection (/home/bcweb/web/backend/node_modules/oracledb/lib/oracledb.js:272:25)
at OracleDb.getConnection (/home/bcweb/web/backend/node_modules/oracledb/lib/util.js:176:19)
【问题讨论】:
标签: oracle centos node-oracledb