-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: How to control SQL creation.
PostPosted: Mon Nov 15, 2004 10:49 am 
Newbie

Joined: Mon Nov 15, 2004 10:22 am
Posts: 1
There are lots of DBs and only one db is changed by operator. The Data in the main DB changed by the operation must be synchronized to other DBs. the changes to the DB is through hibernate2 session. and i want to copy the changes to other DBs like this way.
1. begin to notify hibernate to record SQL
2. operator do the job on the main DB, keep track all the SQL in the job.
3. notify hibernate not to record SQL and save to a SQL file.
4. copy theSQL file to other DBs server.
5. Exec the SQL on the other DBs.
and i wonder if SQL generated by hibernate can be recorded or not. and how.
Thanks in advanced


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 15, 2004 12:03 pm 
Expert
Expert

Joined: Thu Jan 29, 2004 2:31 am
Posts: 362
Location: Switzerland, Bern
Maybe http://www.p6spy.org/ is for you.

HTH
Ernst


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.