I use oracle occi api to update data, code:
Environment * env = Environment::createEnvironment();
Connection * con = env->createConnection("nm_web","nm_web99","192.168.26.42/orcl");
Statement *stmt;
string sqlStmt =
"update tb_yctp_daq_record set deal_status=1";
try{
stmt = con->createStatement(sqlStmt);
stmt->execute();
}catch(SQLException ex)
{
cout<<"Exception thrown for updateRow"<<endl;
cout<<"Error number: "<< ex.getErrorCode() << endl;
cout<<ex.getMessage() << endl;
}
con->commit();
con->terminateStatement (stmt);
Environment::terminateEnvironment(env);
return true;
but this code stuck in " stmt = con->createStatement(sqlStmt);"
I just not commit update operation in PLSQL tools, this could lead lock this table.