dbInitScript_db2.sql 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281
  1. -- Licensed Materials - Property of IBM
  2. --
  3. -- BI and PM: CM
  4. --
  5. -- (C) Copyright IBM Corp. 2008, 2020
  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. create table CMOBJECTS (
  12. CMID integer not null ,
  13. PCMID integer not null ,
  14. VERSION integer default 1 not null ,
  15. CREATED timestamp not null ,
  16. MODIFIED timestamp not null ,
  17. DISABLED smallint,
  18. CLASSID integer not null,
  19. DISPSEQ integer with default 0 not null,
  20. OWNER integer,
  21. TENANTID integer with default 0 not null,
  22. constraint PK_CMOBJECTS primary key (CMID),
  23. constraint PK_CMPARENT unique (PCMID, CMID)
  24. )
  25. create index IDX_CLASS on CMOBJECTS(CLASSID)
  26. create index IDX_CLASS1 on CMOBJECTS(CMID, CLASSID)
  27. create index IDX_PARENT on CMOBJECTS(PCMID)
  28. create index IDX_CREATED on CMOBJECTS(CREATED)
  29. create table CMOBJNAMES (
  30. CMID integer not null,
  31. LOCALEID smallint not null,
  32. MAPDLOCALEID smallint,
  33. ISDEFAULT decimal(1,0) not null,
  34. NAME varchar(255) not null,
  35. constraint PK_CMOBJNAMES primary key (CMID, LOCALEID)
  36. )
  37. create table CMDATA (
  38. CMID integer NOT NULL ,
  39. CONTENTTYPE varchar (256),
  40. DATASIZE bigint,
  41. DATACOMP decimal(1,0) default 0 not null,
  42. DATAPROP blob(1G),
  43. DATAURI varchar (256),
  44. RESOURCETYPE varchar (32),
  45. constraint PK_CMDATA primary key (CMID)
  46. ) CMSCRIPT_CMDATA
  47. CREATE TABLE CMARCHIVESTATUS (
  48. CMID integer NOT NULL,
  49. ARCHSTAT smallint default 0 not null,
  50. CONSTRAINT PK_CMARCHIVESTATUS PRIMARY KEY (CMID)
  51. )
  52. CREATE TABLE CMSTOREIDS (
  53. CMID integer NOT NULL,
  54. STOREID char(33),
  55. CONSTRAINT PK_CMSTOREIDS PRIMARY KEY (CMID)
  56. )
  57. create table CMOBJPROPS1 (
  58. CMID integer not null,
  59. BUSPHONE varchar (32),
  60. COMMONNAME varchar (64),
  61. EMAIL varchar (128),
  62. FAXPHONE varchar (32),
  63. GIVENNAME varchar (128),
  64. HOMEPHONE varchar (32),
  65. MOBILEPHONE varchar (32),
  66. PAGERPHONE varchar (32),
  67. PADDRESS varchar (512),
  68. SURNAME varchar (128),
  69. TIMEZONE varchar (128),
  70. CLOCALEID smallint ,
  71. PRODLOCALE varchar (64),
  72. OBJID varchar (1024),
  73. USEACCESSIBILITY decimal(1,0) default 0,
  74. USERNAME varchar (128),
  75. ORIENTATION smallint,
  76. HORIZRENDERLIMIT integer,
  77. VERTRENDERLIMIT integer,
  78. MOBILEDEVID varchar (512),
  79. NOTIFICATIONEMAIL varchar (512),
  80. constraint PK_CMOBJPROPS1 primary key (CMID)
  81. )
  82. create table CMOBJPROPS10 (
  83. CMID integer not null ,
  84. CONTACTEMAIL varchar (128) ,
  85. CONTACT clob (4000),
  86. constraint PK_CMOBJPROPS10 primary key (CMID)
  87. )
  88. create table CMOBJPROPS11 (
  89. CMID integer not null ,
  90. STATUSID smallint,
  91. EVENTID varchar(45),
  92. OWNEREVENTID varchar(45),
  93. DISPATCHERID varchar(50),
  94. MAXDETAILSEVTY smallint,
  95. SCHEDTRIGNAME varchar(512),
  96. SCHEDTYPE smallint,
  97. RESTARTEVENTID varchar(45),
  98. CONSTRAINT PK_CMOBJPROPS11 PRIMARY KEY (CMID)
  99. )
  100. create index IDX_CMOWNEREVENTID on CMOBJPROPS11(OWNEREVENTID)
  101. create index IDX_CMRESTARTID on CMOBJPROPS11(RESTARTEVENTID)
  102. create table CMOBJPROPS13 (
  103. CMID integer not null,
  104. ORD integer not null,
  105. PARMNAME varchar(512) not null,
  106. CPARMVALUE blob(1G),
  107. constraint PK_CMOBJPROPS13 primary key (CMID, ORD)
  108. )
  109. create table CMOBJPROPS14 (
  110. CMID integer not null,
  111. RELATED clob(1G),
  112. MYPAGE clob(1G),
  113. RETENTION clob(1G),
  114. RECIPSEMAIL clob(1G),
  115. CONSTRAINT PK_CMOBJPROPS14 PRIMARY KEY (CMID)
  116. )
  117. create table CMOBJPROPS15 (
  118. CMID integer not null,
  119. BRSHIAFFINECONS integer,
  120. BRSAFFINECONS integer,
  121. BRSMAXPROCS integer,
  122. METADATAMODEL clob(4000),
  123. BRSEXECTIMELIMIT integer,
  124. BRSDATASOURCECHG timestamp,
  125. constraint PK_CMOBJPROPS15 primary key (CMID)
  126. )
  127. create table CMOBJPROPS16 (
  128. CMID integer not null,
  129. RSHIAFFINECONS integer,
  130. RSAFFINECONS integer,
  131. RSMAXPROCS integer,
  132. RSQUEUELIMIT integer,
  133. RUNNINGSTATE smallint,
  134. ADVSETTINGS clob(4000),
  135. RSEXECTIMELIMIT integer,
  136. ROUTINGTABLE blob(1M),
  137. constraint PK_CMOBJPROPS16 primary key (CMID)
  138. )
  139. create table CMOBJPROPS17 (
  140. CMID integer not null,
  141. NONPEAKBEGINHOUR smallint,
  142. NONPEAKMAXJOBS integer,
  143. PEAKBEGINHOUR smallint,
  144. PEAKMAXJOBS integer,
  145. NEWNONPEAKBEGINHOUR smallint,
  146. NEWNONPEAKMAXJOBS integer,
  147. NEWPEAKBEGINHOUR smallint,
  148. NEWPEAKMAXJOBS integer,
  149. USERCAPABILITY smallint,
  150. STARTACTIVE decimal(1,0),
  151. COMPONENTID smallint,
  152. PREVIMGLOCATION varchar(255),
  153. RESRCELOCATION varchar(255),
  154. constraint PK_CMOBJPROPS17 primary key (CMID)
  155. )
  156. create table CMOBJPROPS18 (
  157. CMID integer not null,
  158. OUTPUTREFS clob(1M),
  159. PATHS clob(1M),
  160. constraint PK_CMOBJPROPS18 primary key (CMID)
  161. )
  162. create table CMOBJPROPS2 (
  163. CMID integer not null,
  164. TASKID varchar(32),
  165. STARTDATE timestamp,
  166. ENDDATE timestamp,
  167. ENDTYPE smallint,
  168. EVERYNPERIODS integer,
  169. DAILYPERIOD smallint,
  170. MONTHLYABSDAY smallint,
  171. MONTHLYRELDAY smallint,
  172. MONTHLYRELWEEK smallint,
  173. TYPE smallint,
  174. YEARLYABSDAY smallint,
  175. YEARLYABSMONTH smallint,
  176. YEARLYRELDAY smallint,
  177. YEARLYRELMONTH smallint,
  178. YEARLYRELWEEK smallint,
  179. ACTIVE decimal(1,0) default 0 not null,
  180. WEEKLYMONDAY decimal(1,0) default 0 not null,
  181. WEEKLYTUESDAY decimal(1,0) default 0 not null,
  182. WEEKLYWEDNESDAY decimal(1,0) default 0 not null,
  183. WEEKLYTHURSDAY decimal(1,0) default 0 not null,
  184. WEEKLYFRIDAY decimal(1,0) default 0 not null,
  185. WEEKLYSATURDAY decimal(1,0) default 0 not null,
  186. WEEKLYSUNDAY decimal(1,0) default 0 not null,
  187. PRIORITY integer,
  188. INTRARECURSTART char (13),
  189. INTRARECUREND char (13),
  190. INTRARECURINTERVAL varchar (50),
  191. constraint PK_CMOBJPROPS2 primary key (CMID)
  192. )
  193. create index IDX_TASKID on CMOBJPROPS2(TASKID)
  194. create index IDX_PRIORITY on CMOBJPROPS2(PRIORITY)
  195. create table CMOBJPROPS20 (
  196. CMID integer not null,
  197. EXECLOCALEID smallint,
  198. EXECFORMAT smallint,
  199. EXECPAGEORIENT smallint,
  200. EXECPROMPT decimal(1,0) default 1 not null,
  201. DEFPORTACT smallint,
  202. ALLOWSUBSCRIBE decimal(1,0),
  203. ALLOWNOTIFICATION decimal(1,0),
  204. OBJREFS clob(1M),
  205. constraint PK_CMOBJPROPS20 primary key (CMID)
  206. )
  207. create table CMOBJPROPS23 (
  208. CMID integer not null,
  209. LSAUDITADMINLVL smallint,
  210. LSAUDITLVL smallint,
  211. LSAUDITOTHERLVL smallint,
  212. LSAUDITUSAGELVL smallint,
  213. LSAUDITNATIVEQRY decimal(1,0),
  214. QSRMEMCACHEROOT varchar(255),
  215. constraint PK_CMOBJPROPS23 primary key (CMID)
  216. )
  217. create table CMOBJPROPS24 (
  218. CMID integer not null,
  219. LOCATION varchar(1024),
  220. MODELNAME varchar(512),
  221. PRINTERADDRESS varchar(2048),
  222. constraint PK_CMOBJPROPS24 primary key (CMID)
  223. )
  224. create table CMOBJPROPS25 (
  225. CMID integer not null,
  226. DEPLOYOBJECT clob (4000),
  227. DEPLOYOBJANC clob(1M),
  228. DEPLOYOBJCLASSID integer,
  229. DEPLOYOBJDEFNAME varchar(255),
  230. DEPLOYOBJDEFSTATUS smallint,
  231. DEPLOYOBJUSAGE smallint,
  232. MESSAGE blob(1M),
  233. constraint PK_CMOBJPROPS25 primary key (CMID)
  234. )
  235. CREATE TABLE CMOBJPROPS26 (
  236. CMID integer not null,
  237. DELIVOPTIONS clob(1M),
  238. constraint PK_CMOBJPROPS26 primary key (CMID)
  239. )
  240. CREATE TABLE CMOBJPROPS27 (
  241. CMID integer not null,
  242. CUBECONTNAME varchar (2048),
  243. GATEWAY varchar (1024),
  244. HASPROMPTS decimal(1,0) default 0 not null,
  245. PPOPTIONS clob (4000),
  246. DATABLOCKS blob(1G),
  247. PPDEFPORTACT smallint,
  248. constraint PK_CMOBJPROPS27 primary key (CMID)
  249. )
  250. CREATE TABLE CMOBJPROPS28 (
  251. CMID integer not null,
  252. EVENTKEY clob (4000),
  253. EVENTTYPES clob (4000),
  254. FILTERDATAITEM varchar (512),
  255. PARMASSIGN blob(1M),
  256. SEQUENCING smallint,
  257. ALLOWNOTIFICATION decimal(1,0),
  258. DEFPORTACTION smallint,
  259. RUNCOND smallint,
  260. SPEC clob(1G),
  261. constraint PK_CMOBJPROPS28 primary key (CMID)
  262. )
  263. create table CMOBJPROPS3 (
  264. CMID integer not null,
  265. PROPNAME varchar(50) not null,
  266. LOCALEID smallint not null,
  267. VALUE varchar (3700),
  268. ISDEFAULT decimal(1,0),
  269. MAPDLOCALEID smallint,
  270. constraint PK_CMOBJPROPS3 primary key (CMID, PROPNAME, LOCALEID)
  271. )
  272. create table CMOBJPROPS30 (
  273. CMID integer not null,
  274. HANDLE varchar(255),
  275. BINDING clob(1M),
  276. REGISTRATION clob(1M),
  277. SERVICEDESCR clob(1M),
  278. LAYOUT clob(1M),
  279. REQUIREDCAP clob(1M),
  280. CANCUSTOMIZE decimal(1,0),
  281. CONTEXT clob(100M),
  282. DEPLOYREFS clob(1M),
  283. constraint PK_CMOBJPROPS30 primary key (CMID)
  284. )
  285. CREATE TABLE CMOBJPROPS31 (
  286. CMID integer not null,
  287. ASAUDITLVL smallint,
  288. BRSAUDITLVL smallint,
  289. CMSAUDITLVL smallint,
  290. DISPAUDITLVL smallint,
  291. DSAUDITLVL smallint,
  292. EMSAUDITLVL smallint,
  293. JSAUDITLVL smallint,
  294. MDSAUDITLVL smallint,
  295. MMSAUDITLVL smallint,
  296. MSAUDITLVL smallint,
  297. PACSAUDITLVL smallint,
  298. PDSAUDITLVL smallint,
  299. PRSAUDITLVL smallint,
  300. PSAUDITLVL smallint,
  301. PTSAUDITLVL smallint,
  302. RSAUDITLVL smallint,
  303. SSAUDITLVL smallint,
  304. BRSAUDITNATIVEQRY decimal(1,0),
  305. RSAUDITNATIVEQRY decimal(1,0),
  306. DISAUDITLVL smallint,
  307. RSDATASOURCECHG timestamp,
  308. IDSAUDITLVL smallint,
  309. ISSAUDITLVL smallint,
  310. IUSAUDITLVL smallint,
  311. RDSAUDITLVL smallint,
  312. RDSMAXDATASIZE integer,
  313. MBSAUDITLVL smallint,
  314. DDSAUDITLVL smallint,
  315. DDSLISPERPRCSR integer,
  316. DMSAUDITLVL smallint,
  317. MISAUDITLVL smallint,
  318. MDSAFFINECONNECTIONS integer,
  319. MDSNONAFFINECONNCTS integer,
  320. MDSPEAKCONS integer,
  321. MDSPEAKNONAFFINECONNCTS integer,
  322. MDSPEAKMAXPROCS integer,
  323. MDSMAXPROCESSES integer,
  324. MDSEXECUTIONTIMELIMIT integer,
  325. MDSQUEUELIMIT integer,
  326. MDINFOURI clob(4000),
  327. DIMSAUDITLVL integer,
  328. EVSAUDITLVL integer,
  329. GSAUDITLVL integer,
  330. AASAUDITLVL smallint,
  331. HTSAUDITLVL smallint,
  332. CMCSAUDITLVL smallint,
  333. QSAUDITLVL smallint,
  334. BCSAUDITLVL smallint,
  335. CSAUDITLVL smallint,
  336. FSAUDITLVL smallint,
  337. STSAUDITLVL smallint,
  338. ANSAUDITLVL smallint,
  339. RMDSAUDITLVL smallint,
  340. IDVIZAUDITLVL smallint,
  341. REPOSAUDITLVL smallint,
  342. SACAMAUDITLVL smallint,
  343. constraint PK_CMOBJPROPS31 primary key (CMID)
  344. )
  345. create table CMOBJPROPS32 (
  346. CMID integer not null,
  347. STOREDPROCNAME varchar(255),
  348. constraint PK_CMOBJPROPS32 primary key (CMID)
  349. )
  350. create table CMOBJPROPS33 (
  351. CMID integer not null,
  352. NAME varchar(255),
  353. USERID varchar(1024),
  354. LASTLOGIN timestamp,
  355. CAPABILITIES varchar(64),
  356. LICENSE smallint,
  357. constraint PK_CMOBJPROPS33 primary key (CMID)
  358. )
  359. create table CMOBJPROPS34 (
  360. CMID integer not null,
  361. ACTION smallint,
  362. BOOKMARKITEM varchar(255),
  363. BOOKMARKTEXT varchar(255),
  364. DRILLPARMASSIGN blob(1M),
  365. SCOPE blob(1M),
  366. SPEC clob(1G),
  367. TARGETOPTIONS clob(1M),
  368. DEPLOYREFS clob(1M),
  369. constraint PK_CMOBJPROPS34 primary key (CMID)
  370. )
  371. create table CMOBJPROPS35 (
  372. CMID integer not null,
  373. BINDINGNAME varchar (512),
  374. INPUTMESSNAME varchar (512),
  375. OPERATIONNAME varchar (512),
  376. OUTPUTMESSNAME varchar (512),
  377. SERVICENAME varchar (512),
  378. BULKEVENTS decimal(1,0),
  379. constraint PK_CMOBJPROPS35 primary key (CMID)
  380. )
  381. create table CMOBJPROPS36 (
  382. CMID integer not null,
  383. ACTION smallint,
  384. constraint PK_CMOBJPROPS36 primary key (CMID)
  385. )
  386. create table CMOBJPROPS37 (
  387. CMID integer not null,
  388. ROUTINGHINTS clob (4000),
  389. PROFILESETTINGS clob (100K),
  390. PROFILERANK integer with default 0 not null,
  391. constraint PK_CMOBJPROPS37 primary key (CMID)
  392. )
  393. create table CMOBJPROPS38 (
  394. CMID integer not null,
  395. CTITEMCOUNTDEFAULT integer,
  396. CTITEMCOUNTLIMIT integer,
  397. MBRITEMCOUNTDEFAULT integer,
  398. MBRITEMCOUNTLIMIT integer,
  399. constraint PK_CMOBJPROPS38 primary key (CMID)
  400. )
  401. CREATE TABLE CMOBJPROPS39 (
  402. PROPID smallint NOT NULL,
  403. CMID integer not null ,
  404. VALUE smallint NOT NULL
  405. )
  406. create index IDX_CMOBJPROPS39 on CMOBJPROPS39 (CMID)
  407. create table CMOBJPROPS4 (
  408. CMID integer not null,
  409. HEIGHT varchar(20),
  410. WIDTH varchar(20),
  411. UNIT smallint,
  412. constraint PK_CMOBJPROPS4 primary key (CMID)
  413. )
  414. CREATE TABLE CMOBJPROPS40 (
  415. CMID integer not null,
  416. APPGUID varchar(50),
  417. APPID varchar (512),
  418. APPSTATE smallint,
  419. APPURL clob (4000),
  420. constraint PK_CMOBJPROPS40 primary key (CMID)
  421. )
  422. CREATE TABLE CMOBJPROPS41 (
  423. CMID integer not null,
  424. DEPTH integer,
  425. ITEMID varchar (512),
  426. PARENTID varchar (512),
  427. CONSTRAINT PK_CMOBJPROPS41 primary key (CMID)
  428. )
  429. CREATE TABLE CMOBJPROPS42 (
  430. CMID integer not null,
  431. SPEC clob(1G),
  432. constraint PK_CMOBJPROPS42 primary key (CMID)
  433. )
  434. CREATE TABLE CMOBJPROPS43 (
  435. CMID integer not null,
  436. SPEC clob(1G),
  437. constraint PK_CMOBJPROPS43 primary key (CMID)
  438. )
  439. CREATE TABLE CMOBJPROPS44 (
  440. CMID integer not null,
  441. RDSGATEWMAPPING blob(1M),
  442. CONSTRAINT PK_CMOBJPROPS44 primary key (CMID)
  443. )
  444. create table CMOBJPROPS45 (
  445. CMID integer not null,
  446. LINK smallint,
  447. constraint PK_CMOBJPROPS45 primary key (CMID)
  448. )
  449. CREATE TABLE CMOBJPROPS46 (
  450. CMID integer not null,
  451. DOCTYPE varchar (512),
  452. constraint PK_CMOBJPROPS46 primary key (CMID)
  453. )
  454. CREATE TABLE CMOBJPROPS47 (
  455. CMID integer not null,
  456. SYSTEMMETRIC smallint,
  457. PROPERTIES blob(1M),
  458. constraint PK_CMOBJPROPS47 primary key (CMID)
  459. )
  460. CREATE TABLE CMOBJPROPS48 (
  461. CMID integer not null,
  462. ASCONNECTIONS integer,
  463. CMSCONNECTIONS integer,
  464. DDSCONNECTIONS integer,
  465. DISCONNECTIONS integer,
  466. DSCONNECTIONS integer,
  467. IDSCONNECTIONS integer,
  468. ISSCONNECTIONS integer,
  469. IUSCONNECTIONS integer,
  470. JSCONNECTIONS integer,
  471. MBSCONNECTIONS integer,
  472. MMSCONNECTIONS integer,
  473. PACSCONNECTIONS integer,
  474. PDSCONNECTIONS integer,
  475. PRSCONNECTIONS integer,
  476. PTSCONNECTIONS integer,
  477. BRSCHHOTSPOTLIMIT integer,
  478. RSCHHOTSPOTLIMIT integer,
  479. CAPACITY float,
  480. LOADBALMODE smallint,
  481. DMSCONNECTIONS integer,
  482. MISCONNECTIONS integer,
  483. DSCOMPATTACHLIMIT integer,
  484. QSDIAGENABLED decimal(1,0),
  485. QSMETENABLED decimal(1,0),
  486. QSQUERYEXECTR decimal(1,0),
  487. QSPLANTRC decimal(1,0),
  488. BCSAFFCONS integer,
  489. BCSEXECLMT integer,
  490. BCSMAXPROCS integer,
  491. BCSNONAFFCONS integer,
  492. BCSPEAKAFFCONS integer,
  493. BCSPEAKMAXPROCS integer,
  494. BCSPEAKNONAFFCONS integer,
  495. CSAFFCONS integer,
  496. CSEXECLMT integer,
  497. CSMAXPROCS integer,
  498. CSNONAFFCONS integer,
  499. CSPEAKAFFCONS integer,
  500. CSPEAKMAXPROCS integer,
  501. CSPEAKNONAFFCONS integer,
  502. FSAFFCONS integer,
  503. FSEXECLMT integer,
  504. FSCMAXPROCS integer,
  505. FSNONAFFCONS integer,
  506. FSPEAKAFFCONS integer,
  507. FSPEAKMAXPROCS integer,
  508. FSPEAKNONAFFCONS integer,
  509. RMDSAFFCONS integer,
  510. RMDSEXECLMT integer,
  511. RMDSNONAFFCONS integer,
  512. RMDSPEAKAFFCONS integer,
  513. RMDSPEAKNONAFFCONS integer,
  514. DASAUDITLVL smallint,
  515. RMDSCONS integer,
  516. RMDSPEAKCONS integer,
  517. QSVERBGCLOGLIMIT integer,
  518. QSMDQUERYSIZELIMIT integer,
  519. QSGENCOMINNATSQL decimal(1,0),
  520. QSDISVERBGCLOG decimal(1,0),
  521. QSINITNURSESIZE integer,
  522. QSNURSESIZELIMIT integer,
  523. QSGCPOLICY smallint,
  524. REPOSCACHEOBJTTL integer,
  525. REPOSNUMOBJDISK integer,
  526. REPOSNUMOBJMEM integer,
  527. MAXSTORESZMB integer,
  528. constraint PK_CMOBJPROPS48 primary key (CMID)
  529. )
  530. CREATE TABLE CMOBJPROPS49 (
  531. CMID integer not null,
  532. URI clob (4000),
  533. constraint PK_CMOBJPROPS49 primary key (CMID)
  534. )
  535. create table CMOBJPROPS5 (
  536. CMID integer not null,
  537. ACTEXECTIME timestamp,
  538. ACTCOMPTIME timestamp,
  539. REQEXECTIME timestamp,
  540. USERREF clob(4000),
  541. DETAILTIME timestamp,
  542. DETAIL clob(1M),
  543. SEVERITY smallint,
  544. DETAILTYPE varchar(64),
  545. INFO clob(64k),
  546. constraint PK_CMOBJPROPS5 primary key (CMID)
  547. )
  548. create index IDX_REQEXECTIME on CMOBJPROPS5(REQEXECTIME)
  549. create table CMOBJPROPS50 (
  550. CMID integer not null,
  551. CONTEXT blob(1G),
  552. CONTEXTCOUNT integer,
  553. LASTPAGE varchar(512),
  554. DATADESCRIPTOR clob(16K),
  555. METADATA blob(10M),
  556. constraint PK_CMOBJPROPS50 primary key (CMID)
  557. )
  558. create table CMOBJPROPS51 (
  559. CMID integer not null ,
  560. SERVERGROUP varchar (512),
  561. RUNASOWNER decimal(1,0),
  562. CANBURST decimal(1,0),
  563. SCHEDTRIGNAME varchar(255),
  564. RUNWITHOWNERCAPS decimal(1,0),
  565. QUERYMODE clob(4000),
  566. RUNINADVANCEDVIEWER decimal(1,0),
  567. DSMODE varchar(3000),
  568. CONSTRAINT PK_CMOBJPROPS51 PRIMARY KEY (CMID)
  569. )
  570. CREATE TABLE CMOBJPROPS52 (
  571. CMID integer NOT NULL ,
  572. CONNECTSTR varchar (2048),
  573. ISOLEVEL smallint,
  574. QUALIFIER smallint,
  575. REPLACEMENT varchar (512),
  576. CLOSECONNECTCMD clob(1M),
  577. OPENCONNECTCMD clob(1M),
  578. CLOSESESSCMD clob(1M),
  579. OPENSESSCMD clob(1M),
  580. APITOKEN clob(1M),
  581. NOTIFYONCHANGE decimal(1,0),
  582. CONSTRAINT PK_CMOBJPROPS52 PRIMARY KEY (CMID)
  583. )
  584. CREATE TABLE CMOBJPROPS53 (
  585. CMID integer NOT NULL ,
  586. SEQUENCING smallint,
  587. CONSTRAINT PK_CMOBJPROPS53 PRIMARY KEY (CMID)
  588. )
  589. CREATE TABLE CMOBJPROPS54 (
  590. CMID integer NOT NULL ,
  591. FORMAT smallint,
  592. OLOCALEID smallint,
  593. CONSTRAINT PK_CMOBJPROPS54 PRIMARY KEY (CMID)
  594. )
  595. CREATE TABLE CMOBJPROPS55 (
  596. CMID integer not null,
  597. ICONURI varchar (2000),
  598. UCPOLICIES blob(1M),
  599. HIDDEN decimal(1,0) default 0 not null,
  600. CONSTRAINT PK_CMOBJPROPS55 PRIMARY KEY (CMID)
  601. )
  602. CREATE TABLE CMOBJPROPS56 (
  603. CMID integer not null,
  604. SPEC clob(1G),
  605. constraint PK_CMOBJPROPS56 primary key (CMID)
  606. )
  607. CREATE TABLE CMOBJPROPS57 (
  608. CMID integer not null,
  609. SPEC clob(1G),
  610. constraint PK_CMOBJPROPS57 primary key (CMID)
  611. )
  612. CREATE TABLE CMOBJPROPS58 (
  613. CMID integer not null,
  614. PDSELISTAXSCACHE integer,
  615. PDSSHOWCELLANN decimal(1,0),
  616. PDSMAXPROCS integer,
  617. PPSHIAFFINECONS integer,
  618. PPSAFFINECONS integer,
  619. PPSAUDITLEVEL smallint,
  620. PPSQUEUELIMIT integer,
  621. PPSEXECTIMELIMIT integer,
  622. BRSPDFCHARENC smallint,
  623. BRSPDFCOMPRSLVL integer,
  624. BRSPDFCOMPRSTYPE smallint,
  625. BRSPDFEMBEDFONTS smallint,
  626. RSPDFCHARENC smallint,
  627. RSPDFCOMPRSLVL integer,
  628. RSPDFCOMPRSTYPE smallint,
  629. RSPDFEMBEDFONTS smallint,
  630. DMSAFFINECONNECTIONS integer,
  631. DMSEXECUTIONTIMELIMIT integer,
  632. DMSMAXPROCESSES integer,
  633. DMSNONAFFINECONNCTS integer,
  634. DMSPEAKMAXPROCESSES integer,
  635. DMSPEAKNONAFFINECONNCTS integer,
  636. DMSQUEUELIMIT integer,
  637. PERDOCVERSRETAGE varchar (50),
  638. PERDOCVERSRETCOUNT integer,
  639. EDITION varchar(20),
  640. EDITIONS blob(10M),
  641. DIMSAFFINECONNECTIONS integer,
  642. DIMSEXECUTIONTIMELIMIT integer,
  643. DIMSMAXPROCESSES integer,
  644. DIMSQUEUELIMIT integer,
  645. GLOSSARYURI clob (4000),
  646. GSAFFINECONNECTIONS integer,
  647. GSEXECUTIONTIMELIMIT integer,
  648. GSMAXPROCESSES integer,
  649. GSNONAFFINECONNCTS integer,
  650. GSPEAKMAXPROCESSES integer,
  651. GSPEAKNONAFFINECONNCTS integer,
  652. GSQUEUELIMIT integer,
  653. GSPEAKCONS integer,
  654. AASAFFINECONNECTIONS integer,
  655. AASEXECUTIONTIMELIMIT integer,
  656. AASMAXPROCESSES integer,
  657. HTSCOMPTASKLIFE varchar (50),
  658. CMCSHEAPLIM integer,
  659. ANSANNOTATIONLIFE varchar (50),
  660. constraint PK_CMOBJPROPS58 primary key (CMID)
  661. )
  662. create table CMOBJPROPS59 (
  663. CMID integer not null,
  664. CONFIGURATION clob (1M),
  665. USERINTERFACE smallint,
  666. CONSTRAINT PK_CMOBJPROPS59 PRIMARY KEY (CMID)
  667. )
  668. create table CMOBJPROPS6 (
  669. CMID integer not null,
  670. URI clob (4000),
  671. TARGET clob (4000),
  672. STEPOBJECT clob (4000),
  673. BASE clob (4000),
  674. CREDENTIAL clob (4000),
  675. DISPATCHERPATH varchar (3220),
  676. PAGE clob (4000),
  677. CREDNAMESPACES clob (4000),
  678. constraint PK_CMOBJPROPS6 primary key (CMID)
  679. )
  680. create table CMOBJPROPS60 (
  681. CMID integer not null,
  682. CONTEXT blob(1G),
  683. CONTEXTCOUNT integer,
  684. LASTPAGE varchar(512),
  685. constraint PK_CMOBJPROPS60 primary key (CMID)
  686. )
  687. create table CMOBJPROPS61 (
  688. CMID integer not null,
  689. BURSTKEY varchar (3982),
  690. constraint PK_CMOBJPROPS61 primary key (CMID)
  691. )
  692. create table CMOBJPROPS62 (
  693. CMID integer not null,
  694. EXPIRATION timestamp,
  695. ALLOWANNOTATION decimal(1,0),
  696. constraint PK_CMOBJPROPS62 primary key (CMID)
  697. )
  698. create index IDX_EXPIRATION_62 on CMOBJPROPS62(EXPIRATION)
  699. CREATE TABLE CMOBJPROPS63 (
  700. CMID integer not null,
  701. SPEC clob(1G),
  702. constraint PK_CMOBJPROPS63 primary key (CMID)
  703. )
  704. CREATE TABLE CMOBJPROPS64 (
  705. CMID integer NOT NULL ,
  706. CONTENTTYPE varchar (256),
  707. DATASIZE bigint,
  708. DATACOMP decimal(1,0) default 0 not null,
  709. DATAPROP blob(1G),
  710. constraint PK_CMOBJPROPS64 primary key (CMID)
  711. )
  712. CREATE TABLE CMOBJPROPS65 (
  713. CMID integer not null,
  714. BURSTID varchar (3869),
  715. BURSTIDINDEX character (44),
  716. constraint PK_CMOBJPROPS65 primary key (CMID)
  717. )
  718. CREATE INDEX IDX_BURSTIDINDEX ON CMOBJPROPS65(BURSTIDINDEX)
  719. CREATE TABLE CMOBJPROPS66 (
  720. CMID integer not null,
  721. DEFPORTACT smallint,
  722. SPEC clob(1G),
  723. POWERPLAY8CONFIGURATION clob(1M),
  724. constraint PK_CMOBJPROPS66 primary key (CMID)
  725. )
  726. CREATE TABLE CMOBJPROPS67 (
  727. CMID integer not null,
  728. NONPEAKDEMANDBGNH integer,
  729. PEAKDEMANDBEGINH integer,
  730. ASPEAKCONS integer,
  731. BRSPEAKAFFINECONS integer,
  732. BRSPEAKMAXPROCS integer,
  733. BRSPEAKNONAFFCONS integer,
  734. CMSPEAKCONS integer,
  735. DDSPEAKCONS integer,
  736. DISPEAKCONS integer,
  737. DMSPEAKCONS integer,
  738. DSPEAKCONS integer,
  739. IDSPEAKCONS integer,
  740. ISSPEAKCONS integer,
  741. IUSPEAKCONS integer,
  742. JSPEAKCONS integer,
  743. MBSPEAKCONS integer,
  744. MISPEAKCONS integer,
  745. MMSPEAKCONS integer,
  746. PACSPEAKCONS integer,
  747. PDSPEAKCONS integer,
  748. PDSPEAKMAXPROCS integer,
  749. PPSPEAKAFFINECONS integer,
  750. PPSPEAKNONAFFCONS integer,
  751. PRSPEAKCONS integer,
  752. PTSPEAKCONS integer,
  753. RSPEAKAFFINECONS integer,
  754. RSPEAKMAXPROCS integer,
  755. RSPEAKNONAFFCONS integer,
  756. DIMSNONAFFINECONNCTS integer,
  757. DIMSPEAKCONS integer,
  758. DIMSPEAKMAXPROCS integer,
  759. DIMSPEAKNONAFFINECONNCTS integer,
  760. TEMPOBJLOCATION smallint,
  761. TEMPOBJLIFETIME varchar (50),
  762. AASNONAFFINECONNCTS integer,
  763. AASPEAKCONS integer,
  764. AASPEAKMAXPROCS integer,
  765. AASPEAKNONAFFINECONNCTS integer,
  766. STSAFFCONS integer,
  767. STSEXECLMT integer,
  768. STSCMAXPROCS integer,
  769. STSNONAFFCONS integer,
  770. STSPEAKAFFCONS integer,
  771. STSPEAKMAXPROCS integer,
  772. STSPEAKNONAFFCONS integer,
  773. OVERRIDEOPTS clob(1M),
  774. SERVRDEFOPTS clob(1M),
  775. STSQUEUELIM integer,
  776. COLLABDISCURI clob(4000),
  777. BRSMAXATTACHSIZE integer,
  778. DSMAXATTACHSIZE integer,
  779. RSMAXATTACHSIZE integer,
  780. ASMAXATTACHSIZE integer,
  781. PPSMAXATTACHSIZE integer,
  782. QSIDLECONTIMEOUT integer,
  783. QSDUMPMODEL decimal(1,0),
  784. QSDISPLAN decimal(1,0),
  785. ACTIVEJMXPROXYURI clob(4000),
  786. QSADDJVMARG varchar (2048),
  787. QSINITJVMHEAP integer,
  788. QSMANCUBESTRT decimal(1,0),
  789. QSMAXJVMHEAP integer,
  790. QSROLAPCUBECONF blob(1M),
  791. QSROLAPCADMINCT integer,
  792. QSRSETQUERYTHRES integer,
  793. COOKIECAMPASSHTTP decimal(1,0),
  794. constraint PK_CMOBJPROPS67 primary key (CMID)
  795. )
  796. CREATE TABLE CMOBJPROPS68 (
  797. CMID integer not null,
  798. SPEC clob(1G),
  799. constraint PK_CMOBJPROPS68 primary key (CMID)
  800. )
  801. create table CMOBJPROPS69 (
  802. CMID integer not null,
  803. ORD integer not null,
  804. PARMNAME varchar(512) not null,
  805. CPARMVALUE blob(1G),
  806. constraint PK_CMOBJPROPS69 primary key (CMID, ORD)
  807. )
  808. create table CMOBJPROPS7 (
  809. CMID integer not null,
  810. EXECERROR clob(1G),
  811. CONFIGURATION clob(1G),
  812. PORTALPREFS clob(1G),
  813. CCREDENTIALS clob(1G),
  814. CMODEL blob(1G),
  815. SRC clob(1G),
  816. SPEC clob(1G),
  817. STATE clob(1G),
  818. GOVERNORS clob(1G),
  819. NAMESPFORMAT clob (4000),
  820. constraint PK_CMOBJPROPS7 primary key (CMID)
  821. )
  822. create table CMOBJPROPS70 (
  823. CMID integer not null,
  824. CONTEXT clob(64K),
  825. DEPLOYREFS clob(1M),
  826. constraint PK_CMOBJPROPS70 primary key (CMID)
  827. )
  828. create table CMOBJPROPS71 (
  829. CMID integer not null,
  830. CONTEXT clob(64K),
  831. DEPLOYREFS clob(1M),
  832. constraint PK_CMOBJPROPS71 primary key (CMID)
  833. )
  834. create table CMOBJPROPS72 (
  835. CMID integer not null,
  836. CONTEXT clob(64K),
  837. constraint PK_CMOBJPROPS72 primary key (CMID)
  838. )
  839. CREATE TABLE CMOBJPROPS73 (
  840. CMID integer not null,
  841. ALIASROOT varchar (512),
  842. URI clob (4000),
  843. UNIXURI clob (4000),
  844. WINDOWSURI clob (4000),
  845. CONSTRAINT PK_CMOBJPROPS73 PRIMARY KEY (CMID)
  846. )
  847. CREATE TABLE CMOBJPROPS74 (
  848. CMID integer not null,
  849. DEPLOYREFS clob(1M),
  850. LAUNCHTYPE varchar (512),
  851. SPEC blob(1G),
  852. CONSTRAINT PK_CMOBJPROPS74 PRIMARY KEY (CMID)
  853. )
  854. create index IDX_CMLAUNCHTYPE on CMOBJPROPS74(LAUNCHTYPE)
  855. CREATE TABLE CMOBJPROPS75 (
  856. CMID integer not null,
  857. RESOURCETYPE varchar (512),
  858. SPEC blob(1G),
  859. CONSTRAINT PK_CMOBJPROPS75 PRIMARY KEY (CMID)
  860. )
  861. create index IDX_RESOURCETYPE on CMOBJPROPS75(RESOURCETYPE)
  862. CREATE TABLE CMOBJPROPS76 (
  863. CMID integer not null,
  864. CONTENTTYPE varchar (512),
  865. CONSTRAINT PK_CMOBJPROPS76 PRIMARY KEY (CMID)
  866. )
  867. CREATE TABLE CMOBJPROPS77 (
  868. CMID integer NOT NULL ,
  869. DSCONNECTIONNAME varchar (512),
  870. DSNAME varchar (512),
  871. CONSTRAINT PK_CMOBJPROPS77 PRIMARY KEY (CMID)
  872. )
  873. create table CMOBJPROPS78 (
  874. CMID integer not null,
  875. BINDINGNAME varchar (512),
  876. INPUTMESSNAME varchar (512),
  877. OPERATIONNAME varchar (512),
  878. OUTPUTMESSNAME varchar (512),
  879. SERVICENAME varchar (512),
  880. BULKEVENTS decimal(1,0),
  881. URI clob (4000),
  882. constraint PK_CMOBJPROPS78 primary key (CMID)
  883. )
  884. CREATE TABLE CMOBJPROPS79 (
  885. CMID integer not null,
  886. PUBLISHED decimal(1,0),
  887. SPEC clob(1M),
  888. CONSTRAINT PK_CMOBJPROPS79 PRIMARY KEY (CMID)
  889. )
  890. create table CMOBJPROPS80 (
  891. CMID integer not null,
  892. REPOSITORYRULES clob(1G),
  893. NSCAPS clob(4000),
  894. CONSTRAINT PK_CMOBJPROPS80 PRIMARY KEY (CMID)
  895. )
  896. create table CMOBJPROPS81 (
  897. CMID integer not null,
  898. AGGREGATES clob(1M),
  899. CONSTRAINT PK_CMOBJPROPS81 PRIMARY KEY (CMID)
  900. )
  901. create table CMOBJPROPS82 (
  902. CMID integer not null,
  903. BPMRESTURI clob (4000),
  904. CONSTRAINT PK_CMOBJPROPS82 PRIMARY KEY (CMID)
  905. )
  906. create table CMOBJPROPS83 (
  907. CMID integer not null,
  908. MOBILECONFIG blob(4000),
  909. CONSTRAINT PK_CMOBJPROPS83 PRIMARY KEY (CMID)
  910. )
  911. create table CMOBJPROPS84 (
  912. CMID integer not null,
  913. SPEC clob(1M),
  914. DATASIZE bigint,
  915. DATAMODTIME timestamp,
  916. CONSTRAINT PK_CMOBJPROPS84 PRIMARY KEY (CMID)
  917. )
  918. create table CMOBJPROPS85 (
  919. CMID integer not null,
  920. DATA clob(50M),
  921. DEPLOYREFS clob(1M),
  922. OBJREFS clob(1M),
  923. BIVARS clob(50M),
  924. EMBEDDING clob(50M),
  925. STATUS clob(50M),
  926. USAGETRACKMODEL clob(1M),
  927. CONSTRAINT PK_CMOBJPROPS85 PRIMARY KEY (CMID)
  928. )
  929. CREATE TABLE CMOBJPROPS86 (
  930. CMID integer not null,
  931. KSCHEMA varchar (512),
  932. KCATALOG varchar (512),
  933. CPHYSDEF clob(10M),
  934. CPHYSANAL clob(10M),
  935. CBASEDEF clob(10M),
  936. CBASEOVER clob(10M),
  937. CBASEANAL clob(10M),
  938. STATUSID smallint,
  939. SNAPSHOT clob(1M),
  940. HISTORY clob(10M),
  941. SNAPSHOTENBL decimal(1,0),
  942. DEPLOYREFS clob(1M),
  943. ALIASROOT varchar (512),
  944. CONSTRAINT PK_CMOBJPROPS86 PRIMARY KEY (CMID)
  945. )
  946. create table CMOBJPROPS87 (
  947. CMID integer not null,
  948. EXT clob(100M),
  949. CONSTRAINT PK_CMOBJPROPS87 PRIMARY KEY (CMID)
  950. )
  951. create table CMOBJPROPS88 (
  952. CMID integer not null,
  953. SCHEMATYPE varchar (256),
  954. STATUS varchar (256),
  955. STATUSINFO clob(10M),
  956. CONSTRAINT PK_CMOBJPROPS88 PRIMARY KEY (CMID)
  957. )
  958. create table CMOBJPROPS89 (
  959. CMID integer not null,
  960. DOCTYPE varchar(64) not null,
  961. DOCID varchar(64) not null,
  962. CONTENT clob(10M),
  963. CONSTRAINT PK_CMOBJPROPS89 PRIMARY KEY (CMID)
  964. )
  965. create index IDX_CMPROPS89_1 on CMOBJPROPS89(DOCID)
  966. create table CMOBJPROPS9 (
  967. CMID integer not null,
  968. ASOFTIME timestamp,
  969. CANBURST decimal(1,0),
  970. constraint PK_CMOBJPROPS9 primary key (CMID)
  971. )
  972. create table CMOBJPROPS90 (
  973. CMID integer not null,
  974. SPEC clob(1M),
  975. CONSTRAINT PK_CMOBJPROPS90 PRIMARY KEY (CMID)
  976. )
  977. create table CMOBJPROPS91 (
  978. CMID integer not null,
  979. SKDATA clob(1M),
  980. CONSTRAINT PK_CMOBJPROPS91 PRIMARY KEY (CMID)
  981. )
  982. CREATE TABLE CMOBJPROPS92 (
  983. CMID integer not null,
  984. CONTYPE varchar(64),
  985. URI clob(4000),
  986. SPEC clob(64k),
  987. CONSTRAINT PK_CMOBJPROPS92 PRIMARY KEY (CMID)
  988. )
  989. CREATE TABLE CMOBJPROPS93 (
  990. CMID integer not null,
  991. PROGRESS varchar(1024),
  992. JOBID varchar(64),
  993. STATE varchar(64),
  994. CONFIGURATION clob(2M),
  995. CONSTRAINT PK_CMOBJPROPS93 PRIMARY KEY (CMID)
  996. )
  997. CREATE TABLE CMTAGS (
  998. CMID integer not null,
  999. ORD integer not null,
  1000. TAG varchar(256),
  1001. constraint PK_CMTAGS primary key (CMID,ORD)
  1002. )
  1003. create index IDX_CMTAGS on CMTAGS(CMID, TAG)
  1004. create table CMPOLICIES (
  1005. CMID integer not null,
  1006. POLICIES blob(1M),
  1007. constraint PK_CMPOLICIES primary key (CMID)
  1008. )
  1009. create table CMVIEWED (
  1010. CMID integer not null,
  1011. OBJID clob (4000) default '-',
  1012. VIEWED decimal(1,0) default 0,
  1013. constraint PK_CMVIEWED primary key (CMID)
  1014. )
  1015. create table CMPROPERTIES (
  1016. PROPID smallint NOT NULL,
  1017. NAME varchar(50) NOT NULL,
  1018. DEF blob(10K),
  1019. constraint PK_CMPROPERTIES primary key(PROPID)
  1020. )
  1021. create table CMCLASSES (
  1022. CLASSID integer NOT NULL,
  1023. NAME varchar(50) NOT NULL,
  1024. USAGE smallint,
  1025. DEF blob(100K),
  1026. constraint PK_CMCLASSES primary key(CLASSID)
  1027. )
  1028. create table CMLOCALES (
  1029. LOCALEID smallint not null,
  1030. MAPDLOCALEID smallint not null,
  1031. LOCALE varchar(20) not null,
  1032. constraint PK_CMLOCALES primary key (LOCALEID)
  1033. )
  1034. create table CMGUIDS (
  1035. CMID integer not null ,
  1036. GUID varchar(50),
  1037. constraint PK_CMGUIDS primary key (CMID)
  1038. )
  1039. create trigger CMGUIDS_TR
  1040. no cascade before insert on CMGUIDS
  1041. referencing new as NG
  1042. for each row mode db2sql
  1043. set NG.GUID = VARCHAR( TIMESTAMP( GENERATE_UNIQUE() ) )
  1044. CREATE TABLE CMREFNOORD1 (
  1045. PROPID smallint NOT NULL,
  1046. CMID integer not null ,
  1047. REFCMID integer not null ,
  1048. constraint PK_CMREFNOORD1 primary key (CMID, PROPID) )
  1049. create index IDX_CMREFNOORD1 on CMREFNOORD1(REFCMID, PROPID)
  1050. CREATE TABLE CMREFNOORD2 (
  1051. CMID integer not null ,
  1052. REFCMID integer not null ,
  1053. constraint PK_CMREFNOORD2 primary key (CMID) )
  1054. create index IDX_CMREFNOORD2 on CMREFNOORD2(REFCMID)
  1055. CREATE TABLE CMREFORD1 (
  1056. PROPID smallint NOT NULL,
  1057. CMID integer not null ,
  1058. ORD integer NOT NULL,
  1059. REFCMID integer not null ,
  1060. constraint PK_CMREFORD1 primary key (CMID, PROPID, ORD) )
  1061. create index IDX_CMREFORD1 on CMREFORD1(REFCMID, PROPID, ORD)
  1062. CREATE TABLE CMREFORD2 (
  1063. CMID integer not null ,
  1064. ORD integer NOT NULL,
  1065. REFCMID integer not null ,
  1066. constraint PK_CMREFORD2 primary key (CMID, ORD) )
  1067. create index IDX_CMREFORD2 on CMREFORD2(REFCMID, ORD)
  1068. create view CMOWNERCOUNT(OBJID, OWN_NUMBER) as
  1069. SELECT p2.OBJID, count(o.CMID)
  1070. FROM CMOBJECTS o left outer join CMREFNOORD2 p1 on p1.CMID = o.CMID
  1071. left outer join CMOBJPROPS1 p2 on p1.REFCMID = p2.CMID
  1072. GROUP BY p2.OBJID
  1073. CREATE TABLE CMDATAUPGRADE (
  1074. PLUGINNAME varchar (255) NOT NULL ,
  1075. CI_PLUGINNAME varchar (255) NOT NULL ,
  1076. VERSION varchar (64) ,
  1077. CONSTRAINT PK_CMDATAUPGRADE PRIMARY KEY (CI_PLUGINNAME)
  1078. )
  1079. CREATE TABLE CMSIZEINFO (
  1080. STOREID varchar (255) NOT NULL,
  1081. CLASSID integer NOT NULL,
  1082. TOTALFORCLASSID integer NOT NULL,
  1083. TOTALCOUNT bigint ,
  1084. TOTALSIZE bigint ,
  1085. CONSTRAINT PK_CMSIZEINFO PRIMARY KEY (STOREID, TOTALFORCLASSID)
  1086. )
  1087. CREATE TABLE CMSPLIT (
  1088. CMID int not null,
  1089. TRANSACTIONID varchar(255) not null,
  1090. constraint PK_CMSPLIT primary key (CMID, TRANSACTIONID)
  1091. )
  1092. CREATE TABLE CMARCHIVEQUEUE (
  1093. OBJID VARCHAR(512) DEFAULT NULL,
  1094. ITEMID VARCHAR(255) NOT NULL,
  1095. QUEUEID VARCHAR(255) NOT NULL,
  1096. WORKFLOW VARCHAR(255) NOT NULL,
  1097. CONSUMERNAME VARCHAR(255) DEFAULT NULL,
  1098. STATE INTEGER,
  1099. INSERTIONTIME TIMESTAMP NOT NULL,
  1100. CONSTRAINT PK_CMARCHIVEQUEUE PRIMARY KEY (ITEMID)
  1101. )
  1102. CREATE TABLE CMDELETEQUEUE (
  1103. OBJID VARCHAR(512) DEFAULT NULL,
  1104. ITEMID VARCHAR(255) NOT NULL,
  1105. QUEUEID VARCHAR(255) NOT NULL,
  1106. WORKFLOW VARCHAR(255) NOT NULL,
  1107. CONSUMERNAME VARCHAR(255) DEFAULT NULL,
  1108. STATE INTEGER,
  1109. INSERTIONTIME TIMESTAMP NOT NULL,
  1110. CONSTRAINT PK_CMDELETEQUEUE PRIMARY KEY (ITEMID)
  1111. )
  1112. CREATE TABLE CMINDEXQUEUE (
  1113. OBJID VARCHAR(1024) DEFAULT NULL,
  1114. ITEMID VARCHAR(50) NOT NULL,
  1115. QUEUEID VARCHAR(50) NOT NULL,
  1116. WORKFLOW VARCHAR(50) NOT NULL,
  1117. CONSUMERNAME VARCHAR(50) DEFAULT NULL,
  1118. STATE INTEGER,
  1119. INSERTIONTIME TIMESTAMP NOT NULL,
  1120. INDEXACTION VARCHAR(50) NOT NULL,
  1121. INDEXCLASS VARCHAR(255) NOT NULL,
  1122. INDEXPROPS clob (10M),
  1123. CONSTRAINT PK_CMINDEXQUEUE PRIMARY KEY (ITEMID)
  1124. )
  1125. CREATE INDEX IDX_CMINDEXQUEUE on CMINDEXQUEUE(STATE, QUEUEID)
  1126. CREATE TABLE CMQUEUELOCK (
  1127. QUEUEID VARCHAR(255) NOT NULL,
  1128. CONSTRAINT PK_CMQUEUELOCK PRIMARY KEY (QUEUEID)
  1129. )
  1130. CREATE TABLE CMTENANTID (
  1131. TENANTID integer not null,
  1132. TENANTNAME varchar(255) not null,
  1133. CONSTRAINT PK_CMTENANTID PRIMARY KEY (TENANTID)
  1134. )
  1135. INSERT INTO CMTENANTID (TENANTID,TENANTNAME) VALUES (0,'')
  1136. insert into CMSYSPROPS (PROPNAME, CI_PROPNAME, PROPVALUE)
  1137. values ('CMStoreVersion', upper('CMStoreVersion'), '7.7003')