12#ifndef ROOT_TOracleServer
13#define ROOT_TOracleServer
26namespace oracle {
namespace occi {
36 oracle::occi::Environment *
fEnv;
37 oracle::occi::Connection *
fConn;
43 TOracleServer(
const char *db,
const char *uid,
const char *pw);
69 static void SetDatimeFormat(
const char* fmt =
"MM/DD/YYYY, HH24:MI:SS");
#define ClassDef(name, id)
static void SetDatimeFormat(const char *fmt="MM/DD/YYYY, HH24:MI:SS")
set format for converting timestamps or date field into string default value is "MM/DD/YYYY,...
Int_t GetMaxIdentifierLength()
oracle::occi::Connection * fConn
Int_t Reload()
Reload permission tables.
TSQLStatement * Statement(const char *sql, Int_t niter=100)
TSQLResult * Query(const char *sql)
Execute SQL command.
TSQLTableInfo * GetTableInfo(const char *tablename)
Produces SQL table info Object must be deleted by user.
Int_t CreateDataBase(const char *dbname)
Create a database.
void Close(Option_t *opt="")
Close connection to Oracle DB server.
Bool_t Exec(const char *sql)
Execute sql command wich does not produce any result set.
static const char * fgDatimeFormat
~TOracleServer()
Close connection to Oracle DB server.
const char * ServerInfo()
Return Oracle server version info.
Int_t DropDataBase(const char *dbname)
Drop (i.e.
TSQLResult * GetTables(const char *dbname, const char *wild=0)
List all tables in the specified database.
TSQLResult * GetDataBases(const char *wild=0)
List all available databases.
TSQLResult * GetColumns(const char *dbname, const char *table, const char *wild=0)
List all columns in specified table in the specified database.
Bool_t StartTransaction()
Call Commit() to submit all chanes, done before.
Bool_t HasStatement() const
static const char * GetDatimeFormat()
return value of actul convertion format from timestamps or date to string
oracle::occi::Environment * fEnv
Bool_t Commit()
Commits all changes made since the previous Commit() or Rollback() Return kTRUE if OK.
Int_t SelectDataBase(const char *dbname)
Select a database.
TOracleServer(const char *db, const char *uid, const char *pw)
format for converting date and time stamps into string
TList * GetTablesList(const char *wild=0)
Return list of user tables Parameter wild specifies wildcard for table names.
Bool_t IsConnected() const
Int_t Shutdown()
Shutdown the database server.
Bool_t Rollback()
Drops all changes made since the previous Commit() or Rollback() Return kTRUE if OK.