The moose likes JDBC and Relational Databases and the fly likes Very Urgent !!!...Sql Gets Hanged... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "Very Urgent !!!...Sql Gets Hanged..." Watch "Very Urgent !!!...Sql Gets Hanged..." New topic

Very Urgent !!!...Sql Gets Hanged...

Geeta Gune

Joined: Mar 19, 2002
Posts: 17
I am using Oracle 9i.Everything is working fine but now when i try to insert in a specific table using SQL Plus ,it gets hanged..why??
If i insert it in a different table it does not give any problem.
Can anybody tell me what is the problem..
Please help..its very urgent..
Younes Essouabni
Ranch Hand

Joined: Jan 13, 2002
Posts: 479
Most often is that you have another editor or a pgm that is working in that specific table. Once some process occurs on a table, the table may get locked until the process finish.

By constantly trying one ends up succeeding. Thus: the more one fails the more one has a chance to succeed.
David O'Meara

Joined: Mar 06, 2001
Posts: 13459

A related problem that is close but not quite the same is transactions.
I've had a similar problem with SQL Plus (again when another process is running against the same database), but SQL Plus doesn't have autocommit set by default and will lock tables until you commit or rollback the transaction.
I agree. Here's the link:
subject: Very Urgent !!!...Sql Gets Hanged...
It's not a secret anymore!