Search found 21 matches

by Tony49
Mon 04 Jul 2022 10:27
Forum: Oracle Data Access Components
Topic: ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column
Replies: 1
Views: 8468

Re: ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column

Do you know if this error is related to bug 12.0.2 09-Dec-21 Fixed bug with LONG parameters in Oracle 11 and earlier ?
by Tony49
Fri 01 Jul 2022 14:14
Forum: Oracle Data Access Components
Topic: ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column
Replies: 1
Views: 8468

ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column

C++ builder 10.4 Update 1
12.0.1 for RAD Studio 10.4
ODAC 12.0.1

Hello,

With instant client 11.2 i obtain error "ORA-24816: Expanded non LONG bind data supplied after actual LONG or LOB column".
There's no problem with instant client 12.2.

No more problem with instant client 11.2 with old c++ builder 5 and ODAC 6.70.4.45.

Can you help me please ?
by Tony49
Tue 02 Jul 2019 09:22
Forum: Oracle Data Access Components
Topic: TOraquery astring problem.
Replies: 1
Views: 4552

TOraquery astring problem.

Hi,

I use ODAC v 6.90 component to query Oracle database. I have problem with BCB2010 (no problem with BCB5).
I also tried with v 10.4 (trial version) : i have the same problem.

When i send the result of my query to a function i have an Assertion failed error (... errPtr-> ERRcInitDtc > = varType ....) in concatenation operation.



pOraQuery->SQL->Clear();
pOraQuery->SQL->Add(" SELECT col1, col2 from mytable");
pOraQuery->Open();
pOraQuery->First();

UnicodeString sCol1 = "";
UnicodeString sCol2 = "";
while (!pOraQuery->Eof)
{
test(pOraQuery->FieldByName("col1")->AsString, pOraQuery->FieldByName("col2")->AsString); //Assertion failed error

/*sCol1 = pOraQuery->FieldByName("col1")->AsString;
sCol2 = pOraQuery->FieldByName("col2")->AsString;
test(sCol1, sCol2); //no error*/

pOraQuery->Next();
}
pOraQuery->Close();

void test(UnicodeString s1, UnicodeString s2)
{
UnicodeString s3 = s1+" "+s2;
}

Can you help me please.
by Tony49
Fri 28 Mar 2014 08:20
Forum: Oracle Data Access Components
Topic: ODAC 9.1 Performance is improved
Replies: 1
Views: 1057

ODAC 9.1 Performance is improved

Hi,

I actually use ODAC 6.70. I want to know what kind of performance are improved in ODAC 9.1?

Cordially.
by Tony49
Mon 08 Oct 2012 14:02
Forum: Oracle Data Access Components
Topic: How to get the last sql query sent when error appear
Replies: 2
Views: 1145

Re: How to get the last sql query sent when error appear

I had not seen 'Component' property. Thank's a lot.
by Tony49
Mon 08 Oct 2012 09:47
Forum: Oracle Data Access Components
Topic: How to get the last sql query sent when error appear
Replies: 2
Views: 1145

How to get the last sql query sent when error appear

Hi,

I try to log the last sql query send to the database when an error appear. I looked at OnError event in TOraSession class but i don't know how to get the last sql query.
by Tony49
Fri 26 Aug 2011 12:08
Forum: Oracle Data Access Components
Topic: TOraSQL no response when delete object after update blob
Replies: 1
Views: 1179

Support team said me :

Thank you for the information.
We have reproduced the problem.
We will try to fix it in the nearest product version.
by Tony49
Tue 23 Aug 2011 14:47
Forum: Oracle Data Access Components
Topic: TOraSQL no response when delete object after update blob
Replies: 1
Views: 1179

TOraSQL no response when delete object after update blob

Hi,

I use NonBlocking option (true) to prevent blocking update by another user.

After my timeout (WaitExecuting) i call BreakExec. The problem is when i want to free my objet. The instruction wait for until the other who lock the record commit. Can you tell me what can i do?

My example :


pOraSQL->NonBlocking = true;
pOraSQL->Execute();

pOraSQL->WaitExecuting(5);

if(pOraSQL->Executing())
{
pOraSQL->BreakExec();
delete pOraSQL; //lock until transaction no committed by the other user.
throw Exception("LOCK");
}

The problem appear only when i update a record witch include a blob field (with a not null value)
by Tony49
Tue 01 Feb 2011 08:56
Forum: Oracle Data Access Components
Topic: retrieve primary key after insert
Replies: 3
Views: 1303

Thank's a lot. ;-)
by Tony49
Mon 31 Jan 2011 15:09
Forum: Oracle Data Access Components
Topic: retrieve primary key after insert
Replies: 3
Views: 1303

retrieve primary key after insert

Can you tell me if it's possible to retrieve primary key (generated by a trigger before insert) after my insert?

I set ParamType to Db::ptOutput. The retrieve value is empty : pOraSQL->ParamByName("ID")->AsString.

Can you help me?
by Tony49
Wed 21 Jul 2010 13:46
Forum: Oracle Data Access Components
Topic: Connect to the same session from two process
Replies: 1
Views: 1279

Connect to the same session from two process

Hi,

Is it possible to work with the same session form two différente application.

My first application open a session with userName=USER1 password=PASS1 and servername=DATABASE1

My second application must connect to the database with the same connectstring as the first application but i don't want to creation a new session. So, is it possible to link the session of the second application to the first application?

Thank for your help.
by Tony49
Mon 21 Sep 2009 15:48
Forum: Oracle Data Access Components
Topic: link error : Dbaccess::TCustomDAConnection::ApplyUpdates
Replies: 3
Views: 1568

I never call ApplyUpdates method from my application.
by Tony49
Thu 17 Sep 2009 14:36
Forum: Oracle Data Access Components
Topic: link error : Dbaccess::TCustomDAConnection::ApplyUpdates
Replies: 3
Views: 1568

if i declare in my class (that derive from TOraSession) :

void __fastcall TMyOraSession::ApplyUpdates(TCustomDADataSet* const * DataSets, const int DataSets_Size)
{

}

The project compile.
Why there's this difference between ODAC5 and ODAC6 ?
by Tony49
Thu 17 Sep 2009 14:02
Forum: Oracle Data Access Components
Topic: link error : Dbaccess::TCustomDAConnection::ApplyUpdates
Replies: 3
Views: 1568

link error : Dbaccess::TCustomDAConnection::ApplyUpdates

Hello,

Since i updated ODAC (5.80.0.42 to 6.70.0.45) i can't link my c++ project.
My IDE is Borland C++ builder 5.

The message is :

[Lieur Erreur] Unresolved external '__fastcall Dbaccess::TCustomDAConnection::ApplyUpdates(Dbaccess::TCustomDADataSet * const *, const int)'

The problem comes from a class derivating from TOraSession.
This class, that i created in past, compile with ODAC.5

Can you help me please?
by Tony49
Mon 16 Feb 2009 16:30
Forum: Oracle Data Access Components
Topic: ODAC v.5.80.0.42 TOraSession:Connect/Disconnect memory leak
Replies: 11
Views: 3850

Thank you for your reply.