develooper Front page | perl.dbi.users | Postings from February 2008

Re: DBD::Sybase context allocation routine failed

Thread Previous | Thread Next
From:
Michael Peppler
Date:
February 14, 2008 11:10
Subject:
Re: DBD::Sybase context allocation routine failed
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
mpeppler@peppler.org      -                  http://www.peppler.org
Sybase DBA/Developer      -   TeamSybase: http://www.teamsybase.com
Sybase on Linux FAQ       -   http://www.peppler.org/FAQ/linux.html

Thread Previous | Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About