FAQs

ID #1047

Is pdo_oci available for Oracle?

Yes, in addition to oci, pdo_oci is also enabled.

Below, is a sample connection you can use with pdo_oci:

<?php
$db = "//hostname/service";
$user = "username";
$pass = "password";
try{
$conn = new PDO("oci:dbname=".$db,$user,$pass);
}catch(PDOException $e){
echo ($e->getMessage());
}
?>
For oci connections, please see our oci FAQ:
http://faq.enciva.com/content/6/3/en/php-oracle-connections-oci.html

Tags: -

Related entries:

Last update: 2013-02-07 23:06
Author: EncivaFAQ
Revision: 1.2

{writeDiggMsgTag} {writeFacebookMsgTag} {writePrintMsgTag} {writeSend2FriendMsgTag} {writePDFTag}
{translationForm}
Rate this FAQ

Average rating: 0 (0 Votes)

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

27 users online | 27 Guests and 0 Registered

powered by phpMyFAQ 2.7.1 |