If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > java.sql.SQLException: Could not position within a file via an index

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-05-05, 10:48
zhongyu zhongyu is offline
Registered User
 
Join Date: Oct 2005
Posts: 3
Question java.sql.SQLException: Could not position within a file via an index

Hi guys,
First I had the 243 problem (Couldn't not position within a table(table name)) first. then I changed my isolation level to "READ_UNCOMMITTED", but now I got stuck on the error 245. when i looked at the lock logs, the other process was getting IX,X table/page/row locks on the table my process was trying to access, plus the X locks on the primary key and foreign keys.
Any suggestion?
Thanks very much!
Zz
Reply With Quote
  #2 (permalink)  
Old 10-05-05, 11:12
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Hi,

Please run before SET LOCK MODE TO [WAIT|| n seconds], next run sql.

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 10-05-05, 11:43
zhongyu zhongyu is offline
Registered User
 
Join Date: Oct 2005
Posts: 3
index locking?

Thanks Gustavo.
Actually I did set the lock mode to -1(which is wait until the lock releases). Everything worked on my test(i did a lock table in exclusive mode) and my own application/proc waited until I issued the unlock command. However, as soon as the other app runs(the test team and I had the test case of running two apps at the same time), I watched the locks and the locks showed indexes being locked as well(along with some system locks that I am not familar with), then my app will get this 245 error Could not position within a file via index). of course, after 3 mins when the other app is done, my app worked as usual.
Any insight is highly appreciated! I have been stuck with this issue for a week.
Zhongyu

Last edited by zhongyu; 10-05-05 at 12:06.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On