Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows 下 nodejs 操作 oracledb #26

Open
huangshuwei opened this issue May 14, 2019 · 0 comments
Open

windows 下 nodejs 操作 oracledb #26

huangshuwei opened this issue May 14, 2019 · 0 comments

Comments

@huangshuwei
Copy link
Owner

huangshuwei commented May 14, 2019

项目中安装oracledb 包

npm i oracledb

安装 oracle 驱动

1、安装包位数(32、64)必须和当前系统相同
2、安装时选择安装类型为“管理员”

设置系统环境变量(具体根据安装目录而定):

D:\oracle\app\shuwei\product\11.2.0\client_1\BIN

设置数据库连接字符串

在目录 D:\oracle\app\shuwei\product\11.2.0\client_1\network\admin 下 新增 “tnsnames.ora”文件。内容形如:

EMVST =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.16.xx.xxx)(PORT = xxxx))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = xxxxx)
    )
  )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant