home *** CD-ROM | disk | FTP | other *** search
/ Internet Pratica / IPRAT_01.iso / SQL / advanced / aqt3.CAB / db2390.cfg < prev    next >
Text File  |  2002-02-19  |  14KB  |  241 lines

  1. '******************************************************************
  2. ' For a full description of how these entries work see readme.cfg.
  3. '****************************************************************** 
  4. menu1;&Show;
  5. &Tables and Views;1;1;Z; 
  6. &Indexes;6;6;I;
  7. Table&spaces;5;5;A;
  8. P&lans;1;7;L;N;
  9. &Packages;3;3;P;
  10. T&riggers;4;4;G;
  11. &Functions;37;11;F;Y;
  12. P&rocedures;26;10;B;Y;
  13. &User Authorities;1;8;U;N
  14.  
  15.  
  16. menu2;1;&Table List;
  17. Tables, Views, Aliases;10;
  18. &Tables only;9;
  19. &Views only;53;
  20.  
  21. menu2;2;Table-only &List;
  22. Description;9;
  23.  
  24. menu2;3;Package &List;
  25. Description;32;
  26. menu2;4;Trigger &List;
  27. Description;33;
  28. menu2;5;Tablespace &List;
  29. Description;40;
  30. menu2;6;Index &List;
  31. Description;18;
  32. menu2;7;Plan &List;
  33. Description;19;
  34. menu2;8;User &List;
  35. Description;8;
  36. menu2;9;View &List;
  37. Description;53;
  38. menu2;10;Procedure &List;
  39. Description;27;
  40. menu2;11;Function &List;
  41. Description;38;
  42.  
  43. menu3;1;Table/View &Info;
  44. &Columns;20;
  45. &Full Detail;11;
  46. &Table Contents (first 30 rows);34;
  47. -;1;
  48. &Indexes;12;6;
  49. -;1;
  50. &Access List;15;8;
  51. 'T&riggers;26;5;
  52. &Dependent Packages;14;3;
  53. &Views on Table/View;16;4;
  54. &Objects in View;13;2;
  55. -;1;
  56. View &Definition;51;
  57. View Definition (&formatted);17;
  58. View as &Query;67;
  59.  
  60. menu3;2;Table &Info;
  61. &Columns;20;
  62. &Full Detail;11;
  63. &Table Contents (first 30 rows);34;
  64. -;1;
  65. &Indexes;12;6;
  66. -;1;
  67. &Access List;15;8;
  68. 'T&riggers;26;5;
  69. &Dependent Packages;14;3;
  70. &Views on Table;16;4;
  71.  
  72. menu3;3;Package &Info;
  73. &Package Detail;21;
  74. &Objects used by package;22;2;
  75. &Statements;23;
  76. &Access List;24;8;
  77.  
  78. menu3;4;Trigger &Info;
  79. Trigger &Details;25;
  80. Trigger &Text;69;
  81.  
  82. menu3;5;Tablespace &Info;
  83. &Tables within Tablespace;42;9;
  84. Table &sizing info;43;9;
  85. Tablespace &Details;41;
  86. Tablespace &Partitions;44;
  87.  
  88. menu3;6;Index &Info;
  89. &Columns in Index;47;
  90. Index &Details;45;
  91. Index &Partitions;46;
  92. Packages &using index;66;3;
  93.  
  94. menu3;7;Plan &Info;
  95. &Plan Detail;48;
  96. &Packages in Plan;36;3;
  97. &Objects used by Plan;50;2;
  98. &Statements;35;
  99. &Access List;49;8;
  100.  
  101. menu3;8;User &Info;
  102. &Table Authorities;60;1;
  103. &Table Authorities (with Grantor);61;1;
  104. &Plan Authorities;62;7;
  105. &Package Authorities;63;3;
  106. &Database Authorities;64;
  107.  
  108. menu3;9;View &Info;
  109. &Columns;20;
  110. &Full Detail;11;
  111. &Contents of View (first 30 rows);34;
  112. -;1;
  113. &Access List;15;8;
  114. &Dependent Packages;14;3;
  115. &Views on View;16;4;
  116. &Objects in View;13;2;
  117. -;1;
  118. View &Definition;51;
  119. View Definition (&formatted);17;
  120. View as &Query;67;
  121.  
  122. menu3;10;Procedures;
  123. Procedure &Parms;28;
  124. Procedure &Detail;29;
  125.  
  126. menu3;11;Functions;
  127. Function &Parms;70;
  128. Function &Detail;71;
  129.  
  130. '******************************************************************
  131. ' menu4;1    Tables
  132. ' menu4;2    Objects (table, index, view, tablespace)
  133. ' menu4;3    Packages
  134. ' menu4;4    Views
  135. ' menu4;5    Triggers
  136. ' menu4;6    Indexes
  137. ' menu4;7    Plans
  138. ' menu4;8    Users
  139. ' menu4;9    Table
  140. '******************************************************************
  141. menu4;1;1;T;
  142. menu4;2;2;T;3;T;
  143. menu4;2;9;V;3;V;
  144. menu4;2;6;I;3;I;
  145. menu4;2;5;A;3;R;
  146. menu4;3;3;P;
  147. menu4;4;9;V;
  148. menu4;5;4;G;
  149. menu4;6;6;I;
  150. menu4;7;7;L;
  151. menu4;8;8;U;
  152. menu4;9;2;T
  153.  
  154.  
  155. queries;
  156. 1;m;Tables/Views within Database;Select distinct creator from SYSIBM.SYSTABLES;Schema;1500;
  157. 2;m;Tables (only) within Database;Select distinct creator from SYSIBM.SYSTABLES where type = 'T';Schema;1500;
  158. 3;m;Packages within Database;Select distinct collid from sysibm.syspackage;Collid;1200; 
  159. 4;m;Triggers within Database;Select distinct schema from sysibm.systriggers;Schema;1200; 
  160. 5;m;Tablespaces within Database;Select NAME from SYSIBM.SYSDATABASE;Database;1200;
  161. 6;m;Indexes within Database; Select distinct creator from SYSIBM.SYSINDEXES;Creator;1200;
  162. '7;m;Plans within Database;Select distinct creator from SYSIBM.SYSPLAN;Creator;1200;
  163. 8;m;Users within Database;Select distinct grantee from SYSibm.syspackAUTH where granteetype = '' union select distinct grantee from SYSibm.sysTABAUTH where granteetype = '' union   select distinct grantee from SYSibm.sysdbaUTH where granteetype = '';Creator;1200;
  164. 9;m;Tables within Schema;Select name, type, substr(remarks,1,50) from sysibm.systables where creator = ? and type = 'T' order by 1;Table;2000;Type;1;Desc;3500;
  165. 10;m;Tables/Views within Schema;Select name, type, substr(remarks,1,50) from sysibm.systables where creator = ? order by 1;Table;2000;Type;500;Desc;3500;
  166. 11;s;Full details of;Select * from sysibm.systables where creator=? and name=?;Column;1500;Value;3000;
  167. 12;m;Indexes on;Select creator,name,uniquerule,colcount,clustering from sysibm.sysindexes where tbcreator= ? and tbname=? order by 1,2;Ind Schema;1500;Ind Name;2000;Type;500;#Cols;800;Cluster;800;
  168. 13;m;Objects comprising View;Select  BCREATOR, BNAME, BTYPE from SYSIBM.SYSVIEWDEP where dcreator=? and dname=? order by 1,2;Schema;1500;Name;2500;Type;800;
  169. 14;m;Packages using;Select dcollid,dname from SYSIBM.SYSPACKDEP where bqualifier = ? and bname=? order by 1,2;Pkg Schema;1500;Pkg Name;2000;
  170. 15;m;Access list for;Select distinct grantee, selectauth, updateauth, insertauth, deleteauth from sysibm.systabauth where tcreator = ? and ttname=? order by grantee;Userid;1500;Select;600;Update;600;Insert;600;Delete;600;
  171. 16;m;Views on;Select dcreator, dname from SYSIBM.SYSVIEWDEP where bcreator=? and bname=? order by 1,2;View Schema;1500;View Name;2500;
  172. 18;m;Indexes for creator;Select NAME,TBCREATOR,TBNAME,UNIQUERULE from SYSIBM.SYSINDEXES WHERE CREATOR=? order by 1;Index Name;2000;Tab Creator;1500;Tab Name;2000;Unique;800;
  173. 17;v;Definition of view;Select TEXT, seqno  from SYSIBM.SYSVIEWS WHERE CREATOR=? AND NAME=? order by seqno;View Text;5000;
  174. 19;m;Plans within database;Select NAME,VALID,OPERATIVE from SYSIBM.SYSPLAN;Name;1500;Valid;800;Operative;800;
  175. 20;c;Column list for;SELECT NAME, COLTYPE, length, SCALE, NULLS,remarks,colno,substr(defaultvalue,1,20) FROM SYSIBM.SYSCOLUMNS WHERE TBCREATOR=? and TBNAME=? order by colno;Name;2000;Type;1000;Length;650;Scale;500;Nulls;500;Desc;3000;Default;2500;
  176. 21;s;Details of package;Select * from sysibm.syspackage where collid = ? and name = ?;Column;1500;Value;3000;
  177. 22;m;Objects used by Package;Select bqualifier,bname, btype from SYSIBM.SYSPACKDEP where dcollid=? and dname=? order by 1,2;Schema;1500;Name;2000;Type;1000;
  178. 23;m;Statements in package;Select SECTNO,STMTNO, SEQNO, substr(STMT,9,200) from SYSIBM.SYSPACKSTMT where collid=? and name=? order by 1,2,3;Section;700;Stmt;600;Seq;500;Text;8000;
  179. 24;m;Access list for package;Select GRANTEE, GRANTEETYPE, executeauth, COPYAUTH, BINDAUTH from SYSIBM.SYSPACKAUTH where collid=? and name=? order by grantee;Id;1500;Id Type;800;Execute;800;Bind;800;Copy;800;
  180. 25;s;Details of trigger;Select * from SYSIBM.SYSTRIGGERS where schema=? and name=? and seqno=1;Column;1500;Value;5000;
  181. 26;m;Procedures within Database;Select distinct schema, schema from sysibm.sysroutines where routinetype='P';Schema;1200; 
  182. 27;m;Procedures within Schema;Select name, parm_count, substr(remarks,1,50),specificname from sysibm.sysroutines where schema = ? and routinetype='P' order by 1;Name;2000;Num Parms;800;Desc;3500;Specificname;1;
  183.  
  184. 28;P2;Parameters for;select PARMNAME, ROWTYPE, TYPENAME, LENGTH, SCALE, LOCATOR From SYSIBM.SYSPARMS Where SCHEMA=? AND SPECIFICNAME=? and routinetype='P' Order By ORDINAL;Parm;1500;Mode;800;Type;1000;Length;800;Scale;800;Locator;800;
  185. '28;O;Parameters for procedure;B;Parm;1500;Mode;800;Type;1000;Length;800;Scale;800;
  186. 29;s2;Full details of;Select * from sysibm.sysroutines Where SCHEMA=? AND SPECIFICNAME=? and routinetype='P';Column;1500;Value;3000;
  187.  
  188. 31;m;Tables (only) within Schema;Select tabname, type, substr(remarks,1,50) from sysibm.systables where creator = ? and type='T' order by 1;Table;2000;Type;1;Desc;3500;
  189. 32;m;Packages within Collid;Select NAME, valid, operative from SYSIBM.SYSPACKAGE where collid=? order by 1;Name;1500;Valid;800;Operative;800;
  190. 33;m;Triggers within Schema;Select NAME,REMARKS from SYSIBM.SYSTRIGGERS where schema=? order by 1;Name;1500;Desc;2500;
  191. 34;d;Contents of;Anything;Name;1500;
  192. 35;m;Statements in Plan;Select NAME,SECTNO,STMTNO, SEQNO, substr(TEXT,9,200) from SYSIBM.SYSSTMT where plname=? order by 1,2,3;DBRM;1200;Section;700;Stmt;600;Seq;500;Text;8000;
  193. 36;m;Packages in Plan;Select COLLID, NAME, LOCATION, TIMESTAMP, SEQNO from SYSIBM.SYSPACKLIST WHERE PLANNAME=? ORDER BY SEQNO;Collid;1500;Package;1200;Location;1200;Timestamp;1800;Seq;800;
  194.  
  195. 37;m;Functions within Database;Select distinct schema, schema from sysibm.sysroutines where routinetype='F';Schema;1200; 
  196. 38;m;Functions within Schema;Select name, parm_count, substr(remarks,1,50),specificname from sysibm.sysroutines where schema = ? and routinetype='F' order by 1;Name;2000;Num Parms;800;Desc;3500;specificname;1;
  197.  
  198. 40;m;Tablespaces within Database;Select NAME, NACTIVE, NTABLES from SYSIBM.SYSTABLESPACE  WHERE DBNAME=? order by 1;Name;2000;Pages;800;#Tables;1000;  
  199. 41;s;Details of tablespace;Select * from sysibm.systablespace where dbname=? and name=?;Column;1500;Value;3000;
  200. 42;m;Tables within tablespace;Select CREATOR, NAME, REMARKS from SYSIBM.SYSTABLES WHERE DBNAME=? AND TSNAME=? and type='T';Schema;1500;Table;2000;Desc;3500;
  201. 43;m;Sizing for tables within tablespace;Select CREATOR, NAME, CARD, NPAGES from SYSIBM.SYSTABLES WHERE DBNAME=? AND TSNAME=? order by npages desc;Schema;1500;Table;2000;Rows;800;Pages;800;
  202. 44;m;Partitions within tablespace;Select PARTITION,PQTY,SQTY,STORNAME,CARD,SPACE,PERCACTIVE,COMPRESS,CHECKFLAG from SYSIBM.SYSTABLEPART  WHERE DBNAME=? and TSNAME=?;Part;800;PriQty;800;SecQty;800;StoName;1500;Rows;1000;Space(KB);1000;Act Pages;1000;Compress;800;Check-Pending;800;
  203. 45;s;Details of index;Select * from sysibm.sysindexes where creator=? and name=?;Column;1500;Value;3000;
  204. 46;m;Partitions within index;Select PARTITION,PQTY,SQTY,STORNAME,CARD,SPACE from SYSIBM.SYSINDEXPART WHERE ixCREATOR=? and ixNAME=?;Part;800;PriQty;800;SecQty;800;StoName;1500;Rows;1000;
  205. 47;m;Columns in index;Select COLNAME, COLSEQ, ORDERING from SYSIBM.SYSKEYS where IXCREATOR=? and IXNAME = ? order by 1;Column;2000;Seq;800;Ordering;800;
  206. 48;s;Details of plan;Select * from sysibm.sysplan where name=?;Column;1500;Value;3000;
  207. 49;m;Access list for plan;Select distinct GRANTEE, executeauth, BINDAUTH from SYSIBM.SYSPLANAUTH where name=? order by grantee;Id;1500;Execute;800;Bind;800;
  208. 50;m;Objects used by plan;Select BCREATOR, BNAME, BTYPE from SYSIBM.SYSPLANDEP WHERE DNAME=?;Schema;1500;Name;1200;Type;800;
  209. 51;w;Definition of view;Select TEXT, seqno  from SYSIBM.SYSVIEWS WHERE CREATOR=? AND NAME=? order by seqno;Seq;800;Text;5000;
  210. 52;m;Views within Database;Select distinct creator from SYSIBM.SYSTABLES where type = 'V';Schema;1500;
  211. 53;m;Views within Schema;Select name, type, substr(remarks,1,50) from sysibm.systables where creator = ? and type = 'V' order by 1;View;2000;Type;1;Desc;3500;
  212. 60;a;Table authorities for;Select distinct tcreator, ttname, selectauth, updateauth, insertauth, deleteauth, alterauth, referencesauth, indexauth from sysibm.systabauth where grantee = ? order by 1,2;Schema;1200;Name;1800;Select;600;Update;700;Insert;600;Delete;600;Alter;500;References;800;Index;600;
  213. 61;b;Table authorities for;Select distinct tcreator, ttname,grantor, selectauth, updateauth, insertauth, deleteauth, alterauth, referencesauth, indexauth from sysibm.systabauth where grantee = ? order by 1,2;Schema;1200;Name;1800;Grantor;1000;Select;600;Update;700;Insert;600;Delete;600;Alter;500;References;800;Index;600;
  214. 62;m;Plan authorities for;Select distinct name, executeauth, BINDAUTH from SYSIBM.SYSPLANAUTH where grantee=? order by name;Plan;1500;Execute;800;Bind;800;
  215. 63;m;Package authorities for;Select collid, name, GRANTEETYPE, executeauth, COPYAUTH, BINDAUTH from SYSIBM.SYSPACKAUTH where GRANTEE=? order by grantee;Collid;1200;Package;1500;Id Type;800;Execute;800;Bind;600;Copy;600;
  216. 64;m;Database authorities for;Select distinct NAME, CREATETABAUTH, CREATETSAUTH, DBMAINTAUTH, DBCTRLAUTH  DBADMAUTH from SYSIBM.SYSDBAUTH WHERE GRANTEE=? order by 1;Database;1200;CreateTab;900;CreateTS;800;DBMaint;800;DBCtrl;800;DBAdm;800;
  217. 65;u;Users within Database;select distinct grantee from SYSibm.sysTABAUTH where granteetype = '' ;Creator;1200;
  218. 66;m;Packages using index;Select dcollid,dname from SYSIBM.SYSPACKDEP where bqualifier=? and bname=? and btype='I' order by 1,2;Schema;1500;Name;2000;
  219. 67;q;View as Query;Select TEXT, seqno  from SYSIBM.SYSVIEWS WHERE CREATOR=? AND NAME=? order by seqno;Seq;800;Text;5000;
  220. 68;f;Column list for Alias;SELECT  col.NAME, col.COLTYPE, col.LENGTH, col.SCALE, col.NULLS, col.REMARKS, col.COLNO, substr(col.defaultvalue,1,20)   FROM  SYSIBM.SYSCOLUMNS col, SYSIBM.SYSTABLES tab  WHERE  tab.TBCREATOR=col.TBCREATOR AND tab.TBNAME=col.TBNAME AND tab.CREATOR = ? AND tab.NAME = ? order by col.colno;Name;2000;Type;1000;Length;650;Scale;500;Nulls;500;Desc;3000;Default;2500;
  221. 69;X;Text of trigger;Select TEXT, seqno from SYSIBM.SYSTRIGGERS where schema=? and name=? order by seqno;Text;6000;
  222. 70;P2;Parameters for;select PARMNAME, ROWTYPE, TYPENAME, LENGTH, SCALE, LOCATOR From SYSIBM.SYSPARMS Where SCHEMA=? AND SPECIFICNAME=? and routinetype='F' Order By ORDINAL;Parm;1500;Mode;800;Type;1000;Length;800;Scale;800;Locator;800;
  223. 71;s2;Full details of;Select * from sysibm.sysroutines Where SCHEMA=? AND SPECIFICNAME=? and routinetype='F';Column;1500;Value;3000;
  224.  
  225.  
  226.  
  227. func;DATE;CHAR(:,ISO);CHAR;DAYS(:);INTEGER;DAY(:);INTEGER;DAYNAME(:);CHAR;DAYOFWEEK(:);INTEGER;DAYOFYEAR(:);INTEGER;WEEK(:);INTEGER;YEAR(:);INTEGER;
  228. func;TIME*;CHAR(:,ISO);CHAR;MIDNIGHT_SECONDS(:);INTEGER;HOUR(:);INTEGER;MINUTE(:);INTEGER;SECOND(:);INTEGER;
  229. func;TIMESTAMP;CHAR(:,ISO);CHAR;TIMESTAMPDIFF(8,: - '2001-01-23 10.32.55');INTEGER;DATE(:);DATE;TIME(:);TIME;MIDNIGHT_SECONDS(:);INTEGER;
  230. func;CHAR;SUBSTR(:,1,20);;CONCAT(:,'string');;LCASE(:);;UCASE(:);;LEFT(:,5);;RIGHT(:,5);;LTRIM(:);;RTRIM(:);;LENGTH(:);INTEGER;REPLACE(:,'From','To');;TRANSLATE(:,'abc','ABC');;HEX(:);;INSERT(:,3,0,'text');;INTEGER(:);INTEGER;
  231. func;INT;CHAR(:);CHAR;ABS(:);;DIGITS(:);CHAR;SIGN(:);;
  232. func;DEC;CHAR(:,2);CHAR;ABS(:);;DIGITS(:);CHAR;SIGN(:);;ROUND(:,2);;TRUNC(:,2);;
  233.  
  234. const;DATE;'2001-01-23';CURRENT DATE;CURRENT DATE - 2 DAYS;
  235. const;TIME*;'10.32.55';CURRENT TIME;CURRENT TIME - 2 HOURS;
  236. const;TIMESTMP;'2001-01-23-10.32.55';CURRENT TIMESTAMP;CURRENT TIMESTAMP - 2 HOURS;
  237. const;CHAR;'value';
  238. const;INT;0;
  239. const;DEC;0;
  240. const;ALL*;CURRENT DATE;CURRENT TIME;CURRENT TIMESTAMP;CURRENT SERVER;USER;
  241.