Logon at RunTime [message #334544] |
Thu, 17 July 2008 01:15 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
myclassic
Messages: 136 Registered: December 2006 Location: Pakistan
|
Senior Member |
|
|
Dear Sir
I want to disconnect my form at runtime and connect with different user name / password at run time. how it is possible?
I am using following code at WHEN-NEW-FORM-INSTANCE
///////
declare
vuser varchar2(1000):='scott\tiger@mdx';
begin
logout;
logon (vUser);
exequte_query;
end ;
//////
what is wrong with this code.... it show wrong number or type of arguments.
Regards.
|
|
|
|
Re: Logon at RunTime [message #334553 is a reply to message #334552] |
Thu, 17 July 2008 01:39 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
myclassic
Messages: 136 Registered: December 2006 Location: Pakistan
|
Senior Member |
|
|
azamkhan wrote on Thu, 17 July 2008 01:35 | The event is wrong...
Use trigger at form level ON-LOGON and there you issue you logout and logon commands....
.
|
Dear
thanks for such a quick reply.
what are the parameters of logon;
how to use it??
|
|
|
|
Re: Logon at RunTime [message #340044 is a reply to message #334554] |
Mon, 11 August 2008 02:54 ![Go to previous message Go to previous message](/forum/theme/orafaq/images/up.png) |
myclassic
Messages: 136 Registered: December 2006 Location: Pakistan
|
Senior Member |
|
|
You may use any trigger ...... paste it in when new form instance
:SYSTEM.MESSAGE_LEVEL := 25;
logout;
logon('scott@mdx11','tiger',false);
execute_query;
|
|
|