0

i m suffering with the following error
Warning: oci_connect() [function.oci-connect]: ORA-01017: invalid username/password; logon denied in C:\wamp\www\New Folder\connection.php on line 4

but i've tried atleast 100 times, username and passwords both r correct

$conn=oci_connect("sysdba", "hammad90", "");
is thr any problem in the above code?

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by baig772
1

you must pass database name also

$conn=oci_connect("sysdba", "hammad90", $databasename);

0

i m suffering with the following error
Warning: oci_connect() [function.oci-connect]: ORA-01017: invalid username/password; logon denied in C:\wamp\www\New Folder\connection.php on line 4

but i've tried atleast 100 times, username and passwords both r correct

$conn=oci_connect("sysdba", "hammad90", "");
is thr any problem in the above code?

Try providing the dbname as a third parameter, it will suppress any errors.

if (isset($this->_config['dbname'])) {
            $this->_connection = @oci_connect(
                $this->_config['username'],
                $this->_config['password'],
                $this->_config['dbname']);
        } else {
            $this->_connection = oci_connect(
                $this->_config['username'],
                $this->_config['password']);
        }
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.