-->
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.  [ 3 posts ] 
Author Message
 Post subject: Is there a way to see the real sql given to the database
PostPosted: Thu May 27, 2004 11:42 am 
Newbie

Joined: Sun Feb 29, 2004 9:34 pm
Posts: 3
Location: Washington DC
Environment Info
Hibernate : 2.1
Database : Oracle 9

I'm in to the performance tuning of my system. Needs to see how long it takes for different querys to execute under different load conditions. Based on this I might need to tweak some logics, queries here and there.
I'm gonna use some SQL profiler. Means I need to get the exact sql statement that's been given to the oracle, to use it in my SQL profiler. Currently I see the hibernate query(i.e ORM query) by having my show_sql true.
So could some pls let me know how do I get to see the exact SQL given to my db, oracle. Thanks in advance..


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 27, 2004 11:43 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://www.hibernate.org/27.html

Check the "Database utilities".

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 28, 2004 5:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you could also start out with enable the SQL logging category. Look in log4j.properties and/or docs about it.

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.