【问题标题】:session expire after exception caught in plsq sql oracle apex在pl sql sql oracle apex中捕获异常后会话过期
【发布时间】:2019-08-31 12:29:19
【问题描述】:

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

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

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

【问题讨论】:

    标签: oracle11g oracle-sqldeveloper oracle-apex-5 oracle-apex-5.1


    【解决方案1】:

    希望您可以使用apex_util.set_custom_auth_status 进行通知。

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多