Skip to Main Content

Using php to connect to Oracle Database 11g Release 2 Enterprise Edition EE

865124Jul 15 2011 — edited Jul 15 2011
Greetings everyone!
Please i dont know how to connect to Oracle Database 11g Release 2 Enterprise Edition with php even though i connected with php successfully with Oracle Database 11g Express Edition with the php code below. can someone help please...Note im referring to oracle EE not XE.

define('ORA_CON_UN', 'hr'); // User name
define('ORA_CON_PW', 'Adlibs14$'); // Password
define('ORA_CON_DB', '//localhost/EE'); // Connection identifier
// use constants defined in anyco_cn.inc
$conn = oci_pconnect(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);
if (!$conn) {
db_error(null, __FILE__, __LINE__);
}

Edited by: user11273096 on Jul 15, 2011 12:03 AM
Comments
Post Details
Added on Jul 15 2011
1 comment
268 views