Page 1 of 2

Ora-24508 error when selecting a date field and rowid when using Unicode = true

Posted: Thu 09 Aug 2007 14:08
by DarrenColes
This code:
OracleConnection oc = new OracleConnection();
oc.ConnectionString = "pooling = false";
oc.Unicode = true;
oc.AutoCommit = true;
oc.Server = "development";
oc.UserId = "user";
oc.Password = "pass";
oc.Open();

OracleCommand o2 = oc.CreateCommand();
o2.CommandType = CommandType.Text;
o2.ParameterCheck = true;

o2.CommandText = "drop table abc";
try
{ o2.ExecuteNonQuery(); }
catch
{ }

o2.CommandText = "create table abc (a varchar2(4000), b date)";
o2.ExecuteNonQuery();

o2.CommandText = "insert into abc (a,b) values ('aasaaadsfsdfsdfsdfsd',sysdate)";
o2.ExecuteNonQuery();

o2.CommandText = "select b,rowid from abc";
OracleDataReader or = o2.ExecuteReader();
if (or.Read())
{
or.GetString(0);
}
or.Close();
or.Dispose();
or = null;

when run on our environment produces a very vague "ora-24508 : Message 24508 not found" error. According to the internet this error is "Buffer not aligned correctly".

This only happens when Unicode = true.

Posted: Thu 09 Aug 2007 14:46
by Alexey
What version of OraDirect .NET do you use? I can't reproduce this problem with the latest beta.
Have you tried another Oracle data provider?

Posted: Thu 09 Aug 2007 14:51
by DarrenColes
I'm using 3.55.23 and no I haven't tried using another provider. I will try that now. The old version of the software that was written in Delphi using the Core Lab ODAC component works fine with the query however.

Posted: Thu 09 Aug 2007 15:02
by DarrenColes
this code which uses the System.Data.OracleClient classes works as expected.

System.Data.OracleClient.OracleConnection oc = new System.Data.OracleClient.OracleConnection();
oc.ConnectionString = "pooling = false; data source = development; unicode = true; User Id=user;Password=pass";
//oc.Unicode = true;
//oc.AutoCommit = true;
//oc.Server = "development";
//oc.UserId = "top_level";
//oc.Password = "top_level";
oc.Open();

System.Data.OracleClient.OracleCommand o2 = oc.CreateCommand();
o2.CommandType = CommandType.Text;
//o2.ParameterCheck = true;

o2.CommandText = "drop table abc";
try
{ o2.ExecuteNonQuery(); }
catch
{ }

o2.CommandText = "create table abc (a varchar2(4000), b date)";
o2.ExecuteNonQuery();

o2.CommandText = "insert into abc (a,b) values ('aasaaadsfsdfsdfsdfsd',sysdate)";
o2.ExecuteNonQuery();

o2.CommandText = "select b,rowid from abc";
System.Data.OracleClient.OracleDataReader or = o2.ExecuteReader();
if (or.Read())
{
or.GetDateTime(0);
or.GetString(1);
}
or.Close();
or.Dispose();
or = null;

Posted: Thu 09 Aug 2007 15:43
by Alexey
Just tried your code with 3.55.23. Still no exception.
What are the versions of your Oracle server and client?

Posted: Thu 09 Aug 2007 16:08
by DarrenColes
Oracle Server version 9.2.0.8 and Oracle Client version 9.2.0.6

Posted: Fri 10 Aug 2007 08:49
by DarrenColes
I downloaded a trial version of OraDirect 4.00 and this appears to be fixed in that version

Posted: Fri 10 Aug 2007 09:06
by Alexey
Very well.

Posted: Fri 10 Aug 2007 09:08
by DarrenColes
However the previous bug we reported with parameters getting truncated does not appear to be fixed in version 4.00, only version 4.20.

If we buy an upgrade from version 3 to version 4, will we get a registered version of 4.20?

Also I would need to discuss with the rest of our business to decide if we were comfortable to go with a beta version of OraDirect in our product.

Is there an ETA for the final version of 4.20?

Posted: Fri 10 Aug 2007 10:12
by Alexey
If we buy an upgrade from version 3 to version 4, will we get a registered version of 4.20?
Yes, of course.
Is there an ETA for the final version of 4.20?
Hopefully, we will release it next week.

Posted: Mon 13 Aug 2007 09:49
by DarrenColes
Could you be more specific as to when this week? I need to make a decision whether or not to disable the unicode support in our app, or wait for this version to be released and unfortunately we didnt spot this issue until the app was deployed in our live environment.

Posted: Wed 15 Aug 2007 07:24
by Alexey
Hopefully, we will upload new build tomorrow.

Posted: Thu 16 Aug 2007 16:05
by DarrenColes
Can you please provide me with an update for when you expect version 4.20 to be released?

We really need a version of the component with both of our issues fixed as soon as possible.

Posted: Fri 17 Aug 2007 07:10
by Alexey
We released new version of 4.00 yesterday.
Could you please specify, what bugs are not fixed in 4.00?

Posted: Fri 17 Aug 2007 08:33
by DarrenColes
the bug we mentioned here

http://www.crlab.com/forums/viewtopic.php?t=9958

which is fixed in 3.55.23 according to the version history which says

Bug with long string parameters fixed

this is not mentioned in the version 4 history anywhere and does not appear to be fixed.

This is very serious for us now, as we paid to upgrade to version 4 expecting a release this week that fixes both issues. I really hope you can provide an update to version 4 that fixes both issues ASAP.