-->
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: SQL obfuscation
PostPosted: Tue Dec 06, 2005 5:13 pm 
Newbie

Joined: Tue Dec 06, 2005 4:59 pm
Posts: 1
I'm a SQL Server DBA, and I've inherited a database environment where heavy Hibernate (v 2.5) usage is taking place.

As you may know, Hibernate significantly scrambles all SQL activity within the database, so when I profile one of our DBs, instead of SQL statements I see activity like:

create proc #jtds000008 @P0 int AS INSERT...
exec #jtds000008 <list of parameters>

Worse yet, the same stored proc 'serial numbers' are reused before they're aged out, so stored proc '#jtds000008' might actually be 20 different stored procs (this is possible b/c SQL Server assigns unique IDs to temp objects).

Is there a way to configure Hibernate so the true SQL is executed against the database, and not the rewrites? Any kind of database analysis or performance tuning has become impossible because of this obfuscation.

Thanks,
- S


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 06, 2005 5:43 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
This is of course not Hibernate doing this.

It is your JDBC driver.

I advise you to get one of your Java guys who understand the J2EE architecture to work with you to try and sort out your problems.


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.