Closed (fixed)
Project:
Oracle Driver
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2011 at 23:42 UTC
Updated:
1 Feb 2011 at 20:40 UTC
I don't know if its possible, since Drupal seems to want a hostname during install. But this is what I did (patched database.inc:76) to allow me to use a TNS name instead of a database host/port/instance.
if ($connection_options['host'] == 'USETNS') {
// Use database as TNSNAME
$dsn = 'oci:dbname='.$connection_options['database'] . ';charset=AL32UTF8';
}
else {
// Use host/port/database
$dsn = 'oci:dbname=//' . $connection_options['host'] . ':' . $connection_options['port'].'/' . $connection_options['database'] . ';charset=AL32UTF8';
}
You'd also have to update the install.txt to let possible users know how to do this.
Comments
Comment #1
aaaristo commentedjust commited it! Thanks. Why don't you become a maintainer?
Comment #2
siromega commentedIf you want to add me, go ahead. Hopefully over the next month I'll be working to get D7 working in my configuration (Win, 5.2.x, Ora 11g DB with 10g drivers). From there I can work on documentation.
Comment #3
aaaristo commented"User siromega does not have a CVS account." you have to request a CVS account:
http://drupal.org/cvs-application/requirements so i can add you as a maintainer
Comment #4
avpadernoFYI, siromega is now co-maintainer of this project.
Comment #5
aaaristo commentedWelcome siromega!