获取Oracle信息 [英] Get Oracle information

查看:65
本文介绍了获取Oracle信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



当您在SQLPLUS中执行查询时,您会收到Oracle的反馈。使用  ExecuteNonQuery()和  ExecuteReader()执行查询时是否可以捕获相同的反馈?


我希望能够将反馈写入日志文件。



谢谢

解决方案

你好,


没有事件可以订阅执行ExecuteNonQuery或ExecuteReader的命令对象。请注意,在下面的屏幕截图中没有命令的事件。



也许这可能是有意义的


https://docs.oracle.com/cd/B10500_01/server.920/a96533/ex_plan.htm#21502



Hi,

When you exectute query's in SQLPLUS you get feedback from Oracle. Is it possible to catch the same feedback when executing queries with ExecuteNonQuery() and ExecuteReader()?

I want to be able to write the feedback to a log file.

Thanks

解决方案

Hello,

There are no events to subscribe to for the command object performing ExecuteNonQuery or ExecuteReader. Note in the screenshot below there are no events for a command.

Perhaps this may be of interest

https://docs.oracle.com/cd/B10500_01/server.920/a96533/ex_plan.htm#21502


这篇关于获取Oracle信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆