After we installed DBI-1.32 successfully,we encountered a 'make test'
problem while installing DBD-Oracle-1.12 on  our systems.  The environment
is solaris 7 on a E450.  We were using DBD-Oracle-1.12, Perl 5.6.1.
The following is a console dump of the relevant part of the session.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PERL_DL_NONLAZY=1
/usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.6.1/sun4
-solaris -I/usr/local/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests
$verbose); $verbose=0; runtests @ARGV;' t/*.t
t/base..............ok
t/general...........DBI connect('','scott/tiger',...) failed: ORA-01034:
ORACLE not available (DBD ERROR: OCISessionBegin) at t/general.t line 20
Unable to connect to Oracle (ORA-01034: ORACLE not available (DBD ERROR:
OCISessionBegin))
Tests skiped.
skipped test on this platform
t/long..............Unable to connect to Oracle (ORA-01034: ORACLE not
available (DBD ERROR: OCISessionBegin))
Tests skiped.
skipped test on this platform
t/ph_type...........DBI connect('','scott/tiger',...) failed: ORA-01034:
ORACLE not available (DBD ERROR: OCISessionBegin) at t/ph_type.t line 24
Unable to connect to Oracle (ORA-01034: ORACLE not available (DBD ERROR:
OCISessionBegin))
Tests skipped.
skipped test on this platform
t/plsql.............Unable to connect to Oracle (ORA-01034: ORACLE not
available (DBD ERROR: OCISessionBegin))
Tests skiped.
skipped test on this platform
t/reauth............skipped test on this platform
All tests successful, 5 tests skipped.
Files=6, Tests=5,  4 wallclock secs ( 1.47 cusr +  0.46 csys =  1.93 CPU)
PERL_DL_NONLAZY=1
/usr/local/bin/perl -Iblib/arch -Iblib/lib -I/usr/local/lib/perl5/5.6.1/sun4
-solaris -I/usr/local/lib/perl5/5.6.1 test.pl
Oraperl test application $Revision: 1.4 $

Oraperl emulation interface version 1.41
DBD::Oracle 1.12 using OCI8 by Tim Bunce
DBI 1.32 by Tim Bunce

Data sources:
        dbi:Oracle:SDNM
        dbi:Oracle:oracle


Connecting
 to '' (from command line, else uses ORACLE_SID or TWO_TASK - recommended)
 as 'scott/tiger' (via ORACLE_USERID env var or default - recommend
name/passwd@dbname)
(ORACLE_SID='oracle', TWO_TASK='')
ora_login: 1034: ORA-01034: ORACLE not available (DBD ERROR:
OCISessionBegin)

ORACLE_SID or TWO_TASK possibly not right, or server not running.

Generally set TWO_TASK or ORACLE_SID but not both at the same time.
Try to connect to the database using an oracle tool like sqlplus
only if that works should you suspect problems with DBD::Oracle.
Try leaving dbname value empty and set dbuser to name/passwd@dbname.

Test aborted.
*** Error code 255
make: Fatal error: Command failed for target `test_dynamic'
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Any suggestions you can offer would be appreciated.Thanks a lot.


Reply via email to