We use a query like this:
SELECT t1.thumbnail.Getbfile() thumbnail, title from sometable t1 where somefield=5
as a datasource for a (DevExpress) grid to display a thumbnail image and some other info for each row.
The OracleMonitor shows that for each row with a thumbnail, the LOB is opened and closed, except for the last thumbnail, which is opened, but never closed.
This results in leaving one extra LOB open for each run of the query (TOracleDataset), quickly resulting in an ORA-22290 message:
"operation would exceed the maxiumum number of opened files or LOBs"
TOracleDataset.Close does not close the open LOB(s), but CloseAll does. However, it is pretty inconvenient having to do CloseAll after each time having activated (or changed parameters) to one of the datasets running these kinds of queries. Is there another way to solve this problem?
DOA: 3.4.6.1
Oracle: 8.1.7
Delphi 5, Update Pack 1
Cheers,
Jarle
SELECT t1.thumbnail.Getbfile() thumbnail, title from sometable t1 where somefield=5
as a datasource for a (DevExpress) grid to display a thumbnail image and some other info for each row.
The OracleMonitor shows that for each row with a thumbnail, the LOB is opened and closed, except for the last thumbnail, which is opened, but never closed.
This results in leaving one extra LOB open for each run of the query (TOracleDataset), quickly resulting in an ORA-22290 message:
"operation would exceed the maxiumum number of opened files or LOBs"
TOracleDataset.Close does not close the open LOB(s), but CloseAll does. However, it is pretty inconvenient having to do CloseAll after each time having activated (or changed parameters) to one of the datasets running these kinds of queries. Is there another way to solve this problem?
DOA: 3.4.6.1
Oracle: 8.1.7
Delphi 5, Update Pack 1
Cheers,
Jarle