OCI is an API officially produced by Oracle for connecting to and operating Oracle databases in C/C ++ languages. In a Windows operating system, it is very convenient and simple to use Vs and other ide To compile and compile C ++ programs without using makefile. You can use the OCI. h header file by simply configuring OCI.
First, you must install oracle. After the installation is complete, find the OCI folder under its installation directory. There are two folders under the OCI Folder: Include and Lib. Open vs2010, select the project email you want to program using OCI, select properties, and select the VC ++ directory under configuration properties, add the include folder (C :\... \ OCI \ include), add the Lib \ msvc folder (C \:.. \ OCI \ Lib \ msvc ). Finally, select the linker under the configuration property directory-> input, and add oracleoci11.lib to the additional dependency (depending on the Oracle version ).
Configure OCI programming in vs2010