Oracle database is hanging infinitly in UPDATE queries
Most likely you have another open uncommitted transaction for the same set of records, so they are locked for that transaction.
And, most likely, you locked them, running the same UPDATE
in another transaction.
Just Commit/rollback your transactions, you should be fine.
sql developer hangs on startup - what can I do?
Basing on this thread https://community.oracle.com/thread/2564842 I've created own solution.
- Extract installation of current version SQL Developer (4.1.0.17.29)
- At "c:\Users\MY_USER\AppData\Roaming\SQL Developer\"
I've changed directory name system4.1.0.17.29 to system4.1.0.17.28. - After running newly extracted SQL Developer (4.1.0.17.29) I was prompted to let copy configuration from version 4.1.0.17.28 to 4.1.0.17.29 ;)
- Everything works great now. I suppose that running the same (broken) installation after decreasing version could also help.
Grails' save(flush:true) hangs thread in socketRead0
Your stacktrace points at the likely problem:
oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:8674)
- locked oracle.jdbc.driver.T4CPreparedStatement@36df36e5
- locked oracle.jdbc.driver.T4CConnection@788d1087
You have a stuck thread (or threads) on your database and the app is hanging waiting for the threads. You need to check your database status to see if you can determine which queries are hanging. It's all possible updating to the latest JDBC driver will help.
The reason this is happening when you use flush: true
is because it's forcing your Hibernate session to flush to the database, where it encounters the stuck thread.
Related Topics
Select Where Count of One Field Is Greater Than One
How to Connect to SQL Express "Error: 26-Error Locating Server/Instance Specified)
Combining Order by and Union in SQL Server
Select Distinct on One Column, Return Multiple Other Columns (SQL Server)
How to Select the First Row Per Group in an SQL Query
Why Is the Foreign Key Part of the Primary Key in an Identifying Relationship
Counting Rows for All Tables at Once
Creating New User/Login in SQL Azure
SQL 2005 Cte VS Temp Table Performance When Used in Joins of Other Tables
Db2- How to Check If Varchar Field Value Has Integers
A How to Escape %% When Building Like Queries in Rails 3/Activerecord
"Like" Operator in Inner Join in SQL
Oracle SQL: How to Use More Than 1000 Items Inside an in Clause
Combining Results of Two Select Statements
Custom Order by to Ignore 'The'
Why Is Selecting Specified Columns, and All, Wrong in Oracle SQL