-->
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.  [ 1 post ] 
Author Message
 Post subject: Tables locked in Select Query - Editing of View
PostPosted: Mon Jul 23, 2007 6:15 am 
Beginner
Beginner

Joined: Fri Sep 08, 2006 7:29 am
Posts: 36
Hi All,

I am using

1. Hibernate 3.1
2. Oracle 10g

I am facing the following problems.

1. In my entire application I am only retrieving data from the database tables. I am not inserting or updating any data from the Java Code. My DBA has at times reported locking of tables and that the locks are released. I think ideally if I am firing an Select query, this should not happen. Can anybody please tell me a possible cause of this?

2. I carry out a search operation from a Materialized View of two separate tables. This is a simple conditional select operation. I get this exception a number of times. This does not happen consistently.

Code:
java.sql.BatchUpdateException: ORA-01732: data manipulation operation not legal on this view



The Hibernate configuration file is as follows

Code:
<hibernate-configuration>

<session-factory>
   <property name="dialect">
      org.hibernate.dialect.Oracle9Dialect
   </property>
   <property name="connection.url">
      jdbc:oracle:thin:@xxx.xxx.com:1521:asdb
   </property>
   <property name="connection.username">owner</property>
   <property name="connection.password">owner</property>
   <property name="connection.driver_class">
      oracle.jdbc.driver.OracleDriver
   </property>
   <property name="myeclipse.connection.profile">
      OracleThinDriver
   </property>
   <property name="hibernate.show_sql">true</property>   
   <property name="connection.autocommit">false</property>
   <property name="format_sql">true</property>
         ......................Table Mappings.........................
</session-factory>
</hibernate-configuration>



Also, my Java code does not use Transactions as it is not required.

Looking for help.

Regards,
Shardul.


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

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.