strange DBD::Oracle problem via dbi_link



Hi all,
I am desperately trying to link Postgresql with Oracle.
Everything seems to be working except for one thing: I can't manage to
get this baindead thing, called oracle working, where postgresql
client is not on localhost.

Keep in mind that SQL*Plus, DBI test connecting (from dbi_link)
WORKS!.
ORACLE_HOME, NLS_LANG, LANG are set up in /etc/profile.d

Now, if I try to connect to PgSQL from some remote host and select
from created views:
CONTEXT: SQL statement "SELECT dbi_link.cache_connection( 1 )"
ERROR: error from Perl function "remote_select": error from Perl
function "cache_connection": DBI connect('braindead','user',...)
failed: ORA-12154: TNS:could not resolve the connect identifier
specified (DBD ERROR: OCIServerAttach) at line 137 at line 13.

BUT if the very same PgSQL user, database, query (and so DSN) on the
localhost gets passed.
(Query to DBI is executed from PostgreSQL server, not client)

It seems, DBD::Oracle.pm failes to get environment variables to $ENV,
so I fixed it to fallback to constant values.
Everything failes on DBD::Oracle::dr sub connect, function
DBD::Oracle::_login(......);
It seems DBD::Oracle::_login is not a perl function, but rather an
export from DBD/Oracle/oracle.so


Any ideas?

.



Relevant Pages

  • Re: Need your help [arguments for open source databases]
    ... >> I would like to have your opinions about open source databases versus ... >> in the universe of relational databases. ... The main difference between PostgreSQL and Oracle is manageability. ...
    (RedHat)
  • difficulties with utf-8 characters using DBD::Oracle, where works using DBD::Pg (PostgreSQL)
    ... I have a cgi application that works fine using DBD::Pg to insert/select data ... I have modified the application to use either Oracle or PostgreSQL, ... EOF ...
    (perl.dbi.users)
  • Re: Read from database, write to another database, simultaneously
    ... If you can get Oracle to dump the data in the form of SQL insert ... PostgreSQL the entire job starts to look something like: ... the DB-API capability. ... if not batch: break ...
    (comp.lang.python)
  • Good DBA Book
    ... I'm sure this question has been asked a hundred times, but after looking into google for a few hours, I have so many books, I really don't know which one is right. ... like Oracle Essentials from O'Reilly. ... With all the step required, and if possible, example code and script, what is involved in a production database. ... The course will explain how to use PostgreSQL, ...
    (comp.databases.oracle.server)
  • Re: Please help data management issues!!
    ... I cannot compete with using Oracle any longer. ... I have switched over to PostgreSql ... Or you can invest a huge number of hours to duplicate that which comes out of ... But if anyone was giving away what Larry is selling ... ...
    (comp.unix.solaris)