dbClean_db2.sql 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. -- Licensed Materials - Property of IBM
  2. --
  3. -- BI and PM: CM
  4. --
  5. -- (C) Copyright IBM Corp. 2008, 2019
  6. --
  7. -- US Government Users Restricted Rights - Use, duplication or disclosure
  8. -- restricted by GSA ADP Schedule Contract with IBM Corp.
  9. -- Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. -- Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. ALTER TABLE CMOBJECTS DROP CONSTRAINT FK_PARENT;
  12. drop trigger CM_ONMOVE_TR;
  13. drop trigger CM_UNNAMEU_TR;
  14. drop trigger CM_UNNAMEI_TR;
  15. drop trigger CMGUIDS_TR;
  16. drop view CMOWNERCOUNT;
  17. drop table CMOBJECTS;
  18. drop table CMOBJECTS_OLD;
  19. drop table CMOBJNAMES;
  20. drop table CMOBJNAMES_OLD;
  21. drop table CMDATA;
  22. drop table CMDATA_OLD;
  23. drop table CMOBJPROPS1;
  24. drop table CMOBJPROPS1_OLD;
  25. drop table CMOBJPROPS2;
  26. drop table CMOBJPROPS2_OLD;
  27. drop table CMOBJPROPS3;
  28. drop table CMOBJPROPS3_OLD;
  29. drop table CMOBJPROPS4;
  30. drop table CMOBJPROPS4_OLD;
  31. drop table CMOBJPROPS5;
  32. drop table CMOBJPROPS5_OLD;
  33. drop table CMOBJPROPS6;
  34. drop table CMOBJPROPS6_OLD;
  35. drop table CMOBJPROPS6A;
  36. drop table CMOBJPROPS6A_OLD;
  37. drop table CMOBJPROPS7;
  38. drop table CMOBJPROPS7_OLD;
  39. drop table CMOBJPROPS8;
  40. drop table CMOBJPROPS8_OLD;
  41. drop table CMOBJPROPS9;
  42. drop table CMOBJPROPS9_OLD;
  43. drop table CMOBJPROPS10;
  44. drop table CMOBJPROPS10_OLD;
  45. drop table CMOBJPROPS11;
  46. drop table CMOBJPROPS11_OLD;
  47. drop table CMOBJPROPS12;
  48. drop table CMOBJPROPS12_OLD;
  49. drop table CMOBJPROPS13;
  50. drop table CMOBJPROPS13_OLD;
  51. drop table CMOBJPROPS14;
  52. drop table CMOBJPROPS14_OLD;
  53. drop table CMOBJPROPS15;
  54. drop table CMOBJPROPS15_OLD;
  55. drop table CMOBJPROPS16;
  56. drop table CMOBJPROPS16_OLD;
  57. drop table CMOBJPROPS17;
  58. drop table CMOBJPROPS17_OLD;
  59. drop table CMOBJPROPS18;
  60. drop table CMOBJPROPS18_OLD;
  61. drop table CMOBJPROPS19;
  62. drop table CMOBJPROPS19_OLD;
  63. drop table CMOBJPROPS20;
  64. drop table CMOBJPROPS20_OLD;
  65. drop table CMOBJPROPS21;
  66. drop table CMOBJPROPS21_OLD;
  67. drop table CMOBJPROPS22;
  68. drop table CMOBJPROPS22_OLD;
  69. drop table CMOBJPROPS23;
  70. drop table CMOBJPROPS23_OLD;
  71. drop table CMOBJPROPS24;
  72. drop table CMOBJPROPS24_OLD;
  73. drop table CMOBJPROPS25;
  74. drop table CMOBJPROPS25_OLD;
  75. drop table CMOBJPROPS26;
  76. drop table CMOBJPROPS26_OLD;
  77. drop table CMOBJPROPS27;
  78. drop table CMOBJPROPS27_OLD;
  79. drop table CMOBJPROPS28;
  80. drop table CMOBJPROPS28_OLD;
  81. drop table CMOBJPROPS30;
  82. drop table CMOBJPROPS30_OLD;
  83. drop table CMOBJPROPS31;
  84. drop table CMOBJPROPS31_OLD;
  85. drop table CMOBJPROPS32;
  86. drop table CMOBJPROPS32_OLD;
  87. drop table CMOBJPROPS33;
  88. drop table CMOBJPROPS33_OLD;
  89. drop table CMOBJPROPS34;
  90. drop table CMOBJPROPS34_OLD;
  91. drop table CMOBJPROPS35;
  92. drop table CMOBJPROPS35_OLD;
  93. drop table CMOBJPROPS36;
  94. drop table CMOBJPROPS36_OLD;
  95. drop table CMOBJPROPS37;
  96. drop table CMOBJPROPS37_OLD;
  97. drop table CMOBJPROPS38;
  98. drop table CMOBJPROPS38_OLD;
  99. drop table CMOBJPROPS39;
  100. drop table CMOBJPROPS39_OLD;
  101. drop table CMOBJPROPS40;
  102. drop table CMOBJPROPS40_OLD;
  103. drop table CMOBJPROPS41;
  104. drop table CMOBJPROPS41_OLD;
  105. drop table CMOBJPROPS42;
  106. drop table CMOBJPROPS42_OLD;
  107. drop table CMOBJPROPS43;
  108. drop table CMOBJPROPS43_OLD;
  109. drop table CMOBJPROPS44;
  110. drop table CMOBJPROPS44_OLD;
  111. drop table CMOBJPROPS45;
  112. drop table CMOBJPROPS45_OLD;
  113. drop table CMOBJPROPS46;
  114. drop table CMOBJPROPS46_OLD;
  115. drop table CMOBJPROPS47;
  116. drop table CMOBJPROPS47_OLD;
  117. drop table CMOBJPROPS48;
  118. drop table CMOBJPROPS48_OLD;
  119. drop table CMOBJPROPS49;
  120. drop table CMOBJPROPS49_OLD;
  121. drop table CMOBJPROPS50;
  122. drop table CMOBJPROPS50_OLD;
  123. drop table CMOBJPROPS51;
  124. drop table CMOBJPROPS51_OLD;
  125. drop table CMOBJPROPS52;
  126. drop table CMOBJPROPS52_OLD;
  127. drop table CMOBJPROPS53;
  128. drop table CMOBJPROPS53_OLD;
  129. drop table CMOBJPROPS54;
  130. drop table CMOBJPROPS54_OLD;
  131. drop table CMOBJPROPS55;
  132. drop table CMOBJPROPS55_OLD;
  133. drop table CMOBJPROPS56;
  134. drop table CMOBJPROPS56_OLD;
  135. drop table CMOBJPROPS57;
  136. drop table CMOBJPROPS57_OLD;
  137. drop table CMOBJPROPS58;
  138. drop table CMOBJPROPS58_OLD;
  139. drop table CMOBJPROPS59;
  140. drop table CMOBJPROPS59_OLD;
  141. drop table CMOBJPROPS60;
  142. drop table CMOBJPROPS60_OLD;
  143. drop table CMOBJPROPS61;
  144. drop table CMOBJPROPS61_OLD;
  145. drop table CMOBJPROPS62;
  146. drop table CMOBJPROPS62_OLD;
  147. drop table CMOBJPROPS63;
  148. drop table CMOBJPROPS63_OLD;
  149. drop table CMOBJPROPS64;
  150. drop table CMOBJPROPS64_OLD;
  151. drop table CMOBJPROPS65;
  152. drop table CMOBJPROPS65_OLD;
  153. drop table CMOBJPROPS66;
  154. drop table CMOBJPROPS66_OLD;
  155. drop table CMOBJPROPS67;
  156. drop table CMOBJPROPS67_OLD;
  157. drop table CMOBJPROPS68;
  158. drop table CMOBJPROPS68_OLD;
  159. drop table CMOBJPROPS69;
  160. drop table CMOBJPROPS69_OLD;
  161. drop table CMOBJPROPS70;
  162. drop table CMOBJPROPS70_OLD;
  163. drop table CMOBJPROPS71;
  164. drop table CMOBJPROPS71_OLD;
  165. drop table CMOBJPROPS72;
  166. drop table CMOBJPROPS72_OLD;
  167. drop table CMOBJPROPS73;
  168. drop table CMOBJPROPS73_OLD;
  169. drop table CMOBJPROPS74;
  170. drop table CMOBJPROPS74_OLD;
  171. drop table CMOBJPROPS75;
  172. drop table CMOBJPROPS75_OLD;
  173. drop table CMOBJPROPS76;
  174. drop table CMOBJPROPS76_OLD;
  175. drop table CMOBJPROPS77;
  176. drop table CMOBJPROPS77_OLD;
  177. drop table CMOBJPROPS78;
  178. drop table CMOBJPROPS78_OLD;
  179. drop table CMOBJPROPS79;
  180. drop table CMOBJPROPS79_OLD;
  181. drop table CMOBJPROPS80;
  182. drop table CMOBJPROPS80_OLD;
  183. drop table CMOBJPROPS81;
  184. drop table CMOBJPROPS81_OLD;
  185. drop table CMOBJPROPS82;
  186. drop table CMOBJPROPS82_OLD;
  187. drop table CMOBJPROPS83;
  188. drop table CMOBJPROPS83_OLD;
  189. drop table CMOBJPROPS84;
  190. drop table CMOBJPROPS84_OLD;
  191. drop table CMOBJPROPS85;
  192. drop table CMOBJPROPS85_OLD;
  193. drop table CMOBJPROPS86;
  194. drop table CMOBJPROPS86_OLD;
  195. drop table CMOBJPROPS87;
  196. drop table CMOBJPROPS87_OLD;
  197. drop table CMOBJPROPS88;
  198. drop table CMOBJPROPS88_OLD;
  199. drop table CMOBJPROPS89;
  200. drop table CMOBJPROPS89_OLD;
  201. drop table CMOBJPROPS90;
  202. drop table CMOBJPROPS90_OLD;
  203. drop table CMOBJPROPS91;
  204. drop table CMOBJPROPS91_OLD;
  205. drop table CMOBJPROPS92;
  206. drop table CMOBJPROPS92_OLD;
  207. drop table CMOBJPROPS93;
  208. drop table CMOBJPROPS93_OLD;
  209. drop table CMPOLICIES;
  210. drop table CMPOLICIES_OLD;
  211. drop table CMVIEWED;
  212. drop table CMVIEWED_OLD;
  213. drop table CMDELETEDSCHEDULES;
  214. drop table CMDELETEDSCHEDULES_OLD;
  215. drop table CMPROPERTIES;
  216. drop table CMPROPERTIES_OLD;
  217. drop table CMCLASSES;
  218. drop table CMCLASSES_OLD;
  219. drop table CMSYSPROPS;
  220. drop table CMSYSPROPS_OLD;
  221. drop table CMLOCALES;
  222. drop table CMLOCALES_OLD;
  223. drop table CMCRYPTOKEYS;
  224. drop table CMCRYPTOKEYS_OLD;
  225. drop table CMCAKEYS;
  226. drop table CMCAKEYS_OLD;
  227. drop table CMCAPACITY;
  228. drop table CMCAPACITY_OLD;
  229. drop table CMGUIDS;
  230. drop table CMGUIDS_OLD;
  231. drop table CMCAPROPS;
  232. drop table CMCAPROPS_OLD;
  233. drop table CMDBTEST;
  234. drop table CMDBTEST_OLD;
  235. drop table CMREFNOORD1;
  236. drop table CMREFNOORD1_OLD;
  237. drop table CMREFNOORD2;
  238. drop table CMREFNOORD2_OLD;
  239. drop table CMREFORD1;
  240. drop table CMREFORD1_OLD;
  241. drop table CMREFORD2;
  242. drop table CMREFORD2_OLD;
  243. drop table CMSTOREIDS;
  244. drop table CMSTOREIDS_OLD;
  245. drop table CMDATAUPGRADE;
  246. drop table CMDATAUPGRADE_OLD;
  247. drop table CMREFERENCES;
  248. drop table CMREFERENCES_OLD;
  249. drop table CMCHECKCONSISTENCY;
  250. drop table CMCHECKCONSISTENCY_OLD;
  251. drop table CMNOTIFICATIONTABLE;
  252. drop table CMNOTIFICATIONTABLE_OLD;
  253. drop table CMSIZEINFO;
  254. drop table CMSIZEINFO_OLD;
  255. drop table CMSPLIT;
  256. drop table CMARCHIVESTATUS;
  257. drop table CMARCHIVESTATUS_OLD;
  258. drop table CMARCHIVEQUEUE;
  259. drop table CMARCHIVEQUEUE_OLD;
  260. drop table CMDELETEQUEUE;
  261. drop table CMDELETEQUEUE_OLD;
  262. drop table CMQUEUELOCK;
  263. drop table CMQUEUELOCK_OLD;
  264. drop table CMTENANTID;
  265. drop table CMTENANTID_OLD;
  266. drop table CMINDEXQUEUE;
  267. drop table CMTAGS;