Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> oexec gives ORA-01460 using OCI?

oexec gives ORA-01460 using OCI?

From: Arun Jamwal <arun_at_quality.com>
Date: Wed, 21 Oct 1998 18:16:43 -0700
Message-ID: <362E877B.905A09A1@quality.com>


I have one questin about obdra function. If I want to bind a parameter of the following type using obndra, then how do I do it?

create procedure sp_test

   (
    rc in out number,
    age in integer
)
is
begin
commit;
end;

main()
{

sword n_ret = -1;
sb2 n_ret_indp;
ub2 n_ret_len, n_ret_rcode;

...

if (obndra(&cda, (text *) ":num_ret", -1, (ub1 *) &n_ret, (sword) sizeof(sword),

    INT_TYPE, -1, &n_ret_indp, &n_ret_rcode, (ub4) 0, (ub4 *) 0, (text *) 0, -1, -1))
...

if (oexec(&cda))

I get the following error on oexec:

ORA-01460: unimplemented or unreasonable conversion requested

This happens if the rc is declare in and out. if rc is just out type, then
the error doesn't happen.

Could anyone please tell me what to do to fix it?

Thank you very much!

Arun.


Received on Wed Oct 21 1998 - 20:16:43 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US