How can we pass Oracle username/password programmically?

30 pts.
Tags:
Oracle development
i want to add record in one table but by using 2 different usernames. for example, i want to save products information by using username: POS, but i want to use username: Stark to add new department in department table.

Answer Wiki

Thanks. We'll let you know when a new response is added.

You will need to disconnect form the database, and connect again using different credentials. You can do it with the help of the LOGOUT and LOGON built-in procedures.

From the help:

<pre>PROCEDURE LOGON
(username VARCHAR2,
password VARCHAR2);

PROCEDURE LOGOUT;
</pre>

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    Do you want to do this from a Forms application ? if so, what version ? if not, from where ?
    70,220 pointsBadges:
    report
  • Bina
    yes, i want it on form application. Oracle 8i and Developer 6i
    30 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following