Can't connect to Oracle 9i when connected to DB2
From: David A Mullen (DMULLEN_at_amfam.com)
Date: 11/01/04
- Next message: Tim Bunce: "Re: Can't connect to Oracle 9i when connected to DB2"
- Previous message: Odhiambo Washington: "DBD::Oracle, Perl-5.8.1 + OS X"
- Next in thread: Tim Bunce: "Re: Can't connect to Oracle 9i when connected to DB2"
- Reply: Tim Bunce: "Re: Can't connect to Oracle 9i when connected to DB2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 1 Nov 2004 12:55:18 -0600 To: <dbi-users@perl.org>
Hi all,
We're having a strange problem with a number of perl scripts we use to
verify the synchronization of an Oracle database with a DB2 database.
We're running perl 5.8.5 on HP-UX 11 (had to do our own compile; used
gcc). DBI version is 1.45, DBD::Oracle is 1.16 (client version 9.2.0.5),
DBD::DB2 is 0.78 (client version 7.2 (version 7 fixpack 12)).
If I first do DBI->connect() to the Oracle 9i database, and then to DB2
(without retrieving data from either, but having prepared some
statements), it works fine. However, if I set up the DB2 $dbh and
statements first, I get a core dump when I try to open the Oracle
connection. It also works fine if I connect to an Oracle 8i version of
the database (using all the same perl and client components), rather
than the 9i version.
I stepped through my program in perl -d, and the debugger hangs when it
attempts to execute DBD::Oracle::db::_login(); I assume this is the
point at which it dumps core when running without -d. I turned on DBI
tracing (eventually at level 15, can you sense my desperation?); the
differences between connecting to Oracle first and connecting to DB2
first are:
1) there is an extra environment variable (DB2INSTANCE=db2admin)
defined if I connect to DB2 first, and
2) when already connected to DB2, the Oracle login crashes without
getting to OCISessionBegin().
Any ideas?
I also noticed that when I run the following script (from Tim's book),
it crashes when attempting to list Proxy data sources, complaining that
Proxy isn't properly installed. Could that be related to my Oracle/DB2
problem?
my @drivers = DBI->available_drivers();
foreach my $driver ( @drivers ) {
print "Driver: $driver\n";
my @dataSources = DBI->data_sources( $driver );
foreach my $dataSource ( @dataSources ) {
print "\tData Source is $dataSource\n";
print "\n";
}
}
TIA,
Dave Mullen
American Family Mutual Insurance Company
I/S Financial Systems
===========================================
Any opinions expressed are strictly my own, and do not
necessarily reflect the views of American Family Mutual
Insurance Company or its related companies.
===========================================
- Next message: Tim Bunce: "Re: Can't connect to Oracle 9i when connected to DB2"
- Previous message: Odhiambo Washington: "DBD::Oracle, Perl-5.8.1 + OS X"
- Next in thread: Tim Bunce: "Re: Can't connect to Oracle 9i when connected to DB2"
- Reply: Tim Bunce: "Re: Can't connect to Oracle 9i when connected to DB2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|