-->
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: Capture 'SQL statements' from Hibernet & replay it
PostPosted: Fri Jun 05, 2009 7:09 am 
Newbie

Joined: Fri Jun 05, 2009 6:30 am
Posts: 1
Capture 'SQL statements' from Hibernet & replay it to another ASE sybase database for stress testing

I am Sybase dba with do knowledge of JBOSS and Hibernet.

Developers use JBOSS (Zion 4.04GA) & Hibernet (3.2.0) to generate and send sql statements to ASE Sybase (15.02) database.

I need to capture sql statements generated by Hibernet on the production system. I then need to replay captured sql statements on a test system for stress testing.

Thank you for your help in advance.


Top
 Profile  
 
 Post subject: Re: Capture 'SQL statements' from Hibernet & replay it
PostPosted: Fri Jun 05, 2009 8:51 am 
Beginner
Beginner

Joined: Mon Jun 01, 2009 5:39 am
Posts: 34
This is in the manual...

Set hibernate.show_sql = true if you have a properties file. I can't remember for the XML configuration format, but it's in the same vein.

Beware that by default, Hibernate will mangle the table names a lot, though (it will even create alias names where it is not fundamentally needed).


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.