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

AN EXCEPTION OCCURRED IN DRIVER: ORA-01017: INVALID USERNAME/PASSWORD; LOGON DENIED in PHP #4732

Closed
kk156677 opened this issue Jul 26, 2021 · 2 comments

Comments

@kk156677
Copy link

Bug Report

File: /appfolder/apps/appname/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractOracleDriver.php:65
Message: An exception occurred in driver: ORA-01017: invalid username/password; logon denied

ADDITIONAL INFORMATION:
Doctrine\DBAL\Exception\ConnectionException

Stack trace:
#0 /appfolder/apps/appname/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(176): Doctrine\DBAL\Driver\AbstractOracleDriver->convertException('An exception oc...', Object(Doctrine\DBAL\Driver\OCI8\OCI8Exception))
#1 /appfolder/apps/appname/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php(161): Doctrine\DBAL\DBALException::wrapException(Object(Doctrine\DBAL\Driver\OCI8\Driver), Object(Doctrine\DBAL\Driver\OCI8\OCI8Exception), 'An exception oc...')
#2 /appfolder/apps/appname/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/Driver.php(48): Doctrine\DBAL\DBALException::driverException(Object(Doctrine\DBAL\Driver\OCI8\Driver), Object(Doctrine\DBAL\Driver\OCI8\OCI8Exception))
#3 /uc01/apps/parking_portal/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(372): Doctrine\DBAL\Driver\OCI8\Driver->connect(Array, 'dbusername', 'oldpassword', Array)......

I'm getting the above error in my PHP 7.3 application(Linux server apache) in the Test environment whereas Production is working fine. I checked Oracle DB user name and password everything is correct and able to connect with those credentials in SQL Developer.

One weird thing I observed in the Stack Trace, even after updating the password in the PHP file and still getting the old password in the Stack Trace #3 mentioned 'old password'.

Screenshot FYR:
image

Any help or suggestions will be greatly appreciated!

@morozov
Copy link
Member

morozov commented Jul 27, 2021

Hi, we try to keep Github issues for bug reports and feature requests only. If you have a question, please ask it on Stack Overflow or in one of the channels mentioned at https://www.doctrine-project.org/community/index.html.

The above behavior seems to be caused by the logic outside of the DBAL. We cannot fix it here.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants