Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Sorting problems (can a 'lousy' sort cause a database crach?)
Forgott to put in the number of rows returned:
7816
/Jonas
Hello
I have a little problem with craches sometimes in the database. In our client application there is a window performing this population:
select col1, col2, col3
function1(col1, col2, ...) ... function6(col1, col2, ...) due_date
from the_view
where ...
and ...
order by nvl(some_function(colum, colum1, colum2, ...,), due_date)
The select clause returns about ????? rows which all have to be sorted.... (Yes there are 6 calls to functions in the select clause)
The last statement in the alert log refers to this statement. As far as I understand, sorting requires a lot of memory, and if sorting is using a function, each result must be stored before the sorting can start.
By the way I'm using Oracle 7.3.4.5.0 on a NT4 machine with 2,1 G pm and 4 process. At the time when the sort happened, we had about 120 sessions in the database.
/Jonas
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Jonas A Wetterberg
INET: jonas.a.wetterberg_at_manpower.se
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Fri Jun 08 2001 - 06:02:53 CDT