Unsolved how can i connection QSqlDatabase oracle with user shema?
-
how can i connection QSqlDatabase oracle with user shema?
-
@Everton-Fonseca
Something like mentioned here with overloads for QSqlDatabase::QSqlDatabase(const QString &type) asQOCI
https://doc.qt.io/qt-5/sql-driver.html#qoci -
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?