rajjj has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: connecting to oracle
by bobf (Monsignor) on Jul 27, 2006 at 06:55 UTC
Re: connecting to oracle
by McDarren (Abbot) on Jul 27, 2006 at 06:53 UTC
    I'm sure that lots of people could help you do that. In fact, you can probably even help yourself!!

    A good place to start would be with DBD::Oracle

    Cheers,
    Darren :)

Re: connecting to oracle
by Anonymous Monk on Jul 27, 2006 at 06:53 UTC
Re: connecting to oracle
by borisz (Canon) on Jul 27, 2006 at 06:53 UTC
Re: connecting to oracle
by fmerges (Chaplain) on Jul 27, 2006 at 09:21 UTC

    Hi,

    Remember that you must have installed the oracle libs in order to compile the DBD::Oracle module.

    And when using the module, if it don't work, normally it's because you need to set the ORACLE_HOME environment variable, e.g:

    use DBI; $ENV{ORACLE_HOME} = '/usr/local/oracle/OraHome_1'; # Database connection data my $dsn = "DBI:Oracle:host=$host;sid=$sid"; my $user = 'luser'; my $password = 's3c3t'; my $dbh = DBI->connect($dsn, $user, $password) or die "Can't connect: $DBI::errstr"; ...

    If the Oracle database is an old version and you don't find anywhere the Oracle libs, to compile the DBD::Oracle, you can go with the Java JDBC via JDBC, of course you need the .jar file containing the Java JDBC, but this is very simple to get.

    PS: By the way, RTFM

    Regards,

    fmerges at irc.freenode.net
A reply falls below the community's threshold of quality. You may see it by logging in.