Code: Select all
std::auto_ptr Session( new TOraSession(NULL));
Session->Options->Net = true;
Session->Options->UseUnicode = false;
Session->Server = "vm:1521:db";
Session->Username = "user";
Session->Password = "1";
Session->ConnectMode = cmNormal;
while(true)
{
Session->Connect();
Session->Disconnect();
}
I've test it with ODAC v5.8 and v6.0(Trial), BCB 6.0. Oracle 10g, oracle client not installed.