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
npm
npm install oracledbMethods
No methods match this filter.
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.
- End-User Security Context Payload Creation Using node-oracledb Methods 4.7.2. (https://node-oracledb.readthedocs.io/)
- End-User Security Context Payload Creation Using endUserSecurityProvider Plugin 4.8. (https://node-oracledb.readthedocs.io/)
- Changing Passwords and Connecting with an Expired Password 4.14.1. (https://node-oracledb.readthedocs.io/)
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.
Report a problem with this API docOpens a pre-filled issue on GitHub.