简体   繁体   English

如何:在一个或多个Sybase表上记录操作(sql)?

[英]How to: log operations (sql) on one or more Sybase tables?

We have a hard to track-down bug in one of our systems, ie it appears very seldom and randomly so we figure good logging over an extensive time period would be helpful. 我们很难找到其中一个系统中的错误,即该错误很少出现并且是随机的,因此我们认为在很长一段时间内进行良好的日志记录将有所帮助。

Therefore I would like to ask if it's possible in any way to let Sybase (12.5.X or 15.X) log the SQL operations that updates the contents of a specific table, ie inserts and updates. 因此,我想问一下是否有可能让Sybase(12.5.X或15.X)记录更新特定表(即插入和更新)内容的SQL操作。 Note, it will do with just the data but preferably I would like to log the complete SQL-statement thus a simple trigger approach won't cut it. 请注意,它仅处理数据,但最好是我想记录完整的SQL语句,因此简单的触发器方法不会减少它。

Regaqrds, Ola 奥拉Regaqrds

我认为像monProcessSQLText这样的触发器+ Sybase MDA监视表可以为您提供帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM