我在Oracle Form Builder 6i中工作。 我有一个页面供用户输入user_name和密码。问题是,当用户输入错误的user_name和/或错误的密码时,会出现此错误:
'ORA-01017:无效的用户名/密码;登录被拒绝”,它离开我的登录页面,我 想要触发或异常以让用户重试
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;