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

Accessing remote oracle database method to get service id!



  • I want to develop a user login to remote oracle database where user enters username,password, ip address, port number and service id! I found methods for username,password, ipaddress and portno! But I need method to get service ID! what are they?

    QSqlDatabase mydb = QSqlDatabase::addDatabase ("QSQLITE");
    mydb.setHostName ("xxx.xxx.xxx.xxx"); //ip address
    mydb.setDatabaseName ("my_databwwase");
    mydb.setUserName ("my_username");
    mydb.setPassword ("my_password");
    mydb.setPort("portnumber");