无效的用户名\密码登录拒绝

时间:2019-12-21 15:41:31

标签: oracle

我在Oracle Form Builder 6i中工作。 我有一个页面供用户输入user_name和密码。问题是,当用户输入错误的user_name和/或错误的密码时,会出现此错误:

  

'ORA-01017:无效的用户名/密码;登录被拒绝”,它离开我的登录页面,我   想要触发或异常以让用户重试

this is my on-login trigger

  DEFAULT_VALUE('N','global.logon_now');--if the global variable not exit  then create it and asign the value n to it or if the variable exit with null value then change the value to n
DEFAULT_VALUE('col','global.uname');
DEFAULT_VALUE('col','global.upass');

声明 alt数字; 开始

IF:global.logon_now ='n'然后        LOGON(:global.uname,:global.upass ||'@'||'orcl');

else
        LOGON(:global.uname,:global.upass ||'@'||'orcl');

如果结束; END;

this is picture for the error message

0 个答案:

没有答案