ODAC ORaPackage , Urgent :(

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
EDDY

ODAC ORaPackage , Urgent :(

Post by EDDY » Tue 20 Jun 2006 20:21

I try ODAC for Delphi 7 and have problem with
ORApackets

When execute:
param1 and param2 are string where param2='C'

OraPackage.PackageName:='DBMS_SNAPSHOT';

ORaPackage.ExecProcEx('REFRESH',[param1,param2]);
i become error ' Could not convert variant of type
(string) into type (boolean)

Thanks

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Wed 21 Jun 2006 09:50

For ExecProcEx method parameters must be supplied in Params array as pairs of parameters' names and values so that every value comes immediately after its name. For example:

Code: Select all

OraPackage.ExecProcEx('REFRESH', ['list', Param1, 'method', Param2]);

EDDY

RE::ORApackets

Post by EDDY » Wed 21 Jun 2006 15:08

plash wrote:For ExecProcEx method parameters must be supplied in Params array as pairs of parameters' names and values so that every value comes immediately after its name. For example:

Code: Select all

OraPackage.ExecProcEx('REFRESH', ['list', Param1, 'method', Param2]);
Thanks, but not respond,

this my code:
self user and pass

in sqlplus is ok execute DBMS_SNAPSHOT.REFRESH('ESQUEM.TABLE','C');

but in deplhi

OraPackage2.PackageName:='DBMS_SNAPSHOT';
OraPackage.ExecProcEx('REFRESH',['ESQUEM.TABLE','C']);
ERROR: paramnt not found

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 23 Jun 2006 13:13

To execute stored procedure using ODAC you should supply parameters for ExecProcEx method as pairs of parameters' names and values so that every value comes immediately after its name.
Also you can use TOraStoredProc component.

Eddy

OK

Post by Eddy » Mon 26 Jun 2006 22:58

plash wrote:To execute stored procedure using ODAC you should supply parameters for ExecProcEx method as pairs of parameters' names and values so that every value comes immediately after its name.
Also you can use TOraStoredProc component.
Ist Ok with DBMS_SNAPSHOT.REFRESH('list','ESQUEM.TABLE','method','C');
but is very slow


thank

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 30 Jun 2006 08:39

See reply in Execute command topic

Post Reply