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 > Can't run some querries

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-18-04, 14:23
parth parth is offline
Registered User
 
Join Date: Sep 2004
Posts: 11
Can't run some querries

hi Folks,

I am having a strange issue with an informix database. When I try
running some querries (through) cli library it gives me an error saying "Could
not write sorted data". I cant run that querry by hand either.
It shows an error "2: could not find file or directory".

one of the querries is "select * from <table name> where uid = <some number> order
by record_number". (It does work for some other uids, and fails for some others
too.). I tried replacing * by individual field names and it still fails. When I
remove the order by clause, it starts working.

Also, when I remove the largest field from the projection list (like notes, description etc), it starts working. I think there is some memory issue or somethin.

Any ideas what could be wrong?

thanks a lot,
Reply With Quote
  #2 (permalink)  
Old 10-18-04, 14:40
mjldba mjldba is offline
Registered User
 
Join Date: Dec 2003
Location: North America
Posts: 139
hi parth,

I'm pretty sure that sorting of output is performed in tempdbs if you're using IDS.

The results of this query may exceed the space available in your tempdbs so you'll have to add another chunk to tempdbs to execute it and sort the results as originally written.

Last edited by mjldba; 10-18-04 at 14:42.
Reply With Quote
  #3 (permalink)  
Old 10-18-04, 14:53
parth parth is offline
Registered User
 
Join Date: Sep 2004
Posts: 11
Thanks a lot. Is there a setup/environement variable/parameter that can be changed to rectify this? Thanks, -- Parth
Reply With Quote
  #4 (permalink)  
Old 10-18-04, 15:05
mjldba mjldba is offline
Registered User
 
Join Date: Dec 2003
Location: North America
Posts: 139
hi parth,

If you're using SE you may have to increase the size of whatever temp directory you're using, perhaps something like /tmp.

If you're using IDS, you have to add a chunk to tempdbs using the onspaces command. No need to bounce the engine, you can do this on-the fly.

can't really suggest more detailed answer than this 'cause much depends on your hardware, if you're using raw or cooked space, page size, and how much space you have available for adding a new chunk.
Reply With Quote
  #5 (permalink)  
Old 10-18-04, 15:12
parth parth is offline
Registered User
 
Join Date: Sep 2004
Posts: 11
Thanks a lot.
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