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

ORA-24960 with macOS (ARM64) client library #465

Open
filiabel opened this issue Mar 11, 2025 · 6 comments
Open

ORA-24960 with macOS (ARM64) client library #465

filiabel opened this issue Mar 11, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@filiabel
Copy link

I have issues connecting to my Oracle 19c database using python-oracledb. I develop Node applications on the same machine, and have not had similar issues occuring with node-oracledb. No issues with similar application code on WSL Ubuntu.

The same issue has been discussed on Stack Overflow, but not for the macOS specific case.

  1. What versions are you using?
platform.platform: macOS-15.3.1-arm64-arm-64bit
sys.maxsize > 2**32: True
platform.python_version: 3.12.9
oracledb.__version__: 3.0.0
  1. Is it an error or a hang or a crash?
    Database error, crashes when calling create_pool.

  2. What error(s) or behavior you are seeing?
    DatabaseError: ORA-24960: the attribute OCI_ATTR_PASSWORD is greater than the maximum allowable length of 1024

  3. Does your application call init_oracle_client()?
    Yes, I am using thick mode.

  4. Include a runnable Python script that shows the problem.

import oracledb

oracledb.init_oracle_client()
pool = oracledb.create_pool(
    user="user",
    password="pw",
    dsn="your-dsn-string",
    min=1,
    max=5,
    increment=1,
)
@filiabel filiabel added the bug Something isn't working label Mar 11, 2025
@cjbj
Copy link
Member

cjbj commented Mar 12, 2025

What's the exact DB version?

What's your client version?

Is your password actually > 1024 characters?

@filiabel
Copy link
Author

Hi @cjbj. Thanks for reaching out.

What's the exact DB version?

Oracle Database 19c Enterprise Edition Release 19.0.0.0.0

What's your client version?

Basic Package v. 23.3.0.23.09 (latest from here)

Is your password actually > 1024 characters?

No, it is not.

The same code is running without problems in a Docker container starting like this:

FROM ghcr.io/oracle/oraclelinux9-python:3.12-20241217

RUN  dnf -y install oracle-instantclient-release-23ai-el9 && \
     dnf -y install oracle-instantclient-basiclite && \
     rm -rf /var/cache/dnf

@cjbj
Copy link
Member

cjbj commented Mar 17, 2025

I would expect this to be an Oracle Client issue.

@filiabel
Copy link
Author

Thanks @cjbj. I just find it odd that the same client library is working for node-oracledb?
Image

@hjamil-24
Copy link
Member

I tried with following configuration, and is not reproduced:

platform.platform: macOS-15.3.2-arm64-arm-64bit
sys.maxsize > 2**32: True
platform.python_version: 3.13.2
oracledb.__version__: 3.0.0
Basic Package v. 23.3.0.23.09
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.24.0.0.0

Probably, an exact db version can help us reproduce it.

@filiabel
Copy link
Author

Thanks for looking into this, @hjamil-24!

The exact version is Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production Version 19.18.0.0.0.
Sorry for not providing full version previously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants