oracle Installation Steps:1. Download the appropriate Instant Client packages for your platform. All installations REQUIRE the Basic package.
2. Unzip the packages into a single directory such as "instantclient".
3. Set the library loading path in your environment to the directory in Step 2 ("instantclient"). On many UNIX platforms, LD_LIBRARY_PATH is the appropriate environment variable. On Windows, PATH should be used.
4. Start your application and enjoy.
我使用的Windows 7,64位的操作系统。
1.oracle官网下载驱动包
下载路径:
base包:instantclient-basic-windows.x64-11.2.0.4.0.zip
ODBC包:instantclient-odbc-windows.x64-11.2.0.4.0.zip
我下载的是11.2.0.4.0版本的,两个包的版本必须要一致才行。
2.解压安装
解压上面两个包,把解压后的文件自动合并在同一个目录,我这里是D:\instantclient_11_2
使用管理员权限打开cmd,进入D:\instantclient_11_2目录,运行odbc_install.exe进行安装。