10 using namespace oracle::occi;
20 throw(std::runtime_error)
24 ss <<
"//" <<
host <<
":" <<
port <<
"/" << sid;
26 env = Environment::createEnvironment(Environment::OBJECT);
28 stmt =
conn->createStatement();
30 cout<< ss.str() << endl;
31 throw(std::runtime_error(
"ERROR: Connection Failed: " + e.getMessage() ));
44 throw(std::runtime_error)
47 env = Environment::createEnvironment(Environment::OBJECT);
49 stmt =
conn->createStatement();
51 throw(std::runtime_error(
"ERROR: Connection Failed: " + e.getMessage() ));
64 conn->terminateStatement(stmt);
66 Environment::terminateEnvironment(
env);
68 throw(std::runtime_error(
"ERROR: Destructor Failed: " + e.getMessage() ));
oracle::occi::SQLException SQLException
virtual ~EcalDBConnection()
EcalDBConnection(std::string host, std::string sid, std::string user, std::string pass, int port=1521)