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