Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Pro*C

unknown-2698904Sep 24 2014 — edited Sep 25 2014

Hi all,

11.2.0.3.11

aix6

Sorry I can not find the Pro*C forum. Can you help how to locate the forum?

We have pro*c program which has a hard-code userid and password inside it code.

This is an old program and no one knows how to revise it to make the password hidden or to make it variable.

Because everytime the db password changed after 90 days, the program gets aborted and need to be compiled replacing the new password.

void main()

{

  EXEC SQL BEGIN DECLARE SECTION;

    char           *usr = "scott/tiger";

    int             size1;

    int             size2;

    blob            b1;

    blob            b2;

  EXEC SQL END DECLARE SECTION;

  EXEC SQL WHENEVER SQLERROR DO sqlerror();

  EXEC SQL CONNECT :usr;

How do I make a Pro*C connection login variable?

Thanks,

mk

This post has been answered by Darryl Gove-Oracle on Sep 25 2014
Jump to Answer

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 23 2014
Added on Sep 24 2014
8 comments
998 views