需要监控SQL查询结果的工具
我正在寻找一种工具来监视定期运行的 SQL 查询的结果,并根据查询返回任何结果的事实发出通知。 (欢迎任何其他过滤器)
我需要监视事务表中的错误,如果我的 sql 查询可以在后台运行、定期刷新并在有任何结果时显示通知,那就太好了。
我需要连接到 Oracle DB,并且当前使用 PL/SQL Developer 或 Oracle SQL Developer。
首选免费、操作系统和轻量级解决方案:)
更新:
最好我不想创建/修改任何数据库对象。我们也希望在我们的客户数据库上使用它,但并非所有客户都拥有修改其 Oracle 应用程序运行的数据库的许可。
先感谢您
I am looking for a tool to monitor results of a periodically run sql query and raise a notification based on the fact that the query returns any results. (any other filters are welcome)
I need to watch a transaction table for errors, and it would be great if my sql query could run in background, refresh itself periodically and show a notification when there are any results.
I need to connect to Oracle DB and I currently use PL/SQL Developer or Oracle SQL Developer.
Free, OS and lightweight solutions preferred :)
UPDATE:
Preferably I would like to not create/modify any database objects. We would like to use this on our clients databases too and not all of them have license to modify the DBs where their Oracle Apps run.
Thank you in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如何使用 DBMS_Scheduler 运行查询表的存储过程,然后在出现问题时使用 UTL_Mail 发送电子邮件?
How about using DBMS_Scheduler to run a stored procedure that queries the table and then uses UTL_Mail to send an email in case of a problem?
将查询放入存储过程中。那里有您的监控/通知代码。
Put the query in a stored procedure. Have your monitoring / notification code there.
我用这个并且效果非常好。
-- 1. 创建程序:
-- 2. 创建日程程序:
--3.最后将两者链接在一起创建一个作业:
现在您可以使用类似 utl_mail.send 的东西
I use this and it works absolutely fine.
-- 1. Create Program:
-- 2. Create a schedule program:
--3. And finally link both together to create a JOB:
Now you can use something like utl_mail.send