Re: DBD::Sybase context allocation routine failed
- From: dtzgdman@xxxxxxxxx (David Goodman)
- Date: Thu, 14 Feb 2008 20:44:40 -0800 (PST)
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 <mpeppler@xxxxxxxxxxx> wrote:
Peter Levine wrote:
Hi,DBI/DBD used when it was
Is there a way to determine which libraries the
installed? This information is not in perl -V.There are several
different SYBASE home directories on this servereach with
sub-directories for ASE or OCS versions. (I didn'tinstall it -- I
assume that this can be configured somehow in themakefile or otherwise
when installing.)when I set SYBASE to OCS.
I am now getting a more specific error message
The dba says that this config file,'objectid/dat', is used by ASE not OCS.
Your DBA is wrong... :-)
following problem caused the
/The context allocation routine failed. The
failure: Invalid context version. The contextallocation routine failed
when it tried to load localization files!! One ormore following
problems may caused the failure Your sybase homedirectory is
/home/sybase/OCS-12_5. Check the environmentvariable 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
mpeppler@xxxxxxxxxxx -
http://www.peppler.org
Sybase DBA/Developer - TeamSybase:
http://www.teamsybase.com
Sybase on Linux FAQ -
http://www.peppler.org/FAQ/linux.html
.
- References:
- Re: DBD::Sybase context allocation routine failed
- From: Michael Peppler
- Re: DBD::Sybase context allocation routine failed
- Prev by Date: Re: DBD::Sybase context allocation routine failed
- Next by Date: Re: DBD::Sybase context allocation routine failed
- Previous by thread: Re: DBD::Sybase context allocation routine failed
- Next by thread: Re: DBD::Sybase context allocation routine failed
- Index(es):