Connect Linux C/C ++ to Oracle

Source: Internet
Author: User

1. Download link library http://www.oracle.com/technetwork/topics/linuxsoft-082809.html

You can directly download the rmp file and directly download rmp-ivh... rmp

2. updatedb updates the file location list

3. Find the location of the libocci. so file, for example: usr/lib/oracle/12.1/client/lib

4. Add the usr/lib/oracle/12.1/client/lib path to the vim/etc/ld. so. conf file for configuration and execute ldconfig for updates.

5. You can perform the compilation test. You must specify the header file-I/u01/app/oracle/product/11.2.0/dbhome_1/rdbms/public # occi. h for compiling.
-L/usr/lib/oracle/12.1/client/lib # location of the lib Library
-Locci # load this file
-Lclntsh/usr/lib/libstdc ++. so.6

In addition, if you download a zip file, you need to decompress it and configure the path. You need to configure ORACLE_HOME on the Internet, but I have not tried it. I will not speak first.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.