Re: Feature to capture SQL Query?

109 views
Skip to first unread message

arun philip

unread,
Aug 10, 2012, 6:53:37 AM8/10/12
to h2-da...@googlegroups.com
How do I capture all the transactions occuring in a particular database in SQL form?

On Thursday, August 9, 2012 6:02:06 PM UTC+5:30, arun philip wrote:
Hello Sir,

I am working on a heterogeneous database synchronization project.
I am planning to use SQL Query based synchronization.
Is there any way in H2 database to capture the SQL queries similar to Oracle audit?

Regards
Philip

Thomas Mueller

unread,
Aug 10, 2012, 2:48:08 PM8/10/12
to h2-da...@googlegroups.com
Hi,

I think you would have to use triggers to capture the changes. This is also how the built-in fulltext search works.

Regards,
Thomas



--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To view this discussion on the web visit https://groups.google.com/d/msg/h2-database/-/eMbGA8YKq-oJ.

To post to this group, send email to h2-da...@googlegroups.com.
To unsubscribe from this group, send email to h2-database...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.

arun philip

unread,
Aug 11, 2012, 12:08:12 AM8/11/12
to h2-da...@googlegroups.com
Thank You.

But how do you get the sql transactions?
I mean the SQL transaction history of a table or entire schema.

Regards,
Philip

Thomas Mueller

unread,
Aug 21, 2012, 2:15:02 PM8/21/12
to h2-da...@googlegroups.com
Hi,

But how do you get the sql transactions?


I mean the SQL transaction history of a table or entire schema.

H2 currently doesn't allow you to read the transaction log, but you can use triggers to create your own transaction log.

Regards,
Thomas

Reply all
Reply to author
Forward
0 new messages