将EBS设为首页worklist删除误报

简介:
参考:How To Remove Error Notifications From The Worklist (Doc ID 357904.1)

1. 1. Use one of the error notifications to get an item_type from the following select:


select message_type from wf_notifications where notification_id = <NID>;

select message_type from applsys.wf_notifications where notification_id=93885;
--WFERROR

2. Use the following script to abort all error workflows that has currently notifications with status OPEN:
Declare
         cursor c_item_keys is
         select act.item_type , act.item_key
              from wf_item_activity_statuses act
             ,wf_notifications n
             ,wf_items itm
             where act.notification_id = n.notification_id
             and act.item_type = itm.item_type
             and act.item_key = itm.item_key
             and itm.end_date is null
             and act.item_type = '<message_type>' -- value returned in step 1
             and act.activity_status in ('ERROR','NOTIFIED')
             and n.status = 'OPEN' 
             and act.assigned_user = 'SYSADMIN';

             counter number;  

  Begin
    counter := 1 ;
    for item in c_item_keys loop 
         wf_engine.abortprocess(item.item_type,item.item_key); 
         counter := counter + 1 ; 
         if counter > 1000 then 
                counter := 1 ;
                commit; 
         end if;
     end loop;
     commit;
End;

NOTE:
  - Replace the <message_type> by the message_type value returned in step 1.
  - This script will remove error notifications from sysadmin.  Replace sysadmin by the end user needed or comment the line to run the script for all end users.

3. Run the concurrent request:   "Purge Obsolete Workflow Runtime Data".
NOTE:
 - In some cases the error workflow may have a child workflow, for example, POERROR workflow may fail to send a notification to a certain user, so that it will generate a WFERROR notification to sysadmin.  In that case one has to run the script in step 2 first for WFERROR workflow.

An item_key is not required to run the Purge Obsolete Workflow Runtime Data request.  Running it without use of an item_key, all eligible data will be purged.

版权声明:本文博主原创文章,博客,未经同意不得转载。








本文转自mfrbuaa博客园博客,原文链接:http://www.cnblogs.com/mfrbuaa/p/4776713.html,如需转载请自行联系原作者


相关文章
|
Oracle 关系型数据库
oracle asm 磁盘显示offline
oracle asm 磁盘显示offline
644 2
|
2月前
|
机器学习/深度学习 搜索推荐 API
京东拍立淘API-以图搜图中的图像搜索算法
京东拍立淘API基于深度学习,利用CNN提取图像特征,结合余弦相似度实现商品精准匹配。支持图片搜索、类目限定与相似度筛选,日均处理千万级请求,广泛应用于移动购物与社交带货场景。
|
2月前
|
存储 消息中间件 NoSQL
体育赛事直播系统中基于 WebSocket 实现的聊天室与弹幕模块设计与实践
本文详解东莞梦幻网络科技体育直播系统中「聊天室+弹幕」模块的实时通信技术实现,涵盖 WebSocket 架构、连接池管理、多房间逻辑、消息转发与并发控制等核心要点,助力构建高并发、低延迟的直播互动体验。
|
5月前
|
人工智能 IDE 搜索推荐
惊!GitHub Copilot或将颠覆传统编程,程序员即将失业?
GitHub Copilot引爆编程界!这个AI编程神器将彻底改变你的编程生涯!
208 22
惊!GitHub Copilot或将颠覆传统编程,程序员即将失业?
|
5月前
|
缓存 Linux
如何创建Linux交换文件?Linux交换文件最新创建方法
Swap是Linux中的虚拟内存空间,用于在物理内存不足时将非活动进程移至磁盘,从而优化活动进程的性能。通过创建交换文件(如1GB),可灵活调整交换空间而无需重新分区。步骤包括:使用`fallocate`或`dd`创建文件、设置权限 (`chmod 600`)、格式化 (`mkswap`)、启用交换 (`swapon`)、修改`/etc/fstab`以持久化配置,以及调整`vm.swappiness`值(默认60,建议从10开始)来平衡内存与交换的使用。最后通过`swapon -s`检查状态并重启生效。此方法适用于VPS和专用服务器,需以root用户操作。
154 2
|
9月前
|
供应链 项目管理
项目管理的十大领域是什么?详解
详解项目管理十大领域,整合管理、范围管理、时间管理、成本管理、质量管理、资源管理、沟通管理、风险管理、采购管理和干系人管理。
302 1
项目管理的十大领域是什么?详解
|
10月前
|
安全 网络安全 数据安全/隐私保护
社会工程学攻击:了解并预防心理操控的网络欺诈
社会工程学攻击:了解并预防心理操控的网络欺诈
532 7
|
12月前
|
机器学习/深度学习 自然语言处理 搜索推荐
基于图神经网络的电商购买预测
基于图神经网络的电商购买预测
|
消息中间件 Kafka Linux
安装Kafka3.0
消息队列是当前分布式系统中不可或缺的一部分了,今天先简单学习一下安装吧。
492 0
|
算法 Python
函数的递归调用与嵌套调用详解
函数的递归调用与嵌套调用详解
847 0

热门文章

最新文章