Frequently Asked Questions

Q: Why do I get "QpenOCCI driver not loaded" error messages when trying to load the QOpenOCCI plugin?

    QSqlDatabase: QOpenOCCI driver not loaded
    QSqlDatabase: available drivers: <drivers>
    Error: opening DB failed because Driver not loaded
    

First make sure that the QOpenOCCI .so or .dll file is either installed in the qt sql plugin directory or that you have a sub directory in your project named sqldrivers with it. [http://doc.trolltech.com/4.3/plugins-howto.html]

On linux make sure that symlinks for occi libs are setup correctly...

    cd /path/to/instantclient_11_1/
    ln -sf libclntsh.so.11.1 libclntsh.so
   

Q: Why do I get "QpenOCCI driver not loaded" error messages when QOpenOCCI IS listed in the available drivers?

Check to make sure the plugin can find the occi libs. On linux you may need to set an env var...
LD_LIBRARY_PATH=/path/to/oracle/instant/client:${LD_LIBRARY_PATH} 

Generated on Tue Mar 18 22:47:11 2008 for QOpenOCCI by  doxygen 1.5.3