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. how can i connection QSqlDatabase oracle with user shema?
Forum Update on Monday, May 27th 2025

how can i connection QSqlDatabase oracle with user shema?

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 462 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.
  • Everton FonsecaE Offline
    Everton FonsecaE Offline
    Everton Fonseca
    wrote on last edited by
    #1

    how can i connection QSqlDatabase oracle with user shema?

    RatzzR 1 Reply Last reply
    0
    • Everton FonsecaE Everton Fonseca

      how can i connection QSqlDatabase oracle with user shema?

      RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by Ratzz
      #2

      @Everton-Fonseca
      Something like mentioned here with overloads for QSqlDatabase::QSqlDatabase(const QString &type) as QOCI https://doc.qt.io/qt-5/sql-driver.html#qoci

      --Alles ist gut.

      1 Reply Last reply
      0
      • Everton FonsecaE Offline
        Everton FonsecaE Offline
        Everton Fonseca
        wrote on last edited by
        #3

        java is like this "jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 10.10.0.65 )(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SID = AGMQAS)))", "bomfuturo_dev", "plakt#","shema"=bomfuture

        Qt ?

        QByteArray codigo = QByteArray().append(QString::number((std::uintptr_t)(this)));
        this->db = QSqlDatabase::addDatabase("QOCI",codigo);
        this->db.setHostName(host);
        this->db.setPort(port);
        this->db.setDatabaseName(dbName);
        this->db.setUserName(user);
        this->db.setPassword(pass);
        this->m_stop = false;
        

        where can i put shema of user by connection with this database?

        1 Reply Last reply
        0

        • Login

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