ORA-1008 : Not All variable Bound

ORA-1008 : Not All variable Bound

Post by fvernie » Fri, 16 Apr 1999 04:00:00



I use a PL/SQL function in a "Select Order".
 We use 3 tiers (Client/ Serveur/Oracle).
When i execute the function from the Client, i have an Oracle error :
ORA-1008 : Not All variable Bound
 
 
 

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

2. detecting Temporary tables

3. ORA-01008: not all variables bound error in WebLOgic connection pooling

4. Stuck with DBList

5. ORA-01008: not all variables bound .

6. Bit fields on SQL 2000

7. Urgent !!!! -- ORA-01008: not all variables bound

8. Sybase 11.9.2

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