Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2008
    Posts
    5

    Wink Unanswered: About the OCCI headers

    Hello everyone!
    I have installed the oralce for linux, it can run. But I can't find out the occi headers in the oracle directory. So who can give me the occi headers? My oralce is 10g, and my email is cn_slw@yahoo.com.cn. Thanks!

  2. #2
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Cool OCCI header files

    OCCI header files will be under $ORACLE_HOME/rdbms/public in Unix and under %ORACLE_HOME%\oci\include on Windows.
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  3. #3
    Join Date
    Jun 2008
    Posts
    5

    Smile OCCI header files

    Yes! I have found these files under $ORACLE_HOME/rdbms/public. I was developed on Windows before, it's under $ORACLE_HOME/oci/include. Thank you very much!
    Last edited by liang4530; 06-26-08 at 01:51.

  4. #4
    Join Date
    Jun 2008
    Posts
    5
    By the way, I can't find out libociei.so under $ORACLE_HOME/lib. is it the occi library path? If not, please tell me. thanks!

  5. #5
    Join Date
    Jun 2003
    Location
    West Palm Beach, FL
    Posts
    2,713

    Talking

    Maybe ?/instantclient32/libociei.so
    The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb

  6. #6
    Join Date
    Jun 2008
    Posts
    5
    Ye. I find it, but there are some problems about the OCCI programing that by using getString() , the error message is "*** glibc detected *** double free or corruption (out): 0x0873f428 ***" 。The code is :

    bool CGNetOcciResultset::GetFiedIndexByName(const char* lpszName, unsigned int& nIndex)
    {
    if (NULL == m_rsResultSet)
    return false;

    std::vector<MetaData> vtMetaData = m_rsResultSet->getColumnListMetaData();
    for (unsigned int nPosition = 0; nPosition < vtMetaData.size(); nPosition++)
    {
    if (!strcmp(vtMetaData[nPosition].getString(MetaData::ATTR_NAME).c_str(), lpszName))
    {
    nIndex = nPosition + 1;
    return true;
    }
    }

    return false;
    }


    For this problem, I really have no ideaes. Can you tell me why? Thank you!
    Last edited by liang4530; 06-27-08 at 08:41.

  7. #7
    Join Date
    Jun 2008
    Posts
    5

    Red face

    LKBrwn_DBA:
    Can you help me? Or there are anybody can help me? Thanks!
    Jack

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •