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 -> OCI Describe

OCI Describe

From: Ilya <tkn_at_slip.net>
Date: Thu, 25 Mar 1999 17:13:33 -0800
Message-ID: <36FADF3D.77E27D6C@slip.net>


Hi,
I need to describe a package using OCI. Here is some code:

	text* uname="....";
	text* passwd="....";
	text pkgName[]="MyPkg";
	int i;
	OCIDescribe *hDesc=0;
    /*Open DB Connection */
         ...............
	OCIHandleAlloc((dvoid *) hEnv, (dvoid **) &hDesc,
             (ub4) OCI_HTYPE_DESCRIBE,0,0);
	OCIDescribeAny(hCtx, hErr, (text *)SQLStmt,

(ub4) strlen((char *)SQLStmt), OCI_OTYPE_NAME, (ub1)1,
(ub1) OCI_PTYPE_PKG, hDesc);
...........................
at this point it crashes. What am I doing wrong? Any help is appreciated.

        Ilya. Received on Thu Mar 25 1999 - 19:13:33 CST

Original text of this message

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