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

aaaristo’s picture

Status: Active » Closed (fixed)

just commited it! Thanks. Why don't you become a maintainer?

siromega’s picture

If 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.

aaaristo’s picture

"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

avpaderno’s picture

Status: Closed (fixed) » Fixed

FYI, siromega is now co-maintainer of this project.

aaaristo’s picture

Welcome siromega!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.