Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QSqlDatabase: QOCI driver not loaded



  • Hi, guys!
    I have a problem when I try to connect to Oracle database, it says "QSqlDatabase: QOCI driver not loaded". I have already built libqsqloci.so and the path is: /home/r/Qt5.12.7/5.12.7/gcc_64/plugins/sqldrivers/libqsqloci.so. But it still show the error "QSqlDatabase: QOCI driver not loaded". So, what can i do to fix it?
    System : Ubuntu 16.04
    Qt version : 5.12.7
    Oracle version : 19.9



  • @dangdang
    In a terminal execute export QT_DEBUG_PLUGINS=1 and then run your executable --- or, you can do it from the Run environment inside Creator --- and then look at the diagnostic output, especially the very end which will say why it failed.



  • @dangdang
    In a terminal execute export QT_DEBUG_PLUGINS=1 and then run your executable --- or, you can do it from the Run environment inside Creator --- and then look at the diagnostic output, especially the very end which will say why it failed.



  • @JonB Thanks bro!I found where my problem was through your method. Actually,I missed a library file named libaio.so.So I apt-get install libaio1, and then problem solved.


Log in to reply