Skip to content

Attribute OCI_ATTR_PASSWORD is greater than the maximum allowable length of 1024 #47

Description

@ricky-rockstar

For a source PHP build including these components:

  • HTTPD 2.4.66
  • PHP 8.5.5
  • OCI8 3.4.1
  • instantclient-basic-linux.x64-23.26.1.0.0

the following command:

./php -r "var_dump(oci_connect('B','A','127.0.0.1/TEST'));"

reliably fails to connect to

Oracle Database 23ai Free Release 23.0.0.0.0

with the following error message :

PHP Warning:  oci_connect(): ORA-24960: the attribute  OCI_ATTR_PASSWORD is greater than the maximum allowable length of 1024
Help: https://docs.oracle.com/error-help/db/ora-24960/ in Command line code on line 1

It is clear in the above command that the password is not too long. I know 100% that it is not the connect string as changing it to an incorrect value results in a different error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions