首页 > 解决方案 > 在 plsq sql oracle apex 中捕获异常后会话过期

问题描述

我们在 oracle apex 中进行自定义身份验证,如果用户输入字符(只允许数字)INVALID_NUMBER 异常出现在 pl sql

apex_error.add_error成功显示消息, 但在下一次尝试时,我们收到消息“您的会话已过期”,据我了解 apex_error.add_error destroy session 。我的问题是如何在apex_error.add_error之后包含会话活动 或如何在消息后重新生成会话

exception when INVALID_NUMBER then
  apex_error.add_error(
   p_message          => 'UserName Must be Number',
    p_display_location => apex_error.c_inline_in_notification);

标签: oracle11goracle-sqldeveloperoracle-apex-5oracle-apex-5.1

解决方案


我希望您可以apex_util.set_custom_auth_status用于通知。

apex_util.set_custom_auth_status (p_status => 'UserName Must be Number..!');

推荐阅读