API Reference

node-oracledb

Official Node.js driver for Oracle Database with connection pooling, promises, and bulk operations.

Official Documentation ↗
CompatibilityThis documentation covers version v6. Check the official docs for the latest API surface.

Installation

npmnpm install oracledb

Methods

node-oracledb connects to Oracle Database, managing pooling and bind variables with either Thin or Thick mode.

Key Features

  • Built-in connection pooling
  • Bind variables and OUT binds
  • executeMany for bulk DML

Usage Notes

Pin a version and check the official docs for the API surface you depend on before upgrading.

Security notes

Quoted verbatim from the official documentation; this is not a complete threat model. 来源:https://node-oracledb.readthedocs.io/ · 取证方式:HTTP GET 官方 README/文档页(HTML 去标签) · 抓取时间:2026-11-07T13:51:22.828Z.

FAQ

What is the difference between Thin and Thick mode?
Thin mode is pure JavaScript and needs no Oracle client libraries. Thick mode loads the OCI client for extra features such as advanced queuing.
How do I get auto-increment ids back?
Use the RETURNING INTO clause with an OUT bind and set the autoCommit option, or fetch the value from the OUT bind after execute.
Why close the connection?
Pooled connections must be returned with connection.close() so other requests can reuse them; leaking them exhausts the pool.