/////////////////////////////////////////////////////////////////////////////// // some useful scripts - there are things which can be done at the scripting // level /////////////////////////////////////////////////////////////////////////////// namespace oracle { void query(const char* Query) { // describes 'Table' TString cmdd; cmdd = Form("sqlplus cdf_reader/reader@cdfofprd <Exec(cmdd.Data()); } //_____________________________________________________________________________ void describe(const char* Table) { // describes 'Table' TString cmdd; cmdd = Form("sqlplus cdf_reader/reader@cdfofprd <Exec(cmdd.Data()); } //_____________________________________________________________________________ void get_filesets (const char* Book, const char* DsNameId) { // prints list of filesets for a given dataset 'DsNameId' TString cmdd; char book[1000]; if (Book == 0) strcpy(book,"filecatalog"); else strcpy(book,Book); cmdd = Form("sqlplus cdf_reader/reader@cdfofprd <Exec(cmdd.Data()); } //_____________________________________________________________________________ void get_files (const char* Book, const char* Fileset) { TString cmdd; char book[1000]; if (Book == 0) strcpy(book,"filecatalog"); else strcpy(book,Book); cmdd = Form("sqlplus cdf_reader/reader@cdfofprd <Exec(cmdd.Data()); } }