oracle11g - 在 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);
解决方案
我希望您可以apex_util.set_custom_auth_status
用于通知。
apex_util.set_custom_auth_status (p_status => 'UserName Must be Number..!');
推荐阅读
- java - 序列化和反序列化错误:本地类不兼容:流 classdesc serialVersionUID = ,本地类 serialVersionUID = -
- javascript - 如何将滚动添加到树视图中
- vaadin - 如何使消息/标签关闭
- flutter - 同一列内的水平 ListView.builder 和垂直 ListView.builder
- c# - 是否可以从 Coroutine 方法返回 UnityWebRequest 的结果?
- sql - 如何将“ALTER table [...] ADD column”之类的更改记录到我的 PostgreSQL 表中?
- node.js - 角度2:成功登录后无法重定向到主页
- angular - 当我将 rxjs 从 6.3.3 更新到 6.4.0 时,出现错误:ERROR TypeError: You provide an invalid object where a stream is expected
- scala - 如何在 Spark 应用程序中进行有效的日志记录
- javascript - ThreeJS 我的 GLTF 加载速度在主机服务器上太慢了?