QOCI driver for Oracle databases in Qt

Source: Internet
Author: User

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!

 

Related Article

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.