Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> ProC problem: exec sql connect

ProC problem: exec sql connect

From: <soekotjo_at_my-deja.com>
Date: Wed, 20 Oct 1999 08:58:00 GMT
Message-ID: <7uk06j$qcl$1@nnrp1.deja.com>


Hi all,
I am trying to connect to a remote database from a ProC procgram, but hit a problem.
I used this piece of code:

 char localstr[200];
 sprintf(localstr,"user/password_at_tnsname");  exec sql connect :localstr;

and it core dumps with ILL signal (illegal instruction).

I tried running sqlplus with the same user/password_at_tnsname combination, and it works. So the tnsname part is OK.

I'm using Oracle 7.3.4 on Digital Unix 4.0F.

Any help will be much appreciated.

Sent via Deja.com http://www.deja.com/
Before you buy. Received on Wed Oct 20 1999 - 03:58:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US