PDA

View Full Version : Qt Oracle Database Failure...



combsjy
9th August 2010, 15:57
I am trying to make a program with Qt that connects to an Oracle 10g R2 database server. On my development box I have the Oracle client, Oracle SDK, and Qt 4 compiled with QOCI support. I can connect to the database just fine with SQL plus from my development machine so I think my TNSNames.ora file is file. And the application builds just fine. But upon calling QSqlDatabase::addDatabase("QOCI", "myDatabase"); I get "QOCIDriver: unable to create environment" and a lot of loaded dll prints, but that is the ONLY error. Any ideas as to what might be going wrong?

Also just for information I am using VS2008 with Windows 7.