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@xxxxxxxxxxx - http://www.peppler.org
Sybase DBA/Developer - TeamSybase: http://www.teamsybase.com
Sybase on Linux FAQ - http://www.peppler.org/FAQ/linux.html
.



Relevant Pages

  • Installing DBD::Sybase on MAC
    ... But before that I need to install the 'Sybase OpenClient ... Sybase server to use: undef ... (ranlib struct 0 library member offset not a multiple of 4 bytes, ...
    (comp.lang.perl.misc)
  • Re: trouble loading DBD sybase, 1_07_01 -found out problem
    ... I was using DBI 1.5 and DBD 1_07_1. ... In order to set the sybase env variables, I had sourced a copy of the SYBASE.sh file in the .bash_profile file in each each users home directory. ... Once I resolved this issue,, the install went without a hitch. ... Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. ...
    (perl.dbi.users)
  • Re: DBD::Sybase context allocation routine failed
    ... The dba says that this config file, 'objectid/dat', is used by ASE not OCS. ... So maybe I should ask my admin to reinstall DBI/DBD with the Sybase I want rather than letting it default? ... Subject: DBD::Sybase context allocation routine failed ... I should add that i am running this as a cgi-bin script. ...
    (perl.dbi.users)
  • System reset trying to configure Sybase server (databases/sybase_ase)
    ... I installed the databases/sybase_ase port on the FreeBSD/amd64 system running ... Running task: boot the Sybase Server. ... Running task: create the sybsystemprocs database. ... Running task: install system stored procedures. ...
    (freebsd-stable)
  • Re: Accessing a SQL Server Database from a Perl Script on Linux
    ... Well - the SYBASE env. ... FreeTDS instead of Sybase. ... Also I plan to install FreeTDS instead ... Michael ...
    (comp.lang.perl.misc)