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?

you must pass database name also

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

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']);
        }

thanx. it worked :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.