When using Qt to develop an Oracle program, the QOCI driver problem is often encountered, mainly because the following error occurs when the program is running.
QOCI driver not loaded
Available drivers: QSQLITE QODBC3 QODBC
This indicates that Qt is not installed to support Oracle drivers.
.
To avoid this problem, the first method is to use the inefficient and troublesome ODBC; the second method is to install the QOCI driver ~
.
It should be noted that QOCI does not exist in the free version of qt. Even in the cial version, only the source code is provided and must be compiled by yourself.
(For the compilation process, see my previous post http://blog.csdn.net/fm0517/archive/2009/09/25/4587762.aspx)
.
I sent a few compiled libraries from different platforms. If you want to use the libraries without source code or compilation, you can go:
Including:
SuSE Linux platform: libqsqloci.so.SuSE_linux.rar
Download
Sun OS (Solaris) X86 Platform: libqsqloci.so.Sun_X86.rar
Download
Sun OS (Solaris) iSCSI platform: libqsqloci.so.sun_sparc.rar
Download
Win32 platform: qsqloci4.dll.win32.rar
Download
.
After the download, you need to put the library file in the default directory of the plug-in:$ Qtdir/plugins/sqldrivers, unless you re-define the plug-in path in the program. The downloaded file already contains the pathPlugins/sqldrivers
.
Try it. Good luck!