The OCS directory should be pointed to by
$SYBASE/$SYBASE_OCS; it's not clear from the text that
this is actually happening. Verification can be done
using isql, which separates that issue from perl
programming issues.
The environment can be checked at runtime in the perl
script in one of two ways:
1. Use the debugger to look at %ENV
2. Put this line of code in the script:
print ($_,$ENV{$_}) foreach (keys %ENV);
Correct me if I am wrong, but I believe that the open
client libraries are dynamically linked and therefore
simply adjusting the sybase variables to point to the
correct directories suffices. So you don't have to
re-install whenever a sybase upgrade is done.
regards,
David
--- Michael Peppler <[EMAIL PROTECTED]> wrote:
> Peter Levine wrote:
> > Hi,
> >
> > Is there a way to determine which libraries the
> DBI/DBD used when it was
> > installed? This information is not in perl -V.
> There are several
> > different SYBASE home directories on this server
> each with
> > sub-directories for ASE or OCS versions. (I didn't
> install it -- I
> > assume that this can be configured somehow in the
> makefile or otherwise
> > when installing.)
> >
> > I am now getting a more specific error message
> when I set SYBASE to OCS.
> > The dba says that this config file,
> 'objectid/dat', is used by ASE not OCS.
>
> Your DBA is wrong... :-)
>
> >
> > /The context allocation routine failed. The
> following problem caused the
> > failure: Invalid context version. The context
> allocation routine failed
> > when it tried to load localization files!! One or
> more following
> > problems may caused the failure Your sybase home
> directory is
> > /home/sybase/OCS-12_5. Check the environment
> variable SYBASE if it is
> > not the one you want! Cannot access file
> > /home/sybase/OCS-12_5/config/objectid.dat/
>
>
> OK - so now the problem is that your SYBASE env
> variable points to
> /home/sybase/OCS-12_5. If that directory does
> include the Sybase libs
> then SYBASE should point to /home/sybase, so that it
> finds
> /home/sybase/config/objectid.dat.
>
> Michael
> --
> Michael Peppler - Peppler
> Consulting SaRL
> [EMAIL PROTECTED] -
> http://www.peppler.org
> Sybase DBA/Developer - TeamSybase:
> http://www.teamsybase.com
> Sybase on Linux FAQ -
> http://www.peppler.org/FAQ/linux.html
>