Sybase::CTLib ct_connect problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View


I am trying to use SyBase::CTLib with perl 5.6 and sybase ASE 12.5. i
was trying a simple script to start of.

but, my script exits with this error :

Open Client Message:
Message number: LAYER = (1) ORIGIN = (1) SEVERITY = (1) NUMBER = (191)
Message String: ct_connect(): user api layer: external error: The
connection failed because of invalid or missing external configuration

Can any one help in this regard? i have checked the existence of
external dependency file (ocs.cfg) in the directory $SYBASE/

Looking for inputs.

Somya Sharma

Re: Sybase::CTLib ct_connect problem

On Tue, 30 Sep 2008 09:47:49 -0700 (PDT) wrote:

s> Thanks for the reply. Actually the scene is that if i use
s> Sybase::DBlib instead of CTlib, everything works fine. Adding to that,
s> there are lots of existing C++ components which use  Sybase's CTLib. I
s> get this error when i try to use Sybperl in a perl script.

s> The issue is somewhat baffling :(

Have you checked your environment carefully?  What does
"use Data::Dumper; print Dumper \%ENV" produce?

s> I am trying this out in a very restricted environment,so not pretty
s> sure if i will be allowed to experiment with the $SYBASE directory.
s> Thanks for the inputs though :)

You can just set things up in /var/tmp or any other directory, as long
as $SYBASE points to it.


Re: Sybase::CTLib ct_connect problem

Quoted text here. Click to load it

Hi Ted,

Sorry for the delayed response.

The Data Dumper produced expected output. for example, it showed the
following settings in the environment related to sybase :

'SYBASE' => '/export/opt/sybocs/obOpnClt/default_5/etc/openclient',
 'SYBIN' => '/export/opt/sybocs/obOpnClt/default_5/etc/openclient/

'SYBASE_OCS' => 'OCS-12_5'

will try and configure it in a local temporary directory and update
you with the results.

Thanks for the inputs.

Best Regards,

Site Timeline