Re: Example of using DBD:ODBC to connect to Oracle with no DSN



I wasn't sure if my question was clear: I'd like to see an example of
connecting to Oracle using DBD::ODBC without a DSN string, i.e. with
the "dbi:ODBC:Driver" syntax.

Thanks!

dobomode




dobomode@xxxxxxxxx wrote:
> Hello there,
>
> Currently I am using this to connect to Oracle via DBD::ODBC
>
> $dbh = DBI->connect("dbi:ODBC:sg.corp.com", $conf{'user'},
> $conf{'password'},
> {PrintWarn => 0, AutoCommit => 0,
> PrintError => 0,RaiseError => 1})
> || die "Cannot connect to Oracle database:
$DBI::errstr.\n";
>
> Works fine and smoothly.
>
> Now, since I am developing this app for people at my company to use,
I
> don't want to have everybody set up a DSN entry (sg.corp.com in the
> example above) in their control panel. Instead, I'd like to use the
> dbi:ODBC:DRIVER syntax to connect to Oracle directly bypassing the
DNS
> entries. I've searched like crazy but could not find much on the
topic.
> Anybody?
>
> Thanks!
>
> P.S. If you're curious why DBD:ODBC vs DBD:Oracle, it's the fact that
> the latter has some issues with dealing with BLOB (I've spent a full
> day troubleshooting this to no success, tried quickly ODBC and bingo
-
> magic!)

.



Relevant Pages

  • Re: rman connection authorization
    ... Copyright 1982, 2005, Oracle. ... But connecting to rman requires me to spell it out ... ... initialization of internal recovery manager package failed ... RMAN-04005: error from target database: ...
    (comp.databases.oracle.server)
  • Re: rman connection authorization
    ... Copyright 1982, 2005, Oracle. ... But connecting to rman requires me to spell it out ... ... initialization of internal recovery manager package failed ... RMAN-04005: error from target database: ...
    (comp.databases.oracle.server)
  • RE: Access 2k3 Front End to Oracle 10g Back End design thoughts
    ... First of all you must install something to ... Oracle is difficult, but do-able; however, how are you going to test the ... I was reading through all of the posts regarding connecting Access to Oracle, ... able to link all the forms / reports etc... ...
    (microsoft.public.access.tablesdbdesign)
  • RE: Speed test for connecting to Oracle for Windows via ODBC
    ... I can understand frustration but your request is too nebulous for those who ... contributed - like connecting from a vmware host). ... Your "blame the network guy statements" miss the point that for a lot of us ... Speed test for connecting to Oracle for Windows via ODBC ...
    (perl.dbi.users)
  • RE: Problem with connecting to an Oracle database using Perl
    ... Problem with connecting to an Oracle database using Perl ... *IS* described in the DBD::Oracle perldocs - as the perldocs are included ... I do not have a problem connecting to the remote database using the Oracle ...
    (perl.dbi.users)