paranada_g
04-18-2013, 04:42 AM
Hi,
I,m trying to connect a c++ aplication with oracle11, from ilog gadget with an iliSqlDataSource there is not problems, data is shown perfctly.
But when i try to implement the conection with c++ code, the program can not make it. The code i,m using is the next.
-----------------------------------------------------
IliSQLSession* session = new IliSQLSession("oracle11", "user/pass@options");
session->lock();
session->setDatabaseName("ORACLE_DATABASE_NAME");
session->setSessionName("Main");
IliSQLSession::RegisterSession(session);
if( !session->connect() )
{
std::cout << "connected";
}
-----------------------------------------------------
But it never conects to the database. Even trying to get the getDbmsName retrives a null pointer.
Please could you give me some help.
Thank you very much.
regards.
I,m trying to connect a c++ aplication with oracle11, from ilog gadget with an iliSqlDataSource there is not problems, data is shown perfctly.
But when i try to implement the conection with c++ code, the program can not make it. The code i,m using is the next.
-----------------------------------------------------
IliSQLSession* session = new IliSQLSession("oracle11", "user/pass@options");
session->lock();
session->setDatabaseName("ORACLE_DATABASE_NAME");
session->setSessionName("Main");
IliSQLSession::RegisterSession(session);
if( !session->connect() )
{
std::cout << "connected";
}
-----------------------------------------------------
But it never conects to the database. Even trying to get the getDbmsName retrives a null pointer.
Please could you give me some help.
Thank you very much.
regards.