Re: core dump using Pro*C on CONNECT

From: thumor <member34030_at_dbforums.com>
Date: Tue, 29 Jul 2003 13:16:46 +0000
Message-ID: <3160882.1059484606_at_dbforums.com>


Originally posted by Pete Finnigan
> Hi thumor,
>
> did you try the code i sent you in my previous post to this
> thread?, it
> works and the only difference between mine and yours is that i declare
> the database name first as stated in the Pro*C manual with the line
>
> EXEC SQL DECLARE MY_DB DATABASE;
>
> and then i do the connect as follows:
>
> EXEC SQL CONNECT :OmDbUserName IDENTIFIED
> BY :OmDbPassword AT MY_DB USING :OmDbName;
>
> that does seem to be the only difference with the connect as i
> can see.
>
> hth
>
> kind regards
>
> Pete
> --
> Pete Finnigan
> email:pete_at_petefinnigan.com
> Web site:
> http://www.petefinnigan.com/http://www.petefinnigan.com
> - Oracle security audit specialists
> Book:Oracle security step-by-step Guide - see
> http://store.sans.org/http://store.sans.org for details.
>

I have the same declaration using DB_NAME, instead of your MY_DB, right before the DECLARE SECTION for the variables Username, Userpass, DBname, at the begenning of my program file, right after all the #includes..

Also, I basically copied that peice of code from another running program file, hence I know it should work, but for some reason, it does not.

What next?

--
Posted via http://dbforums.com
Received on Tue Jul 29 2003 - 15:16:46 CEST

Original text of this message