OCIDescribeAny

Hello *,
perhaps somebody can help me with this problem:
OCIDescribeAny segemtation faults if called with handles optained
not using OCI_OBJECT but rather OCI_DEFAULT (->OCIInitialize).
Now I need to use OCIDescribeAny in an external procedure that
only has handles optained by OCIExtProcGetEnv, where I can't
specify the OCI_OBJECT-mode.
Is there somem workaround? How can I collect all columns' names
of a table in an external procedure?
Thanks,
J.Lanzinger
null

Joerg Lanzinger (guest) wrote:
: Hello *,
: perhaps somebody can help me with this problem:
: OCIDescribeAny segemtation faults if called with handles
optained
: not using OCI_OBJECT but rather OCI_DEFAULT (->OCIInitialize).
: Now I need to use OCIDescribeAny in an external procedure that
: only has handles optained by OCIExtProcGetEnv, where I can't
: specify the OCI_OBJECT-mode.
: Is there somem workaround? How can I collect all columns' names
: of a table in an external procedure?
: Thanks,
: J.Lanzinger
This was a bug fixed in 8.0.6 and 8i. No workaround.
null

Similar Messages

  • OCIDescribeAny() to describe a package

    I tried to retrieve information about a package using
    OCIDescribeAny(). My problem is when there is only one procedure
    inside a package, my code doesn't work.If there are over two
    procedures inside a package,my code can retrieve some of
    proceures,then crashed. the following is part of code to
    retrieve the information.Can any one help me to solve this
    problem?
    static void describe_package()
         // package to be described
         text *objptr;
         ub4 objp_len;
         OCIParam* parmh;//parameter handle
         OCIParam* arglst;     //level 0 arguemnt list handle
         OCIParam* arglst1;     //level 1 arguemnt list handle     
         OCIParam* arglst2;//level 2 arguemnt list handle
         OCIParam* arglst3;//level 3 arguemnt list handle
         OCIParam* arg;//level 0 arguemnt handle     
         OCIParam* arg1;//level 1 arguemnt handle
         OCIParam* arg2;//level 2 arguemnt handle
         OCIParam* arg3;//level 3 arguemnt handle
         ub2 numargs, numargs1,numargs2, numargs3;
         ub4 namelen, namelen1, namelen2, namelen3;
         ub4 i, j, k, m;
         //ub2     arglst_type;
         text* name;
         text* name1;
         text* name2;
         text* name3;
         sword retval;
         objptr = pkgname;
         objp_len = strlen(objptr);
         //describe handle
         checkerr (errhp, OCIHandleAlloc((dvoid *) envhp, (dvoid
    **) &dschp,
    (ub4) OCI_HTYPE_DESCRIBE,
    (size_t) 0, (dvoid **) 0));
         if ((retval = (OCIDescribeAny(svchp, errhp, objptr,
    objp_len, OCI_OTYPE_NAME,0,
                                  OCI_PTYPE_PKG,
    dschp))) != OCI_SUCCESS)
              if (retval == OCI_NO_DATA)
              printf("NO DATA: OCIDescribeAny on %s\n",
    &objptr);
         else
    /* OCI_ERROR */
              printf( "ERROR: OCIDescribeAny on %s\n",
    &objptr);
              checkerr(errhp, retval);
              return;
         if (OCIAttrGet(dschp, OCI_HTYPE_DESCRIBE, &parmh, 0,
    OCI_ATTR_PARAM, errhp))
              return ;
         if (OCIAttrGet(parmh, OCI_DTYPE_PARAM, &arglst, 0,
    OCI_ATTR_LIST_SUBPROGRAMS, errhp))
              return ;
         //if (OCIAttrGet(arglst,OCI_DTYPE_PARAM, &numargs, 0,
    OCI_ATTR_NUM_PARAMS, errhp))
         //     return ;
         if (arglst)
              OCIAttrGet(arglst,OCI_DTYPE_PARAM, &numargs, 0,
    OCI_ATTR_NUM_PARAMS, errhp);
              for (i = 1; i <= numargs; i++)
                   OCIParamGet (arglst, OCI_DTYPE_PARAM,
    errhp, &arg, i);
                   OCIAttrGet (arg, OCI_DTYPE_PARAM, &name,
    &namelen, OCI_ATTR_NAME, errhp);
                   OCIAttrGet (arg, OCI_DTYPE_PARAM,
    &arglst1, 0, OCI_ATTR_LIST_ARGUMENTS, errhp);               
                   if (arglst1)
                        OCIAttrGet
    (arglst1,OCI_DTYPE_PARAM, &numargs1, 0, OCI_ATTR_NUM_PARAMS,
    errhp);
                        for (j = 1; j <= numargs1; j++)
                             OCIParamGet (arglst,
    OCI_DTYPE_PARAM, errhp, &arg1, j);
                             OCIAttrGet (arg1,
    OCI_DTYPE_PARAM, &name1, &namelen1, OCI_ATTR_NAME, errhp);
                             OCIAttrGet (arg1,
    OCI_DTYPE_PARAM, &arglst2, 0, OCI_ATTR_LIST_ARGUMENTS, errhp);
                             if (arglst2)
                                  OCIAttrGet
    (arglst2, OCI_DTYPE_PARAM, &numargs2, 0, OCI_ATTR_NUM_PARAMS,
    errhp);
                                  for (k = 1; k <=
    numargs2; k++)
         OCIParamGet (arglst2, OCI_DTYPE_PARAM, errhp, &arg2, k);
         OCIAttrGet (arg2, OCI_DTYPE_PARAM, &arglst3, 0,
    OCI_ATTR_LIST_ARGUMENTS, errhp);
         OCIAttrGet (arg1, OCI_DTYPE_PARAM, &name2, &namelen2,
    OCI_ATTR_NAME, errhp);
         //OCIAttrGet (name1, OCI_DTYPE_PARAM, &arglst_type, 0,
    OCI_ATTR_DATA_TYPE, errhp);                         
                                       if
    (arglst3)
         OCIAttrGet (arglst3, OCI_DTYPE_PARAM, &numargs3, 0,
    OCI_ATTR_NUM_PARAMS, errhp);
         for (m = 1; m <= numargs3; m++)
         OCIParamGet (arglst3, OCI_DTYPE_PARAM, errhp, &arg3, m);
         OCIAttrGet (arg3, OCI_DTYPE_PARAM, &name3, &namelen3,
    OCI_ATTR_NAME, errhp);
         }//end for m
                                       }//end
    arglst3
                                  }//end for k
                             }//end arglst2
                        } //end for j
                   }//end arglst1
              }//end for i
         }//end arglst
         //free the describe handle
         OCIHandleFree((dvoid *) dschp, (ub4) OCI_HTYPE_DESCRIBE);
    Thanks a lot.

    The arglist starts from 0th position for packages.
    Try for (i=0; i<=numargs-1;++i).

  • Use OCIDescribeAny to describe Procedure in a package?

    I used the following code retrieve the parameter information for
    procedures:
    OCIDescribeAny(svchp, errhp, objptr, objp_len, OCI_OTYPE_NAME,0,
              OCI_PTYPE_PROC, deschp);
    if (OCIAttrGet(deschp, OCI_HTYPE_DESCRIBE, &parmh, 0,
    OCI_ATTR_PARAM, errhp))
              return ;
         if (OCIAttrGet(parmh, OCI_DTYPE_PARAM, &arglst, 0,
    OCI_ATTR_LIST_ARGUMENTS, errhp))
              return ;
         if (OCIAttrGet(arglst,OCI_DTYPE_PARAM, &numargs, 0,
    OCI_ATTR_NUM_PARAMS, errhp))
              return ;
    If I pass a procedure which exists in a package, I will get a
    object does not exist error. How can I describe a procedure in a
    package using OCIDescribeAny ? Thanks.

    I tested it in the SQL Worksheet (rather than the PL/SQL editor), but I see the same behaviour as you when I try with your example in the PL/SQL editor. A little testing suggests that the problem is that the completion insight doesn't understand the context of where it is in the PL/SQL and so doesn't know what options to list.
    If I try adding the end for the new procedure and then going back to after the "(":procedure Proc_test_call
    is
    begin
    pkg_test2.proc_test2(
    end proc_test_call;I just get begin and declare as options - ie completion insight thinks I am no longer in scope of the package (as other package components not listed) and starting a new block.
    If I try adding an assignment before the procedure call (not logical, I know, but I had been testing with a function in my schema):procedure Proc_test_call
    is
    begin
      result := pkg_test2.proc_test2(I get what we should (parameters for proc_test2 and local scope items).
    Your workaround of adding the closing backet for the procedure call helps the completion insight understand the context of where it is and so it can give the right options.
    I have previously avoided parameter completion insight as earlier versions had big performance problems when connected to a schema with a large number of PL/SQL objects (our main schema has 5.5 million records in all_arguments), but the performance has certainly been fixed. However, the PL/SQL editor still seems pretty hit and miss as to whether the parameter completion insight works, which seems largely to be because it doesn't always the context of where it is in the PL/SQL.
    theFurryOne

  • Incorrect column names returned using OCIDescribeAny

    I am trying to retrieve column names using OCIDescribeAny and OCIAttrGet api calls.
    The column names and the lengths of the column names returned by OCIAttrGet calls are usually correct.
    Except when the length of column names are divisible by 4, an extra tab is padded at the end of the returned string by OCIAttrGet.
    The length returned by the call is fine.
    Example 1.
    Column Name:
    CITY
    Results Returned by OCIAttrGet:
    column name: CITY\t
    column length: 4
    Example 2.
    Column Name:
    PHONE_NUMBER
    Results Returned by OCIAttrGet:
    column name: PHONE_NUMBER\t
    column length: 12
    Does anyone has experience with this?
    Edited by: simon780 on Mar 13, 2010 2:48 PM
    Edited by: simon780 on Mar 13, 2010 4:03 PM

    Thank you for answering my question, I thought I was doing something wrong, since this is my very first time using oci.
    I do see non-null terminated strings mentioned from places to places on the oracle docs, but I don't see it mentioned specifically on the attribute OCI_ATTR_NAME.
    Anyway, as long as I have the string length returned by the function call, then it's all good. Thank you again!!

  • Best Practice : how 2 fetch tables, views, ... names and schema

    hi,
    I am looking for the best practice about getting the catalog of a database.
    I have seen that I can make some select in system-tables(or views) such as DBA_TABLES and DBA_VIEWS, or DBA_CATALOG, but is that the best way to grab thses informations ?
    (I ask this question because It seems a strange way to me to get the table names using a simple select, but getting column info using a specialized function, OCIDescribeAny(). this does not look like a coherent API...)
    thanks for your advice
    cd

    in the same idea, why use OCIDescribeAny instead of doing an appropriate select in DBA_TAB_COLUMNS ?
    cd

  • Unable to compile PHP on pSeries AIX 5.1

    Hello, I have Oracle 9.2 installed and running ok.
    When I try to compile PHP with oci8 support, this is what I get:
    nd/zend_dynamic_array.lo Zend/zend_execute_API.lo Zend/zend_highlight.lo Zend/zend_llist.lo Zend/zend_opcode.lo Zend/zend_operators.lo Zend/zend_ptr_stack.lo Zend/zend_stack.lo Zend/zend_variables.lo Zend/zend.lo Zend/zend_API.lo Zend/zend_extensions.lo Zend/zend_hash.lo Zend/zend_list.lo Zend/zend_indent.lo Zend/zend_builtin_functions.lo Zend/zend_sprintf.lo Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo Zend/zend_execute.lo sapi/cli/php_cli.lo sapi/cli/getopt.lo main/internal_functions_cli.lo -lintl -lgdbm -lm -ldl -lm -lodm -lbsd_r -lld -lperfstat -lclntsh -o sapi/cli/php
    ar: 0707-101 . is not a valid flag.
    make: *** [libphp4.la] Error 1
    make: *** Waiting for unfinished jobs....
    ld: 0711-317 ERROR: Undefined symbol: .OCIEnvInit
    ld: 0711-317 ERROR: Undefined symbol: .OCIHandleAlloc
    ld: 0711-317 ERROR: Undefined symbol: .OCIInitialize
    ld: 0711-317 ERROR: Undefined symbol: .OCIHandleFree
    ld: 0711-317 ERROR: Undefined symbol: .OCITransRollback
    ld: 0711-317 ERROR: Undefined symbol: .OCIDescriptorFree
    ld: 0711-317 ERROR: Undefined symbol: .OCIErrorGet
    ld: 0711-317 ERROR: Undefined symbol: .OCIServerVersion
    ld: 0711-317 ERROR: Undefined symbol: .OCIDescriptorAlloc
    ld: 0711-317 ERROR: Undefined symbol: .OCIAttrSet
    ld: 0711-317 ERROR: Undefined symbol: .OCIStmtPrepare
    ld: 0711-317 ERROR: Undefined symbol: .OCIAttrGet
    ld: 0711-317 ERROR: Undefined symbol: .OCIStmtExecute
    ld: 0711-317 ERROR: Undefined symbol: .OCIParamGet
    ld: 0711-317 ERROR: Undefined symbol: .OCIDefineByPos
    ld: 0711-317 ERROR: Undefined symbol: .OCIStmtFetch
    ld: 0711-317 ERROR: Undefined symbol: .OCIStmtSetPieceInfo
    ld: 0711-317 ERROR: Undefined symbol: .OCILobGetLength
    ld: 0711-317 ERROR: Undefined symbol: .OCILobRead
    ld: 0711-317 ERROR: Undefined symbol: .OCILobFileClose
    ld: 0711-317 ERROR: Undefined symbol: .OCILobFileOpen
    ld: 0711-317 ERROR: Undefined symbol: .OCISessionBegin
    ld: 0711-317 ERROR: Undefined symbol: .OCISessionEnd
    ld: 0711-317 ERROR: Undefined symbol: .OCIServerAttach
    ld: 0711-317 ERROR: Undefined symbol: .OCIServerDetach
    ld: 0711-317 ERROR: Undefined symbol: .OCIBindByName
    ld: 0711-317 ERROR: Undefined symbol: .OCIBindObject
    ld: 0711-317 ERROR: Undefined symbol: .OCIBindDynamic
    ld: 0711-317 ERROR: Undefined symbol: .OCILobWrite
    ld: 0711-317 ERROR: Undefined symbol: .OCITransCommit
    ld: 0711-317 ERROR: Undefined symbol: .OCIPasswordChange
    ld: 0711-317 ERROR: Undefined symbol: .OCIObjectFree
    ld: 0711-317 ERROR: Undefined symbol: .OCICollAppend
    ld: 0711-317 ERROR: Undefined symbol: .OCINumberFromReal
    ld: 0711-317 ERROR: Undefined symbol: .OCIDateFromText
    ld: 0711-317 ERROR: Undefined symbol: .OCIStringAssignText
    ld: 0711-317 ERROR: Undefined symbol: .OCICollGetElem
    ld: 0711-317 ERROR: Undefined symbol: .OCINumberToReal
    ld: 0711-317 ERROR: Undefined symbol: .OCIDateToText
    ld: 0711-317 ERROR: Undefined symbol: .OCIStringPtr
    ld: 0711-317 ERROR: Undefined symbol: .OCICollAssign
    ld: 0711-317 ERROR: Undefined symbol: .OCICollAssignElem
    ld: 0711-317 ERROR: Undefined symbol: .OCICollSize
    ld: 0711-317 ERROR: Undefined symbol: .OCICollMax
    ld: 0711-317 ERROR: Undefined symbol: .OCICollTrim
    ld: 0711-317 ERROR: Undefined symbol: .OCITypeByName
    ld: 0711-317 ERROR: Undefined symbol: .OCIDescribeAny
    ld: 0711-317 ERROR: Undefined symbol: .OCITypeByRef
    ld: 0711-317 ERROR: Undefined symbol: .OCIObjectNew
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
    collect2: ld returned 8 exit status
    make: *** [sapi/cli/php] Error 1
    I am using gcc 3.3.3.
    ./configure output:
    checking for Oracle-OCI8 support... yes
    checking Oracle Install-Dir... /oracle/product/920
    checking Oracle version... 8.1
    checking for OCILobIsTemporary in -lclntsh... (cached) no
    checking for OCILobIsTemporary in -locijdbc8... (cached) no
    I already type gencltsh as user oracle. Perhaps this is a problem with PHP trying to read 64 bit libs while running on 32 bit mode ? Anyone has been thru this ?
    Any hints ?
    Thanks,
    Álvaro

    Maybe my bug report http://bugs.php.net/bug.php?id=31345
    can help you, and also
    http://bugs.php.net/bug.php?id=31001
    because i remembre have same message when I was searching for my problems
    Regards

  • Application crashes with timesten database  over  OCI connection

    Application crashes with timesten database over OCI connection
    #0 0x405e09f8 in kpudsany () from /home/oracle/TimesTen/ratingtt1121/ttoracle_home/instantclient_11_1/libclntsh.so.10.1
    #1 0x405728d0 in OCIDescribeAny () from /home/oracle/TimesTen/ratingtt1121/ttoracle_home/instantclient_11_1/libclntsh.so.10.1
    #2 0x43748a5a in GDBociDriver::StoredProcArgumentList () from /home/omni/library/libgfr_dboci.so
    #3 0x4374e865 in GDBociDriver::StoredProcCallFormat () from /home/omni/library/libgfr_dboci.so
    #4 0x4376ec9a in GDBociDriver::ExecuteStmtBind () from /home/omni/library/libgfr_dboci.so
    #5 0x4376fc69 in GDBociDriver::Execute () from /home/omni/library/libgfr_dboci.so
    #6 0x436ba240 in GDBstatement::Execute () from /home/omni/library/libgfr_dblayer.so
    #7 0x43736106 in GDBociDriver::SetModule () from /home/omni/library/libgfr_dboci.so
    #8 0x4366cb22 in GDBconnectionPool::GetConnection () from /home/omni/library/libgfr_dblayer.so
    #9 0x4367a9db in GDBdriver::LoginConnectionGet () from /home/omni/library/libgfr_dblayer.so
    #10 0x4373dbaa in GDBociDriver::Login () from /home/omni/library/libgfr_dboci.so
    #11 0x4377380f in CreateOCIDriver () from /home/omni/library/libgfr_dboci.so
    #12 0x4367bb2a in GDBdriverLoader::CreateDriver () from /home/omni/library/libgfr_dblayer.so
    #13 0x436d423d in IGDBdriverMgr::GetDriverAndLogin () from /home/omni/library/libgfr_dblayer.so
    #14 0x436d4da1 in IGDBdriverMgr::GetDriver () from /home/omni/library/libgfr_dblayer.so
    #15 0x436a5071 in GDBserverDef::InitialLogin () from /home/omni/library/libgfr_dblayer.so
    #16 0x433247cc in CcapAdbAccess::Init (this=0x9e85a88) at CcapAdbAccess.C:161
    #17 0x43331c44 in CcapMain::Run (this=0x434eeb80, sdpId=2, processName=0x9dae29c "URE61_O2") at CcapMain.C:132
    #18 0x080947d1 in ccap_thread (arg=0x0) at main.C:1588
    #19 0x080e7bd2 in ThreadManager::WrapperRoutine (ipArg=0x9e84fc0) at ThreadManager.C:176
    #20 0x0035f44a in start_thread () from /lib/libpthread.so.0
    Timesten has some limitations and it says:
    Describing objects with OCIDescribeAny() is supported only by name. Describing PL/SQL objects is not supported.
    home/omni/library/libgfr_dblayer.so
    Cloud you please tell us whit might be the reason for this

    Are you able to provide exact details of the OCIDescribeAny call being made by the application (including parameter values)?
    Chris

  • How to describe placeholder/parameters in a SQL statement

    Hi
    Does anybody know how to describe the placeholder/parameters in a statement? I only find the OCI documentation talking about "Describing Select-list Items". But what if I want to retrieve the data type of a placeholder (assuming I don't know beforehand or just want the program to be more flexible)? Doing this by describing schema metadata first (have to find out which schema object to use) and then using OCIDescribeAny() seems not a very good way. Thanks.

    Jonah, and others,
    how would you find out the (hash_value, address) of the statement just described to extract the statement-relevant information from V$SQL_BIND_CAPTURE?
    Via a join with V$SQL and the statement's text?
    Thanks, --DD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Access Violation in Metadata::getVector()

    My code gets a list of the tables in a schema, but I am running into a problem in the case where there are no tables in the schema. The first step in my code is to get the schema object list:
    // pConn is the Connection object.
    // schemaName is the name of the schema.
    MetaData md = pConn->getMetaData(schemaName, MetaData::PTYPE_SCHEMA);
    std::vector<MetaData> objList = md.getVector(MetaData::ATTR_LIST_OBJECTS);
    When there are no tables in the schema (it has just been created), the call to getVector() encounters an access violation. Has anyone else run into this? Is there a way to get a count of the schema objects before calling getVector()?
    I am using Oracle Instant Client 10.2.0.1, and the database is 10g (I get the same error when the database is 11g).
    Thanks,
    Bob

    Hi Bob,
    I can confirm the same behaviour using 11.2.0.1 on 64-bit Windows.
    I also put together a plain OCI test application and it does not display this same behaviour.
    It might be worth raising a Service Request with My Oracle Support (if you have support). It would be interesting to know what support have to say if you do.
    However, my experience using OCIDescribeAny (the underlying OCI call) is that it is "sometimes apparently unreliable." I put those last words in quotes as the behaviour I have observed may be expected, but I have never dug deep enough to confirm. Mostly because I don't do much describing for things other than result sets.
    Here's what I mean about "sometimes apparently unreliable"... using the same OCI test if I connect to the database as the user whose schema I want to describe all works as expected (even if there are no objects in the schema). However, if I connect as a different user, sometimes the describe works and sometimes it doesn't. Well, it returns 0 as the number of objects in the schema even if there are more than 0. For example, I have a user called "admin" with the DBA role and if I connect as that user and try to describe, say, the "scott" schema, 0 is returned as the number of objects in the schema. But, if I connect as "system" and perform the exact same operations, the correct number of objects (and other data) is returned.
    I realize that is not much help in getting around your particular issue here. Perhaps you could query the all_objects view using owner=<schema of interest> (or just the user_objects view if you are connecting as that user)?
    Regards,
    Mark

  • Data Type for OCI_ATTR_DESC_PUBLIC

    The OCI_ATTR_DESC_PUBLIC attribute is mentioned in the text for OCIDescribeAny, but it is not actually documented anywhere. Can anyone tell me what type it needs to be and what value to actually pass into OCIAttrSet?
    Thanks!

    Hi,
    I just ran up a quick test finally and things seem to be working as they should on my system. Here's a snippet from the test:
    ub2 value_on = 1;
    rc = OCIHandleAlloc((dvoid *) p_env,
                        (dvoid **) &p_desc,
                        (ub4) OCI_HTYPE_DESCRIBE,
                        (size_t) 0,
                        (dvoid **) 0);
    rc = OCIAttrSet((dvoid *) p_desc,
                    (ub4) OCI_HTYPE_DESCRIBE,
                    (dvoid *) &value_on,
                    (ub4) 0,
                    (ub4) OCI_ATTR_DESC_PUBLIC,
                    p_err);
    rc = OCIDescribeAny(p_svc,
                        p_err,
                        (dvoid *) "EMPS",
                        (ub4) 4,
                        (ub1) OCI_OTYPE_NAME,
                        (ub1) 0,
                        (ub1) OCI_PTYPE_SYN,
                        p_desc);In this case I created a public synonym EMPS for the hr.employees demo table and granted select to public on the synonym. I connected to the database as scott/tiger for the above bit of code.
    Regards,
    Mark

  • OCIAttrGet() hangs after OCIStmtExecute()

    I am trying to describe a select statement with OCIStmtExecute(....,OCI_DESCRIBE_ONLY); Everything seems to be fine up to the point where I want to do this:
    OCIAttrGet(stmhp,OCI_HTYPE_STMT,&numcols,0,OCI_ATTR_PARAM_COUNT,err);
    This call simply hangs. I have checked and double checked all parameters and all calls before this, and I am certain they are OK. What can be wrong? There are nothing in the alert log and The same connection has no problem with eg. OCIDescribeAny().
    /jan

    I'm using the following lines and it works fine (Server: Oracle 8.1.7 Linux / Client 9i Win2k):
    CheckError(OCIStmtExecute(svchp, stmthp, errhp, (ub4)1, (ub4)0, (OCISnapshot *)NULL, (OCISnapshot *)NULL, (ub4)OCI_DESCRIBE_ONLY));
    CheckError( OCIAttrGet(stmthp, OCI_HTYPE_STMT, &numcols, 0, OCI_ATTR_PARAM_COUNT, errhp));
    Which SQL-Command are you executing? A SELECT-Command or something else?
    Cheers
    Johannes

  • How to describe a synonym in OCI

    I getting problem whene i am trying to describe a synonym using OCIDescribeAny()
    it saying me object not found
    how to over come this problem
    if any one know the solution
    pl. send me the sample code
    Thanks
    Mahendra Devabhaktuni

    Object Type Function Object Name sample----------------------------------------------------------------------------------
    Object Name     Argument     In Out       Datatype
    SAMPLE12            -             OUT            VARCHAR2
                        A              IN            VARCHAR2                  
                        B             OUT            VARCHAR2

  • How to get storage type of XMLType through OCI

    How can you get the storage type of an XMLType through OCI? An XMLType column can be created as BINARY, CLOB, or OBJECT RELATIONAL type, is there any way to get this information through OCI? SQLPlus seems to know how to detect these types with the DESCRIBE command, is it possible to get this information programmatically?
    SQL> describe T_SRC_XML_COL_CLOB_UTF8;
    Name Null? Type
    COL1 NOT NULL NUMBER(8)
    COL2 SYS.XMLTYPE
    SQL> describe T_SRC_XML_COL_BINARY;
    Name Null? Type
    COL1 NOT NULL NUMBER(8)
    COL2 SYS.XMLTYPE STORAGE BINARY
    SQL> describe T_SRC_XML_COL_OBJECT;
    Name Null? Type
    COL1 NOT NULL NUMBER(8)
    COL2 SYS.XMLTYPE(XMLSchema "http:
    //www.oracle.co
    m" Element "Parent") STORAGE
    Object-relational TYPE "Par
    ent808_T"

    Hi,
    Here's one possible (simplified) way to determine this (assumes all handles allocated, etc):
    - get a describe handle for table via OCIDescribeAny
    - get parameter handle via OCIAttrGet on the describe handle
    - get number of columns in table via OCIAttrGet on the parameter handle
    - get column list handle via OCIAttrGet on the parameter handle
    - loop for the number of columns
    - use OCIAttrGet to get the column data type
    - use OCIAttrGet to get if the column is a specific storage type
    Here's what the part to determine if the columns is a specific storage type would look like:
    ** determine if storage type is binary for this xmltype column
    rc = OCIAttrGet((void *) p_col,
                    OCI_DTYPE_PARAM,
                    (void *) &colstorage,
                    (ub4 *) 0,
                    (ub4) OCI_ATTR_XMLTYPE_BINARY_XML,
                    p_err);If the column is declared to have binary xml storage then colstorage will be set to 1 after the call, 0 if not.
    OCI_ATTR_XMLTYPE_BINARY_XML is from oci.h (as well as OCI_ATTR_XMLTYPE_STORED_OBJ)
    Perhaps that will be enough to get you what you need.
    Regards,
    Mark

  • Can't find library or mismatched ABI for -lstdc++-linking occi with g++

    []-pedro:/home/pedro/modelo_v4_g++>uname -a
    HP-UX des2a B.11.23 U ia64 4092774908 licencia de usuarios ilimitados
    []-pedro:/home/pedro/modelo_v4_g++>make
    g++ -mlp64 -DOCCI_NO_WSTRING=1 -mlp64 -D_RWSTD_MULTI_THREAD -I/opt/users/ora10g/rdbms/demo -I/opt/users/ora10g/rdbms/public -I/opt/users/ora10g/plsql/public -I/opt/users/ora10g/network/public -DHPUX -D_REENTRANT -DHPUX_KTHREAD -DSLXMX_ENABLE -DSLTS_ENABLE -DSS_64BIT_SERVER -DBIT64 -DMACHINE64 -DORAIA64 -DHPUX_IA64 -c Main_Program.cpp
    g++ -mlp64 -DOCCI_NO_WSTRING=1 -mlp64 -D_RWSTD_MULTI_THREAD -I/opt/users/ora10g/rdbms/demo -I/opt/users/ora10g/rdbms/public -I/opt/users/ora10g/plsql/public -I/opt/users/ora10g/network/public -DHPUX -D_REENTRANT -DHPUX_KTHREAD -DSLXMX_ENABLE -DSLTS_ENABLE -DSS_64BIT_SERVER -DBIT64 -DMACHINE64 -DORAIA64 -DHPUX_IA64 -c Modelo.cpp
    g++ -o occiteste Main_Program.o Modelo.o -L/opt/users/ora10g/lib -L/usr/local/lib -locci -lclntsh `cat /opt/users/ora10g/lib/sysliblist` -lm
    ld: Can't find library or mismatched ABI for -lstdc++
    Fatal error.
    collect2: ld returned 1 exit status
    make: *** [exe] Error 1

    []-pedro:/home/pedro/modelo_v4_g++>ldd -v -r -d /opt/users/ora10g/lib/libocci.so
    symbol not found: LdiInterCheck (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxstd (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxsti (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxsto (/opt/users/ora10g/lib/libocci.so)
    symbol not found: xaoSvcCtx (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobGetChunkSize (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIConnectionPoolCreate (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIStmtRelease (/opt/users/ora10g/lib/libocci.so)
    symbol not found: _ZNSt9exceptionD2Ev   (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCISubscriptionEnable (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCISessionRelease (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectArrayPin (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __cxa_rethrow (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIHandleFree (/opt/users/ora10g/lib/libocci.so)
    symbol not found: _memcmp       (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiDateConstruct (/opt/users/ora10g/lib/libocci.so)
    symbol not found: memchr (/opt/users/ora10g/lib/libocci.so)
    symbol not found: xaoEnv (/opt/users/ora10g/lib/libocci.so)
    symbol not found: memmove (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobLocatorIsInit (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAnyDataConvert (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __memcmp_ver (/opt/users/ora10g/lib/libocci.so)
    symbol not found: _memset       (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCINlsCharSetNameToId (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobOpen (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lxinitc (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiParseForOutputU (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAnyDataGetType (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __memset_ver (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiInterToString (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __cxa_allocate_exception (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __cxa_begin_catch (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPSetObjectPtrNull (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPGetLdiDateTimeFromKpd (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobAppend (/opt/users/ora10g/lib/libocci.so)
    symbol not found: sLdiGetDate (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPAlloc (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPGetRowid (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCITypeByName (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCISubscriptionUnRegister (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiInterCopy (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIDefineObject (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiInterDivide (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiDateInterAdd (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIRawPtr (/opt/users/ora10g/lib/libocci.so)
    symbol not found: _ZdaPv        (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __cxa_pure_virtual (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCINumberFromInt (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ZN15HPMutexWrapperD1Ev (/opt/users/ora10g/lib/libocci.so)
    symbol not found: _ZdlPv        (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ZN15HPMutexWrapperD2Ev (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lxhname2id (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCISessionGet (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __bad_alloc_exception (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPGetDateContext (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxbegin (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiInterInterSubtract (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAnyDataIsNull (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPConvertUb1ToRowid (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIDescriptorFree (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCISubscriptionPost (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPFree (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobFileGetName (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobFileSetName (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCINumberToReal (/opt/users/ora10g/lib/libocci.so)
    symbol not found: _ZTIv (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobCharSetId (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiDateFromString (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPAnyDataAttrCountSet (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPGetNLSLang (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCINumberToInt (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAnyDataAccess (/opt/users/ora10g/lib/libocci.so)
    symbol not found: _Znam (/opt/users/ora10g/lib/libocci.so)
    symbol not found: _Znwm (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIErrorGet (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIDescriptorAlloc (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIStmtExecute (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPGetErrorMessageNLS (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiInterFromTZ (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectSetData (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCINumberFromReal (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIDateTimeFromText (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiInterConstruct (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPGetErrorMessage (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectMarkDelete (/opt/users/ora10g/lib/libocci.so)
    symbol not found: _strncpy      (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIParamSet (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPGetLdiIntervalFromKpd (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobLocatorAssign (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectIsLocked (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiParseForInputType (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPGetDefTZ (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIParamGet (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAnyDataCollAddElem (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectNew (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectPin (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAnyDataCollGetElem (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCISessionPoolDestroy (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIRefAssign (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobIsOpen (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIConnectionPoolDestroy (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAnyDataBeginCreate (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __bad_exception (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIStmtPrepare2 (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiInterCompare (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPIsObjectLoaded (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiDateDateConvert (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lxgucs2utf (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPGetTZI (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIRefIsNull (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIRawSize (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPGetEnv (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPAnyDataSetFlag (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCITypeTypeCode (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ZTVN10_cxxabiv121__vmi_class_type_infoE (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectMarkUpdate (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __strcpy_ver (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiInterFromTZU (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __strncpy_ver (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPDefConvOCCI (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPAnyDataSetUCIOptMode (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxshift (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxabs (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxbex (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxcmp (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxdec (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxdiv (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ZTVN10_cxxabiv117__class_type_infoE (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxfcn (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxflo (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxfpr (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxinc (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxlog (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCITransRollback (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxmin (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxmod (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxneg (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxmul (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxnft (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxnur (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxpfl (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxpow (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxren (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxrou (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxsgn (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxsni (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxsqr (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxsub (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxsum (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxtru (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCITypeByRef (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIRefIsEqual (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCISessionPoolCreate (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobWrite (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectUnmarkByRef (/opt/users/ora10g/lib/libocci.so)
    symbol not found: _ZTISt9exception      (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPConvertDateToDateTime (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __cxa_call_unexpected (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPAnyDataSetNull (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIBindByPos (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiInterToStringU (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectMarkDeleteByRef (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCISubscriptionRegister (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAttrSet (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ZNSt14_rw_exception9_C_assignEPKcm (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiParseForInputTypeU (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __memchr_ver (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAttrGet (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAQEnq (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAQDeq (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectUnmark (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPAnyDataSetInd (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIDescribeAny (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __cxa_finalize (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ZTVN10_cxxabiv120__si_class_type_infoE (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ZN15HPMutexWrapper4lockEPv (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiDateDateSubtract (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPHeapAlloc (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectFree (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxatn2 (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIStringAssignText (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobTrim (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ZNSs9_nullrefE (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPIsNonFinalType (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAnyDataAttrSet (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPGetRidCharLen (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxcopy (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAnyDataAttrGet (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIBindObject (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __memmove_ver (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lxgutf2ucs (/opt/users/ora10g/lib/libocci.so)
    symbol not found: UnwindResume (/opt/users/ora10g/lib/libocci.so)
    symbol not found: xaosterr (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectPinTable (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCINlsCharSetIdToName (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectFlush (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __cxa_end_catch (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIHandleAlloc (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCICacheFlush (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIEnvNlsCreate (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxdtsu (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobRead (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobIsEqual (/opt/users/ora10g/lib/libocci.so)
    symbol not found: sldxgd (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __strlen_ver (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxfcnu (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lxuCvtToCtx (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIStmtPrepare (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiDateCompare (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lxhLaToId (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAnyDataGetCurrAttrNum (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lxhcnv (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPConvertRowidToUb1 (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiInterMultiply (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lxhlod (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobFileExists (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIMultiByteStrCaseConversion (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ZN15HPMutexWrapper6unlockEPv (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lfpinit (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lxlinit (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPCompPrefRows (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCISubscriptionDisable (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIStmtFetch (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCITypeSchema (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCITypeName (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIStringPtr (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiDateCheck (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIDateAssign (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCITypeArrayByName (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPHeapFree (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxnftu (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiDateCopy (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPGetObjectPtr (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxln (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ZNSt14_rw_exception10_C_vformatEi11__va_list__ (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAnyDataDestroy (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIRefClear (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIDefineByPos (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __cxa_atexit (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobLoadFromFile (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectLockNoWait (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAnyDataEndCreate (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobClose (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIContextSetValue (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIContextGetValue (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxpflu (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIEnvCreate (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobGetLength (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiInterFromStringU (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectGetObjectRef (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPGetLdiInternalFormat (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiDateToString (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiDateToStringU (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPAcquireMutex (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxqtra (/opt/users/ora10g/lib/libocci.so)
    symbol not found: lnxqtri (/opt/users/ora10g/lib/libocci.so)
    symbol not found: _strcpy       (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPGetInternalRowid (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiInterInterAdd (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectLock (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiParseForOutput (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiDateFromStringU (/opt/users/ora10g/lib/libocci.so)
    symbol not found: _strlen       (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __cxa_personality_routine (/opt/users/ora10g/lib/libocci.so)
    symbol not found: __cxa_throw (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxstdu (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxstou (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxstiu (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCILobCopy (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCITransCommit (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiInterFromString (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectUnpin (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIStmtGetPieceInfo (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIStmtSetPieceInfo (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPasswordChange (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIAQListen (/opt/users/ora10g/lib/libocci.so)
    symbol not found: LdiDateInterSubtract (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIPReleaseMutex (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIRawAssignBytes (/opt/users/ora10g/lib/libocci.so)
    symbol not found: OCIObjectPinCountReset (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxadm (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxads (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxatz (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxcmp (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxdtd (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxdts (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxdyn (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxend (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxeti (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxgtz (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxite (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ZN15HPMutexWrapper4initEv (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxldd (/opt/users/ora10g/lib/libocci.so)
    symbol not found: ldxnxd (/opt/users/ora10g/lib/libocci.so)
    []-pedro:/home/pedro/modelo_v4_g++>

  • Fetching embedded collection attributes

    Hi guys,
    I want to retreive a collection attribute of an object in Oci. Say, i have following types:
    CREATE TYPE a AS VARRAY(10) OF NUMBER
    CREATE TYPE b AS OBJECT( aa NUMBER, ab a)
    CREATE TABLE c ( aaa b )
    Now i have following query in my OCI-Application: SELECT aaa FROM c;
    Since I don't know the types of the objects at compile time, I'm doing some stuff with OCIDescribeAny & friends to get the datatypes of the different objects. Everything went's fine until I want to access the attribute ab of type b. After succesfully getting the value of the attribute with OCIObjectGetAttr I cast the dvoid* I got from this function to OCIColl* and pass it to OCIIterCreate to create an iterator in order to access the collection elements. At this point however, OCI either delivers an invalid iterator, or even worse, crashes.
    Everything wents fine if I have a embedded object attribute which is not an collection.
    So, what am I'm doing wrong? Any suggestions?
    Thanks a lot in advance!

    Hi guys,
    I want to retreive a collection attribute of an object in Oci. Say, i have following types:
    CREATE TYPE a AS VARRAY(10) OF NUMBER
    CREATE TYPE b AS OBJECT( aa NUMBER, ab a)
    CREATE TABLE c ( aaa b )
    Now i have following query in my OCI-Application: SELECT aaa FROM c;
    Since I don't know the types of the objects at compile time, I'm doing some stuff with OCIDescribeAny & friends to get the datatypes of the different objects. Everything went's fine until I want to access the attribute ab of type b. After succesfully getting the value of the attribute with OCIObjectGetAttr I cast the dvoid* I got from this function to OCIColl* and pass it to OCIIterCreate to create an iterator in order to access the collection elements. At this point however, OCI either delivers an invalid iterator, or even worse, crashes.
    Everything wents fine if I have a embedded object attribute which is not an collection.
    So, what am I'm doing wrong? Any suggestions?
    Thanks a lot in advance!

Maybe you are looking for

  • "itunes was unable to load data class information..."

    Hi everyone, When I connect the iphone to my computer, the itunes recognize the iphone but it is thinking and after a few minutes the itunes drop me the following message: "itunes was unable to load data class information from sync services reconnect

  • Update file properties on existing measurement files using NI Diadem

    Hi, I have several TDM measurement files, which has properties such as sample type, test conditions, etc.  I manage all the measurment files using NI Diadem. I want to change the properties in each file. How can I modify the properties of the measure

  • When would you use "Hide" elements on a slide ?

    Hi Could anyone give me an example of when they use the "Hide"  and "Lock" elements on a slide option. Trying to get my head around who I might make use of them...in case I am missing out on something. I am using Cap v4 but believe these options also

  • Applet graphics question(bar chart)

    im fairly new to applets and im coding one in awt that has a scrollbar that changes the height of barchart....i tried using fillRect() but when i set the height as my scrollbar value it fills down instead of up....i want to keep it as simple as possi

  • Windows Vista / Aero on my Equium M70

    Hi. I have just downloaded Windows Vista RC1 for my M70 that I only bought a couple of months ago from Curry's. It has the Vista capable sticker on it and the salesperson confirmed that Vista will run properly with the 3D enhancements. Of course I wa