Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSqlDatabase: QOCI driver not loaded
Forum Updated to NodeBB v4.3 + New Features

QSqlDatabase: QOCI driver not loaded

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dangdang
    wrote on 10 Nov 2020, 09:59 last edited by
    #1

    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

    J 1 Reply Last reply 10 Nov 2020, 10:06
    0
    • D dangdang
      10 Nov 2020, 09:59

      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

      J Offline
      J Offline
      JonB
      wrote on 10 Nov 2020, 10:06 last edited by
      #2

      @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.

      1 Reply Last reply
      4
      • D Offline
        D Offline
        dangdang
        wrote on 11 Nov 2020, 03:30 last edited by
        #3

        @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.

        1 Reply Last reply
        1

        1/3

        10 Nov 2020, 09:59

        • Login

        • Login or register to search.
        1 out of 3
        • First post
          1/3
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved