diff --git a/rdbms/OcciConn.cpp b/rdbms/OcciConn.cpp index 9b8cd0a8044cbc842bdef9ac6c88abc37e693338..de2a324918f0956d8005b0ae32d4764f98e5c788 100644 --- a/rdbms/OcciConn.cpp +++ b/rdbms/OcciConn.cpp @@ -38,6 +38,13 @@ OcciConn::OcciConn(oracle::occi::Environment *const env, oracle::occi::Connectio throw exception::Exception(std::string(__FUNCTION__) + " failed" ": The OCCI connection is a nullptr pointer"); } + + try { + const std::string sql = "ALTER SESSION SET recyclebin = OFF"; + executeNonQuery(sql, Stmt::AutocommitMode::OFF); + } catch(exception::Exception &ex) { + throw exception::Exception(std::string(__FUNCTION__) + " failed: " + ex.getMessage().str()); + } } //------------------------------------------------------------------------------