cjbj
Repos
22
Followers
119
Following
6

Official source of container configurations, images, and examples for Oracle products and projects

5654
4922

Oracle Database driver for Node.js maintained by Oracle Corp.

2096
1027

Python interface to Oracle Database now superseded by python-oracledb

C
828
332

Jupyter notebooks showing best practices for using cx_Oracle, the Python DB API for Oracle Database

Events

closed issue
DPY-3015: password verifier type 09X939 is not supported by python-oracledb in thin mode

Any clue about how to solve this issue without installing any client as there is no internet connection in the pc?

Created at 3 days ago
issue comment
Add support for Apple Silicon - darwin arm64

A related link: https://github.com/oracle/docker-images/issues/2447

Created at 3 days ago
issue comment
UnicodeDecodeError: 'utf-8' ocdec can't decode byte 0x96 in position 1283: invalid start byte

Connection = Python-oracledb.connect (user=USERNAME, password=PASSWORD, dsn = DSN, nencoding=UTF-16, encoding=UTF-16)

For completeness, the encoding and nencoding parameters are ignored in python-oracledb (and can be removed) because the driver uses UTF-8 as mentioned by @anthony-tuininga.

Created at 4 days ago
issue comment
vscode + WSL2 64 ubuntu-18.04 DPI-1047: Cannot locate a 64-bit Oracle Client library. help me plz
  • Unless you really need to connect to something like Oracle DB 9.2, you could/should upgrade Instant Client.
  • On Linux, calling initOracleClient() doesn't do what you (and we all) want it to do. The error about libnnz will occur if the system library search path (e.g. LD_LIBRARY_PATH, or that set by ldconfig) doesn't contain the Oracle client libraries before Node.js starts. You should avoid passing libDir to initOracleClient() on Linux.
  • From Googling for the people who are using Instant Client on WSL, it seems like all you would need is LD_LIBRARY_PATH set. Make sure Node.js is being invoked by a shell where LD_LIBRARY_PATH is set correctly.
Created at 5 days ago
issue comment
Possible memory leak when using fetchone or fetchall
Created at 6 days ago
issue comment
Please make node-oracledb compatible with bun

@sosoba Proof of concept looks fine. We are almost at the stage where we know what internal approvals & signoffs we need. Hopefully this will be smooth since python-oracledb has set a precedent. Cross your fingers.

Created at 1 week ago
issue comment
Possible memory leak when using fetchone or fetchall

Can you include a complete, runnable script with the exact SQL statement? Also include the CREATE TABLE statement. Show us how you are measuring the memory use and what results you are seeing. Finally, what are the versions of cx_Oracle and of the Oracle client libraries used? You can get these by run the script shown in the issue template.

Created at 1 week ago
issue comment
Always skip randomly failing OCI8 extauth tests

@mvorisek how long does nslookup take in that environment? You could turn on Oracle network tracing to check if snlinGetAddrInfo is being called multiple times. (Ping me if you need steps). Our net team say it's basically a DNS setup issue as DNS lookup shouldn't hang.

Created at 1 week ago
issue comment
dbconfig.js contains connectString shall be replaced by connectionString

@jifbrodeur No problems at all.

Created at 1 week ago
issue comment
dbconfig.js contains connectString shall be replaced by connectionString

Do you mean https://github.com/oracle/node-oracledb/blob/main/examples/connect.js doesn't run for you? It works fine for me without any change. Can you triple-check whether you had a typo somewhere? Typos are easy to make, and hard to spot!

$ node connect.js
Connection was successful!

The attribute connectString has been in node-oracledb since day 1. It was back in node-oracledb 2.1 that we added an alias connectionString for the same thing. I could understand why connectionString might not work for older versions of node-oracledb, but connectString should always work in any version.

Created at 1 week ago
python-oracledb LiveLab session #39

@arabellayao I understand that, but you still don't need to close PRs since the owner can rebase them on the latest main. Creating a new PR is just management overhead. And in busy projects it would be impossible for any PR to always be on the latest main.

Created at 1 week ago
issue comment
Fallback by thick mode

With Anthony's changes you won't need find_library() because your script can check (or ignore) if init_oracle_client() fails, which will leave you in Thin mode.

Created at 1 week ago
issue comment
Segmentation Fault when Executing PLSQL at Production Load.

@dannyb648 knowing whether it is a LOB or an object would be a big help. In case the issue is lower in the stack, can you enable OCI tracing by either setting the environment variable EVENT_10842=15 (if you know where logs go), or by creating a sqlnet.ora file with something like this which will create logs in /tmp/oradiag_*/diag/clients/user_*/host*/trace?:

ADR_BASE=/tmp
DIAG_ADR_ENABLED=ON
EVENT_10842=15

@pvenkatraman please take a look.

Created at 1 week ago
python-oracledb LiveLab session #39

@arabellayao please don't close PRs like this. This PR can easily be rebased on main.

Created at 1 week ago
issue comment
Encountered <NJS-018: invalid ResultSet> (it does not always happen)

You wrote

get connection --> [ queryStream at stream.on('data') -> at stream.on('end')] -> close connection

However the warning from examples/selectstream.js is

Note: do not close connections on 'end'.

You should only close connections after the Stream 'close' event.

Created at 1 week ago
issue comment
Encountered <NJS-018: invalid ResultSet> (it does not always happen)

@zhaoanna PS it's time to update from Node 8 and node-oracledb 4.2 more recent versions.

Created at 1 week ago
issue comment
Encountered <NJS-018: invalid ResultSet> (it does not always happen)

Compare your code with the doc and examples to make sure you are not closing resources too early. Check the scope of things like connections to make sure you are not overwriting a connection prematurely.

Created at 1 week ago