1. OCI: Binding collections (varray), Ora 1008: not all variables bound
Hi,
I,ve got a stored procedure, which takes a varray as parameter:
create or replace type tp_person as object
(
pid number,
name varchar2(20),
vorname varchar2(20),
strasse varchar2(20),
ort varchar2(20),
);
/
create or replace type va_person AS varray(100) of tp_person;
/
procedure list(person out va_person) is
begin
select
cast(multiset(
select value(tb)
from ov_person tb)
as va_person)
into
person
from
dual;
end;
/ (Thanks to T.Kyte)
Now I want to call this procedure from an OCI program:
static text *listStmtTxt = (text *) "BEGIN\
pkg_person.list(:DATA);\
END;";
OCIStmtPrepare(...)
OCIDefineByPos(...,(ub4)1,...)
OCIDescribeAny(...)
OCIAttrGet(..., (ub4) OCI_HTYPE_DESCRIBE,..., (ub4)OCI_ATTR_PARAM,...)
OCIAttrGet(..., (ub4) OCI_DTYPE_PARAM,... (ub4)OCI_ATTR_REF_TDO,...)
OCIObjectPin(...)
OCIDefineObject(...)
OCIDefineArrayOfStruct(...)
OCIStmtExecute(...) returns "Ora 1008: not all variables bound".
Who knows, what I forgot.
Does anybody have a chunk of sample code for this purpose?
TIA,
Joerg Blaese
3. ORA-01008: not all variables bound error in WebLOgic connection pooling
5. ORA-01008: not all variables bound .
7. Urgent !!!! -- ORA-01008: not all variables bound
9. ORA-01008 not all variables bound ?
10. ORA-01008: not all variables bound
11. Dynamic SQL return ORA : 1006 : Bind variable does not exist
12. Error 1008 from GetProxyAccount when Execute
13. Error 1008: ORDER BY @Anything