PROBLEMS WITH ODAC 6.10.0.9
Posted: Thu 28 Jun 2007 13:13
Hi;
First of all, please forgive my poor English grammar, but I'm Spanish and I know my English is not good enough. I'll do my best.
I work with Delphi and Oracle 10G in Direct Mode, this is WITH NO ORACLE CLIENT.
The problem usually occurs when I display a large amount of records (more than 10,000 records) in a Grid... sometimes with 2000 records it also fails.
What I have seen is that, when the FETCHROWS Property of a TOraQuery is set to 25 (FETCHALL = FALSE) , and I press the Key "End" in my keyboard, to go to the last record in the Grid, Delphi Raises an "ACCESS VIOLATION".
When I accept the error, the Grid does not show any record, it remains in blank, due to that error... but If I press the Key "End" again, ¡¡ The grid recovers many records !!! ... BUT CURIOUSLY 25, 50....125....200.... this is, always related with the FETCHROWS property. (FETCHROWS * 2, FETCHROWS * 15... ).. Always multiplied.
I must say, that the TOraQuery has very complex opperations in the ONCALCFIELDS, but It works CORRECTLY with a PREVIOUS ODAC version (4.50.1.18).
If I make this opperation, If I show the SAME data with a previous ODAC version (4.50.1.18), it works OK, curiously despite this ODAC version was not recommended for Oracle 10g... It works OK. It does not raise any exception. WHY ????
If I show a QUERY with NO CALCULATED FIELDS, with the ODAC 6.10.0.9 works ok, in Direct Mode.... The PROBLEM SEEMS TO BE when using CALCULATED FIELDS, MEMORY.... FETCHROWS WITH ORACLE 10g AND ODAC 6.10.0.9... I don't know what to think.
I have more to tell...
Another problem, related to the FETCHROWS property (don't know why it worked in ODAC 4.50.1.18 and not with this one), is when you show a QReport with "many" data... It usually raises an exception: "Invalid Metafile"... "Cannot create file €♫m file" (odd characters)... and "Access Violation".
I have read about this in the Web, and many people told me it was caused because of the "possible" Lack of Memory, etc...
Well... I'm running the application in a 10 GB RAM PC, and the Database Server has the same hardware configuration.
If I run the application in my client against the server (I told you before I have NO ORACLE CLIENT, I work in Direct Mode), some Qreports works ok... but If I run the application in the Server, the same reports fail...
I want to know WHY does my application work with ODAC 4.50.1.18 with ORACLE CLIENT, using a TOraQuery with CALCULATED FIELDS, ... It does not raise ANY EXCEPTION... but now with this version it fails a lot.
Please... Have you any idea?. Could you help me with this?
Thank You Very Much.
First of all, please forgive my poor English grammar, but I'm Spanish and I know my English is not good enough. I'll do my best.
I work with Delphi and Oracle 10G in Direct Mode, this is WITH NO ORACLE CLIENT.
The problem usually occurs when I display a large amount of records (more than 10,000 records) in a Grid... sometimes with 2000 records it also fails.
What I have seen is that, when the FETCHROWS Property of a TOraQuery is set to 25 (FETCHALL = FALSE) , and I press the Key "End" in my keyboard, to go to the last record in the Grid, Delphi Raises an "ACCESS VIOLATION".
When I accept the error, the Grid does not show any record, it remains in blank, due to that error... but If I press the Key "End" again, ¡¡ The grid recovers many records !!! ... BUT CURIOUSLY 25, 50....125....200.... this is, always related with the FETCHROWS property. (FETCHROWS * 2, FETCHROWS * 15... ).. Always multiplied.
I must say, that the TOraQuery has very complex opperations in the ONCALCFIELDS, but It works CORRECTLY with a PREVIOUS ODAC version (4.50.1.18).
If I make this opperation, If I show the SAME data with a previous ODAC version (4.50.1.18), it works OK, curiously despite this ODAC version was not recommended for Oracle 10g... It works OK. It does not raise any exception. WHY ????
If I show a QUERY with NO CALCULATED FIELDS, with the ODAC 6.10.0.9 works ok, in Direct Mode.... The PROBLEM SEEMS TO BE when using CALCULATED FIELDS, MEMORY.... FETCHROWS WITH ORACLE 10g AND ODAC 6.10.0.9... I don't know what to think.
I have more to tell...
Another problem, related to the FETCHROWS property (don't know why it worked in ODAC 4.50.1.18 and not with this one), is when you show a QReport with "many" data... It usually raises an exception: "Invalid Metafile"... "Cannot create file €♫m file" (odd characters)... and "Access Violation".
I have read about this in the Web, and many people told me it was caused because of the "possible" Lack of Memory, etc...
Well... I'm running the application in a 10 GB RAM PC, and the Database Server has the same hardware configuration.
If I run the application in my client against the server (I told you before I have NO ORACLE CLIENT, I work in Direct Mode), some Qreports works ok... but If I run the application in the Server, the same reports fail...
I want to know WHY does my application work with ODAC 4.50.1.18 with ORACLE CLIENT, using a TOraQuery with CALCULATED FIELDS, ... It does not raise ANY EXCEPTION... but now with this version it fails a lot.
Please... Have you any idea?. Could you help me with this?
Thank You Very Much.