QSqlDatabase: QOCI driver not loaded
Solved
General and Desktop
-
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 executeexport 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.