oracle / node-oracledb

Oracle Database driver for Node.js maintained by Oracle Corp.
http://oracle.github.io/node-oracledb/
Other
2.25k stars 1.07k forks source link

Is there a way to get the instant client version? #1463

Closed deostroll closed 2 years ago

deostroll commented 2 years ago

Is there some way to get what instant client oracledb module is working with? This might help with including that data in performance reports and stuff.

cjbj commented 2 years ago

It's been discussed but I don't believe this is portably (or easily) available from the OS. PRs welcome. The closest might be to enable tracing with DPI_DEBUG_LEVEL=64

deostroll commented 2 years ago

Closing the issue.

Given the constraint, I think the better way to get hold of where your oracle instant client is installed, and, its better that path name has the desired version somewhere in its name. On windows we might need a better alternative. But on linux-based OS we can echo the environment variable LD_LIBRARY_PATH (or within node process.env.LD_LIBRARY_PATH).