Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

Greetings!!!

I am facing a issue with IDataReader when trying to read a row from Database. I am having IDataReader object called objDataReader. The results are looped using while loop as below.
C#
while(objDataReader.Read())
{
   // doing some work
}


Due to some problem in reading LONG data from database, the objDataReader.Read() is throwing exception(ORA-01062: unable to allocate memory for define buffer ) for a particular row. It is not possible to continue to next row after the exception.

Kindly advice me how to proceed to next row, even after getting exception in the objDataReader.Read() method.

Thanks in advance.
Posted
Updated 4-Sep-14 3:37am
v2

1 solution

Probably, you can't: ORA-01062 is an Oracle error, not a .NET error - and that means it's the database server that is complaining and causing the problem, not the .NET framework or your C# code.

You need to start delving into Oracle: Google "ORA-01062"[^] may be able to help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900