-->
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 do I get to see the exact sql given to my database
PostPosted: Thu May 27, 2004 11:45 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 one 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: Fri May 28, 2004 8:49 am 
Beginner
Beginner

Joined: Wed Mar 17, 2004 7:59 am
Posts: 24
Use a tool such as the p6spy driver, this will log all the database calls and is easy to set up - see http://www.p6spy.com/


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.