dbInitScript_informix.sql 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290
  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 datetime year to fraction not null,
  16. MODIFIED datetime year to fraction not null,
  17. DISABLED smallint,
  18. CLASSID integer not null,
  19. DISPSEQ integer default 0 not null,
  20. OWNER integer,
  21. TENANTID integer default 0 not null,
  22. primary key (CMID) constraint PK_CMOBJECTS,
  23. unique (PCMID, CMID) constraint PK_CMPARENT
  24. ) lock mode row;
  25. create index CMSCRIPT_CS_IDIDX_CLASS on CMOBJECTS(CLASSID);
  26. create index CMSCRIPT_CS_IDIDX_CLASS1 on CMOBJECTS(CMID, CLASSID);
  27. create index CMSCRIPT_CS_IDIDX_PARENT on CMOBJECTS(PCMID);
  28. create index CMSCRIPT_CS_IDIDX_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 lvarchar(255) not null,
  35. primary key (CMID, LOCALEID) constraint PK_CMOBJNAMES
  36. ) lock mode row;
  37. create table CMDATA (
  38. CMID integer NOT NULL ,
  39. CONTENTTYPE lvarchar (256),
  40. DATASIZE bigint,
  41. DATACOMP decimal(1,0) default 0 not null,
  42. DATAURI lvarchar(256),
  43. DATAPROP blob,
  44. RESOURCETYPE lvarchar (32),
  45. primary key (CMID) constraint PK_CMDATA
  46. ) lock mode row;
  47. CREATE TABLE CMARCHIVESTATUS (
  48. CMID integer NOT NULL,
  49. ARCHSTAT smallint default 0 not null,
  50. primary key (CMID) constraint PK_CMARCHIVESTATUS
  51. ) lock mode row;
  52. CREATE TABLE CMSTOREIDS (
  53. CMID integer NOT NULL,
  54. STOREID char(33),
  55. PRIMARY KEY (CMID) CONSTRAINT PK_CMSTOREIDS
  56. ) lock mode row;
  57. create table CMOBJPROPS1 (
  58. CMID integer not null,
  59. BUSPHONE lvarchar (32),
  60. COMMONNAME lvarchar (64),
  61. EMAIL lvarchar (128),
  62. FAXPHONE lvarchar (32),
  63. GIVENNAME lvarchar (128),
  64. HOMEPHONE lvarchar (32),
  65. MOBILEPHONE lvarchar (32),
  66. PAGERPHONE lvarchar (32),
  67. PADDRESS lvarchar (512),
  68. SURNAME lvarchar (128),
  69. TIMEZONE lvarchar (128),
  70. CLOCALEID smallint ,
  71. PRODLOCALE lvarchar (64),
  72. OBJID lvarchar (1024),
  73. USEACCESSIBILITY decimal(1,0) default 0,
  74. USERNAME lvarchar (128),
  75. ORIENTATION smallint,
  76. HORIZRENDERLIMIT integer,
  77. VERTRENDERLIMIT integer,
  78. MOBILEDEVID lvarchar (512),
  79. NOTIFICATIONEMAIL lvarchar (512),
  80. primary key (CMID) constraint PK_CMOBJPROPS1
  81. ) lock mode row;
  82. create table CMOBJPROPS10 (
  83. CMID integer not null ,
  84. CONTACTEMAIL lvarchar (128) ,
  85. CONTACT clob,
  86. primary key (CMID) constraint PK_CMOBJPROPS10
  87. ) lock mode row;
  88. create table CMOBJPROPS11 (
  89. CMID integer not null ,
  90. STATUSID smallint,
  91. EVENTID lvarchar(45),
  92. OWNEREVENTID lvarchar(45),
  93. DISPATCHERID lvarchar(50),
  94. MAXDETAILSEVTY smallint,
  95. SCHEDTRIGNAME lvarchar(512),
  96. SCHEDTYPE smallint,
  97. RESTARTEVENTID lvarchar(45),
  98. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS11
  99. ) lock mode row;
  100. create index CMSCRIPT_CS_IDIDX_CMOWNEREVENTID on CMOBJPROPS11(OWNEREVENTID);
  101. create index CMSCRIPT_CS_IDIDX_CMRESTARTID on CMOBJPROPS11(RESTARTEVENTID);
  102. create table CMOBJPROPS13 (
  103. CMID integer not null,
  104. ORD integer not null,
  105. PARMNAME lvarchar(512) not null,
  106. CPARMVALUE blob,
  107. primary key (CMID, ORD) constraint PK_CMOBJPROPS13
  108. ) lock mode row;
  109. create table CMOBJPROPS14 (
  110. CMID integer not null,
  111. RELATED clob,
  112. MYPAGE clob,
  113. RETENTION clob,
  114. RECIPSEMAIL clob,
  115. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS14
  116. ) lock mode row;
  117. create table CMOBJPROPS15 (
  118. CMID integer not null,
  119. BRSHIAFFINECONS integer,
  120. BRSAFFINECONS integer,
  121. BRSMAXPROCS integer,
  122. METADATAMODEL clob,
  123. BRSEXECTIMELIMIT integer,
  124. BRSDATASOURCECHG datetime year to fraction,
  125. primary key (CMID) constraint PK_CMOBJPROPS15
  126. ) lock mode row;
  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,
  135. RSEXECTIMELIMIT integer,
  136. ROUTINGTABLE blob,
  137. primary key (CMID) constraint PK_CMOBJPROPS16
  138. ) lock mode row;
  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 lvarchar(255),
  153. RESRCELOCATION lvarchar(255),
  154. primary key (CMID) constraint PK_CMOBJPROPS17
  155. ) lock mode row;
  156. create table CMOBJPROPS18 (
  157. CMID integer not null,
  158. OUTPUTREFS clob,
  159. PATHS clob,
  160. primary key (CMID) constraint PK_CMOBJPROPS18
  161. ) lock mode row;
  162. create table CMOBJPROPS2 (
  163. CMID integer not null,
  164. TASKID lvarchar(32),
  165. STARTDATE datetime year to fraction,
  166. ENDDATE datetime year to fraction,
  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 lvarchar (50),
  191. primary key (CMID) constraint PK_CMOBJPROPS2
  192. ) lock mode row;
  193. create index CMSCRIPT_CS_IDIDX_TASKID on CMOBJPROPS2(TASKID);
  194. create index CMSCRIPT_CS_IDIDX_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,
  205. primary key (CMID) constraint PK_CMOBJPROPS20
  206. ) lock mode row;
  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 lvarchar (256),
  215. primary key (CMID) constraint PK_CMOBJPROPS23
  216. ) lock mode row;
  217. create table CMOBJPROPS24 (
  218. CMID integer not null,
  219. LOCATION lvarchar(1024),
  220. MODELNAME lvarchar(512),
  221. PRINTERADDRESS lvarchar(2048),
  222. primary key (CMID) constraint PK_CMOBJPROPS24
  223. ) lock mode row;
  224. create table CMOBJPROPS25 (
  225. CMID integer not null,
  226. DEPLOYOBJECT clob,
  227. DEPLOYOBJANC clob,
  228. DEPLOYOBJCLASSID integer,
  229. DEPLOYOBJDEFNAME lvarchar(255),
  230. DEPLOYOBJDEFSTATUS smallint,
  231. DEPLOYOBJUSAGE smallint,
  232. MESSAGE blob,
  233. primary key (CMID) constraint PK_CMOBJPROPS25
  234. ) lock mode row;
  235. CREATE TABLE CMOBJPROPS26 (
  236. CMID integer not null,
  237. DELIVOPTIONS clob,
  238. primary key (CMID) constraint PK_CMOBJPROPS26
  239. ) lock mode row;
  240. CREATE TABLE CMOBJPROPS27 (
  241. CMID integer not null,
  242. CUBECONTNAME lvarchar (2048),
  243. GATEWAY lvarchar (1024),
  244. HASPROMPTS decimal(1,0) default 0 not null,
  245. PPOPTIONS clob ,
  246. DATABLOCKS blob,
  247. PPDEFPORTACT smallint,
  248. primary key (CMID) constraint PK_CMOBJPROPS27
  249. ) lock mode row;
  250. CREATE TABLE CMOBJPROPS28 (
  251. CMID integer not null,
  252. EVENTKEY clob ,
  253. EVENTTYPES clob ,
  254. FILTERDATAITEM lvarchar (512),
  255. PARMASSIGN blob,
  256. SEQUENCING smallint,
  257. ALLOWNOTIFICATION decimal(1,0),
  258. DEFPORTACTION smallint,
  259. RUNCOND smallint,
  260. SPEC clob,
  261. primary key (CMID) constraint PK_CMOBJPROPS28
  262. ) lock mode row;
  263. create table CMOBJPROPS3 (
  264. CMID integer not null,
  265. PROPNAME lvarchar(50) not null,
  266. LOCALEID smallint not null,
  267. VALUE lvarchar (3700),
  268. ISDEFAULT decimal(1,0),
  269. MAPDLOCALEID smallint,
  270. primary key (CMID, PROPNAME, LOCALEID) constraint PK_CMOBJPROPS3
  271. ) lock mode row;
  272. create table CMOBJPROPS30 (
  273. CMID integer not null,
  274. HANDLE lvarchar(255),
  275. BINDING clob,
  276. REGISTRATION clob,
  277. SERVICEDESCR clob,
  278. LAYOUT clob,
  279. REQUIREDCAP clob,
  280. CANCUSTOMIZE decimal(1,0),
  281. CONTEXT clob,
  282. DEPLOYREFS clob,
  283. primary key (CMID) constraint PK_CMOBJPROPS30
  284. ) lock mode row;
  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 datetime year to fraction,
  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,
  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. primary key (CMID) constraint PK_CMOBJPROPS31
  344. ) lock mode row;
  345. create table CMOBJPROPS32 (
  346. CMID integer not null,
  347. STOREDPROCNAME lvarchar(255),
  348. primary key (CMID) constraint PK_CMOBJPROPS32
  349. ) lock mode row;
  350. create table CMOBJPROPS33 (
  351. CMID integer not null,
  352. NAME lvarchar(255),
  353. USERID lvarchar(1024),
  354. LASTLOGIN datetime year to fraction,
  355. CAPABILITIES lvarchar(64),
  356. LICENSE smallint,
  357. primary key (CMID) constraint PK_CMOBJPROPS33
  358. ) lock mode row;
  359. create table CMOBJPROPS34 (
  360. CMID integer not null,
  361. ACTION smallint,
  362. BOOKMARKITEM lvarchar(255),
  363. BOOKMARKTEXT lvarchar(255),
  364. DRILLPARMASSIGN blob,
  365. SCOPE blob,
  366. SPEC clob,
  367. TARGETOPTIONS clob,
  368. DEPLOYREFS clob,
  369. primary key (CMID) constraint PK_CMOBJPROPS34
  370. ) lock mode row;
  371. create table CMOBJPROPS35 (
  372. CMID integer not null,
  373. BINDINGNAME lvarchar (512),
  374. INPUTMESSNAME lvarchar (512),
  375. OPERATIONNAME lvarchar (512),
  376. OUTPUTMESSNAME lvarchar (512),
  377. SERVICENAME lvarchar (512),
  378. BULKEVENTS decimal(1,0),
  379. primary key (CMID) constraint PK_CMOBJPROPS35
  380. ) lock mode row;
  381. create table CMOBJPROPS36 (
  382. CMID integer not null,
  383. ACTION smallint,
  384. primary key (CMID) constraint PK_CMOBJPROPS36
  385. ) lock mode row;
  386. create table CMOBJPROPS37 (
  387. CMID integer not null,
  388. ROUTINGHINTS clob,
  389. PROFILESETTINGS clob,
  390. PROFILERANK integer default 0 NOT NULL,
  391. primary key (CMID) constraint PK_CMOBJPROPS37
  392. ) lock mode row;
  393. create table CMOBJPROPS38 (
  394. CMID integer not null,
  395. CTITEMCOUNTDEFAULT integer,
  396. CTITEMCOUNTLIMIT integer,
  397. MBRITEMCOUNTDEFAULT integer,
  398. MBRITEMCOUNTLIMIT integer,
  399. primary key (CMID) constraint PK_CMOBJPROPS38
  400. ) lock mode row;
  401. CREATE TABLE CMOBJPROPS39 (
  402. PROPID smallint NOT NULL,
  403. CMID integer not null ,
  404. VALUE smallint NOT NULL
  405. ) lock mode row;
  406. create index CMSCRIPT_CS_IDIDX_CMOBJPROPS39 on CMOBJPROPS39 (CMID);
  407. create table CMOBJPROPS4 (
  408. CMID integer not null,
  409. HEIGHT lvarchar(20),
  410. WIDTH lvarchar(20),
  411. UNIT smallint,
  412. primary key (CMID) constraint PK_CMOBJPROPS4
  413. ) lock mode row;
  414. CREATE TABLE CMOBJPROPS40 (
  415. CMID integer not null,
  416. APPGUID lvarchar(50),
  417. APPID lvarchar (512),
  418. APPSTATE smallint,
  419. APPURL clob ,
  420. primary key (CMID) constraint PK_CMOBJPROPS40
  421. ) lock mode row;
  422. CREATE TABLE CMOBJPROPS41 (
  423. CMID integer not null,
  424. DEPTH integer,
  425. ITEMID lvarchar (512),
  426. PARENTID lvarchar (512),
  427. primary key (CMID) CONSTRAINT PK_CMOBJPROPS41
  428. ) lock mode row;
  429. CREATE TABLE CMOBJPROPS42 (
  430. CMID integer not null,
  431. SPEC clob,
  432. primary key (CMID) constraint PK_CMOBJPROPS42
  433. ) lock mode row;
  434. CREATE TABLE CMOBJPROPS43 (
  435. CMID integer not null,
  436. SPEC clob,
  437. primary key (CMID) constraint PK_CMOBJPROPS43
  438. ) lock mode row;
  439. CREATE TABLE CMOBJPROPS44 (
  440. CMID integer not null,
  441. RDSGATEWMAPPING blob,
  442. primary key (CMID) CONSTRAINT PK_CMOBJPROPS44
  443. ) lock mode row;
  444. create table CMOBJPROPS45 (
  445. CMID integer not null,
  446. LINK smallint,
  447. primary key (CMID) constraint PK_CMOBJPROPS45
  448. ) lock mode row;
  449. CREATE TABLE CMOBJPROPS46 (
  450. CMID integer not null,
  451. DOCTYPE lvarchar (512),
  452. primary key (CMID) constraint PK_CMOBJPROPS46
  453. ) lock mode row;
  454. CREATE TABLE CMOBJPROPS47 (
  455. CMID integer not null,
  456. SYSTEMMETRIC smallint,
  457. PROPERTIES blob,
  458. primary key (CMID) constraint PK_CMOBJPROPS47
  459. ) lock mode row;
  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. primary key (CMID) constraint PK_CMOBJPROPS48
  529. ) lock mode row;
  530. CREATE TABLE CMOBJPROPS49 (
  531. CMID integer not null,
  532. URI clob ,
  533. primary key (CMID) constraint PK_CMOBJPROPS49
  534. ) lock mode row;
  535. create table CMOBJPROPS5 (
  536. CMID integer not null,
  537. ACTEXECTIME datetime year to fraction,
  538. ACTCOMPTIME datetime year to fraction,
  539. REQEXECTIME datetime year to fraction,
  540. USERREF clob,
  541. DETAILTIME datetime year to fraction,
  542. DETAIL clob,
  543. SEVERITY smallint,
  544. DETAILTYPE lvarchar(64),
  545. INFO clob,
  546. primary key (CMID) constraint PK_CMOBJPROPS5
  547. ) lock mode row;
  548. create index CMSCRIPT_CS_IDIDX_REQEXECTIME on CMOBJPROPS5(REQEXECTIME);
  549. create table CMOBJPROPS50 (
  550. CMID integer not null,
  551. CONTEXT blob,
  552. CONTEXTCOUNT integer,
  553. LASTPAGE lvarchar(512),
  554. DATADESCRIPTOR clob,
  555. METADATA blob,
  556. primary key (CMID) constraint PK_CMOBJPROPS50
  557. ) lock mode row;
  558. create table CMOBJPROPS51 (
  559. CMID integer not null ,
  560. SERVERGROUP lvarchar (512),
  561. RUNASOWNER decimal(1,0),
  562. CANBURST decimal(1,0),
  563. SCHEDTRIGNAME lvarchar(255),
  564. RUNWITHOWNERCAPS decimal(1,0),
  565. QUERYMODE clob,
  566. RUNINADVANCEDVIEWER decimal(1,0),
  567. DSMODE lvarchar(4000),
  568. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS51
  569. ) lock mode row;
  570. CREATE TABLE CMOBJPROPS52 (
  571. CMID integer NOT NULL ,
  572. CONNECTSTR lvarchar (2048),
  573. ISOLEVEL smallint,
  574. QUALIFIER smallint,
  575. REPLACEMENT lvarchar (512),
  576. CLOSECONNECTCMD clob,
  577. OPENCONNECTCMD clob,
  578. CLOSESESSCMD clob,
  579. OPENSESSCMD clob,
  580. APITOKEN clob,
  581. NOTIFYONCHANGE decimal(1,0),
  582. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS52
  583. ) lock mode row;
  584. CREATE TABLE CMOBJPROPS53 (
  585. CMID integer NOT NULL ,
  586. SEQUENCING smallint,
  587. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS53
  588. ) lock mode row;
  589. CREATE TABLE CMOBJPROPS54 (
  590. CMID integer NOT NULL ,
  591. FORMAT smallint,
  592. OLOCALEID smallint,
  593. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS54
  594. ) lock mode row;
  595. CREATE TABLE CMOBJPROPS55 (
  596. CMID integer not null,
  597. ICONURI lvarchar (2000),
  598. UCPOLICIES blob,
  599. HIDDEN decimal(1,0) default 0 not null,
  600. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS55
  601. ) lock mode row;
  602. CREATE TABLE CMOBJPROPS56 (
  603. CMID integer not null,
  604. SPEC clob,
  605. primary key (CMID) constraint PK_CMOBJPROPS56
  606. ) lock mode row;
  607. CREATE TABLE CMOBJPROPS57 (
  608. CMID integer not null,
  609. SPEC clob,
  610. primary key (CMID) constraint PK_CMOBJPROPS57
  611. ) lock mode row;
  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 lvarchar (50),
  638. PERDOCVERSRETCOUNT integer,
  639. EDITION lvarchar(20),
  640. EDITIONS blob,
  641. DIMSAFFINECONNECTIONS integer,
  642. DIMSEXECUTIONTIMELIMIT integer,
  643. DIMSMAXPROCESSES integer,
  644. DIMSQUEUELIMIT integer,
  645. GLOSSARYURI clob ,
  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 lvarchar (50),
  658. CMCSHEAPLIM integer,
  659. ANSANNOTATIONLIFE lvarchar (50),
  660. primary key (CMID) constraint PK_CMOBJPROPS58
  661. ) lock mode row;
  662. create table CMOBJPROPS59 (
  663. CMID integer not null,
  664. CONFIGURATION clob ,
  665. USERINTERFACE smallint,
  666. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS59
  667. ) lock mode row;
  668. create table CMOBJPROPS6 (
  669. CMID integer not null,
  670. URI clob ,
  671. TARGET clob ,
  672. STEPOBJECT clob ,
  673. BASE clob ,
  674. CREDENTIAL clob ,
  675. DISPATCHERPATH lvarchar (3220),
  676. PAGE clob ,
  677. CREDNAMESPACES clob ,
  678. primary key (CMID) constraint PK_CMOBJPROPS6
  679. ) lock mode row;
  680. create table CMOBJPROPS60 (
  681. CMID integer not null,
  682. CONTEXT blob,
  683. CONTEXTCOUNT integer,
  684. LASTPAGE lvarchar(512),
  685. primary key (CMID) constraint PK_CMOBJPROPS60
  686. ) lock mode row;
  687. create table CMOBJPROPS61 (
  688. CMID integer not null,
  689. BURSTKEY lvarchar (3982),
  690. primary key (CMID) constraint PK_CMOBJPROPS61
  691. ) lock mode row;
  692. create table CMOBJPROPS62 (
  693. CMID integer not null,
  694. EXPIRATION datetime year to fraction,
  695. ALLOWANNOTATION decimal(1,0),
  696. primary key (CMID) constraint PK_CMOBJPROPS62
  697. ) lock mode row;
  698. create index CMSCRIPT_CS_IDIDX_EXPIRATION_62 on CMOBJPROPS62(EXPIRATION);
  699. CREATE TABLE CMOBJPROPS63 (
  700. CMID integer not null,
  701. SPEC clob,
  702. primary key (CMID) constraint PK_CMOBJPROPS63
  703. ) lock mode row;
  704. CREATE TABLE CMOBJPROPS64 (
  705. CMID integer NOT NULL ,
  706. CONTENTTYPE lvarchar (256),
  707. DATASIZE bigint,
  708. DATACOMP decimal(1,0) default 0 not null,
  709. DATAPROP blob,
  710. primary key (CMID) constraint PK_CMOBJPROPS64
  711. ) lock mode row;
  712. CREATE TABLE CMOBJPROPS65 (
  713. CMID integer not null,
  714. BURSTID lvarchar (3869),
  715. BURSTIDINDEX character (44),
  716. primary key (CMID) constraint PK_CMOBJPROPS65
  717. ) lock mode row;
  718. CREATE INDEX CMSCRIPT_CS_IDIDX_BURSTIDINDEX ON CMOBJPROPS65(BURSTIDINDEX);
  719. CREATE TABLE CMOBJPROPS66 (
  720. CMID integer not null,
  721. DEFPORTACT smallint,
  722. SPEC clob,
  723. POWERPLAY8CONFIGURATION clob,
  724. primary key (CMID) constraint PK_CMOBJPROPS66
  725. ) lock mode row;
  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 lvarchar (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,
  774. SERVRDEFOPTS clob,
  775. STSQUEUELIM integer,
  776. COLLABDISCURI clob,
  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,
  786. QSADDJVMARG lvarchar (2048),
  787. QSINITJVMHEAP integer,
  788. QSMANCUBESTRT decimal(1,0),
  789. QSMAXJVMHEAP integer,
  790. QSROLAPCUBECONF blob,
  791. QSROLAPCADMINCT integer,
  792. QSRSETQUERYTHRES integer,
  793. COOKIECAMPASSHTTP decimal(1,0),
  794. primary key (CMID) constraint PK_CMOBJPROPS67
  795. ) lock mode row;
  796. CREATE TABLE CMOBJPROPS68 (
  797. CMID integer not null,
  798. SPEC clob,
  799. primary key (CMID) constraint PK_CMOBJPROPS68
  800. ) lock mode row;
  801. create table CMOBJPROPS69 (
  802. CMID integer not null,
  803. ORD integer not null,
  804. PARMNAME lvarchar(512) not null,
  805. CPARMVALUE blob,
  806. primary key (CMID, ORD) constraint PK_CMOBJPROPS69
  807. ) lock mode row;
  808. create table CMOBJPROPS7 (
  809. CMID integer not null,
  810. EXECERROR clob,
  811. CONFIGURATION clob,
  812. PORTALPREFS clob,
  813. CCREDENTIALS clob,
  814. CMODEL blob,
  815. SRC clob,
  816. SPEC clob,
  817. STATE clob,
  818. GOVERNORS clob,
  819. NAMESPFORMAT clob,
  820. primary key (CMID) constraint PK_CMOBJPROPS7
  821. ) lock mode row;
  822. create table CMOBJPROPS70 (
  823. CMID integer not null,
  824. CONTEXT clob,
  825. DEPLOYREFS clob,
  826. primary key (CMID) constraint PK_CMOBJPROPS70
  827. ) lock mode row;
  828. create table CMOBJPROPS71 (
  829. CMID integer not null,
  830. CONTEXT clob,
  831. DEPLOYREFS clob,
  832. primary key (CMID) constraint PK_CMOBJPROPS71
  833. ) lock mode row;
  834. create table CMOBJPROPS72 (
  835. CMID integer not null,
  836. CONTEXT clob,
  837. primary key (CMID) constraint PK_CMOBJPROPS72
  838. ) lock mode row;
  839. CREATE TABLE CMOBJPROPS73 (
  840. CMID integer not null,
  841. ALIASROOT lvarchar (512),
  842. URI clob ,
  843. UNIXURI clob ,
  844. WINDOWSURI clob ,
  845. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS73
  846. ) lock mode row;
  847. CREATE TABLE CMOBJPROPS74 (
  848. CMID integer not null,
  849. DEPLOYREFS clob,
  850. LAUNCHTYPE lvarchar (512),
  851. SPEC blob,
  852. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS74
  853. ) lock mode row;
  854. create index CMSCRIPT_CS_IDIDX_LAUNCHTYPE on CMOBJPROPS74(LAUNCHTYPE);
  855. CREATE TABLE CMOBJPROPS75 (
  856. CMID integer not null,
  857. RESOURCETYPE lvarchar (512),
  858. SPEC blob,
  859. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS75
  860. ) lock mode row;
  861. create index CMSCRIPT_CS_IDIDX_RESOURCETYPE on CMOBJPROPS75(RESOURCETYPE);
  862. CREATE TABLE CMOBJPROPS76 (
  863. CMID integer not null,
  864. CONTENTTYPE lvarchar (512),
  865. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS76
  866. ) lock mode row;
  867. CREATE TABLE CMOBJPROPS77 (
  868. CMID integer NOT NULL ,
  869. DSCONNECTIONNAME lvarchar (512),
  870. DSNAME lvarchar (512),
  871. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS77
  872. ) lock mode row;
  873. CREATE TABLE CMOBJPROPS78 (
  874. CMID integer not null,
  875. BINDINGNAME lvarchar (512),
  876. INPUTMESSNAME lvarchar (512),
  877. OPERATIONNAME lvarchar (512),
  878. OUTPUTMESSNAME lvarchar (512),
  879. SERVICENAME lvarchar (512),
  880. BULKEVENTS decimal(1,0),
  881. URI clob,
  882. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS78
  883. ) lock mode row;
  884. CREATE TABLE CMOBJPROPS79 (
  885. CMID integer not null,
  886. PUBLISHED decimal(1,0),
  887. SPEC clob,
  888. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS79
  889. ) lock mode row;
  890. create table CMOBJPROPS80 (
  891. CMID integer not null,
  892. REPOSITORYRULES clob,
  893. NSCAPS clob,
  894. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS80
  895. ) lock mode row;
  896. create table CMOBJPROPS81 (
  897. CMID integer not null,
  898. AGGREGATES clob,
  899. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS81
  900. ) lock mode row;
  901. create table CMOBJPROPS82 (
  902. CMID integer not null,
  903. BPMRESTURI clob,
  904. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS82
  905. ) lock mode row;
  906. create table CMOBJPROPS83 (
  907. CMID integer not null,
  908. MOBILECONFIG blob,
  909. primary key (CMID) constraint PK_CMOBJPROPS83
  910. ) lock mode row;
  911. create table CMOBJPROPS84 (
  912. CMID integer not null,
  913. SPEC clob,
  914. DATASIZE bigint,
  915. DATAMODTIME datetime year to fraction,
  916. primary key (CMID) constraint PK_CMOBJPROPS84
  917. ) lock mode row;
  918. create table CMOBJPROPS85 (
  919. CMID integer not null,
  920. DATA clob,
  921. DEPLOYREFS clob,
  922. OBJREFS clob,
  923. BIVARS clob,
  924. EMBEDDING clob,
  925. STATUS clob,
  926. USAGETRACKMODEL clob,
  927. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS85
  928. ) lock mode row;
  929. create table CMOBJPROPS86 (
  930. CMID integer not null,
  931. KSCHEMA lvarchar (256),
  932. KCATALOG lvarchar (256),
  933. CPHYSDEF clob,
  934. CPHYSANAL clob,
  935. CBASEDEF clob,
  936. CBASEOVER clob,
  937. CBASEANAL clob,
  938. STATUSID smallint,
  939. SNAPSHOT clob,
  940. HISTORY clob,
  941. SNAPSHOTENBL decimal(1,0),
  942. DEPLOYREFS clob,
  943. ALIASROOT lvarchar (256),
  944. primary key (CMID) constraint PK_CMOBJPROPS86
  945. ) lock mode row;
  946. create table CMOBJPROPS87 (
  947. CMID integer not null,
  948. EXT clob,
  949. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS87
  950. ) lock mode row;
  951. create table CMOBJPROPS88 (
  952. CMID integer not null,
  953. SCHEMATYPE lvarchar (256),
  954. STATUS lvarchar (256),
  955. STATUSINFO clob,
  956. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS88
  957. ) lock mode row;
  958. create table CMOBJPROPS89 (
  959. CMID integer not null,
  960. DOCTYPE lvarchar (64) not null,
  961. DOCID lvarchar (64) not null,
  962. CONTENT clob,
  963. PRIMARY KEY (CMID) CONSTRAINT PK_CMOBJPROPS89
  964. ) lock mode row;
  965. create index IDX_CMOBJPROPS89_1 on CMOBJPROPS89(DOCID);
  966. create table CMOBJPROPS9 (
  967. CMID integer not null,
  968. ASOFTIME datetime year to fraction,
  969. CANBURST decimal(1,0),
  970. primary key (CMID) constraint PK_CMOBJPROPS9
  971. ) lock mode row;
  972. CREATE TABLE CMOBJPROPS90 (
  973. CMID integer not null,
  974. SPEC clob,
  975. primary key (CMID) constraint PK_CMOBJPROPS90
  976. ) lock mode row;
  977. CREATE TABLE CMOBJPROPS91 (
  978. CMID integer not null,
  979. SKDATA clob,
  980. primary key (CMID) constraint PK_CMOBJPROPS91
  981. ) lock mode row;
  982. CREATE TABLE CMOBJPROPS92 (
  983. CMID integer not null,
  984. CONTYPE lvarchar (64),
  985. URI clob,
  986. SPEC clob,
  987. primary key (CMID) constraint PK_CMOBJPROPS92
  988. ) lock mode row;
  989. CREATE TABLE CMOBJPROPS93 (
  990. CMID integer NOT NULL,
  991. PROGRESS lvarchar(1024),
  992. JOBID lvarchar(64),
  993. STATE lvarchar(64),
  994. CONFIGURATION clob,
  995. primary key (CMID) constraint PK_CMOBJPROPS93
  996. ) lock mode row;
  997. create table CMTAGS (
  998. CMID integer not null,
  999. ORD integer not null,
  1000. TAG lvarchar(256),
  1001. primary key (CMID, ORD) constraint PK_CMTAGS
  1002. ) lock mode row;
  1003. create index IDX_CMTAGS on CMTAGS(CMID, TAG);
  1004. create table CMPOLICIES (
  1005. CMID integer not null,
  1006. POLICIES blob,
  1007. primary key (CMID) constraint PK_CMPOLICIES
  1008. ) lock mode row;
  1009. create table CMVIEWED (
  1010. CMID integer not null,
  1011. OBJID lvarchar(1024) default '-',
  1012. VIEWED decimal(1,0) default 0,
  1013. primary key (CMID) constraint PK_CMVIEWED
  1014. ) lock mode row;
  1015. create table CMPROPERTIES (
  1016. PROPID smallint NOT NULL,
  1017. NAME lvarchar(50) NOT NULL,
  1018. DEF blob,
  1019. primary key(PROPID) constraint PK_CMPROPERTIES
  1020. ) lock mode row;
  1021. create table CMCLASSES (
  1022. CLASSID integer NOT NULL,
  1023. NAME lvarchar(50) NOT NULL,
  1024. USAGE smallint,
  1025. DEF blob,
  1026. primary key(CLASSID) constraint PK_CMCLASSES
  1027. ) lock mode row;
  1028. create table CMLOCALES (
  1029. LOCALEID smallint not null,
  1030. MAPDLOCALEID smallint not null,
  1031. LOCALE lvarchar(20) not null,
  1032. primary key (LOCALEID) constraint PK_CMLOCALES
  1033. ) lock mode row;
  1034. create table CMGUIDS_BASE (
  1035. CMID integer not null ,
  1036. GUID lvarchar(50),
  1037. primary key (CMID) constraint PK_CMGUIDS
  1038. ) lock mode row;
  1039. create view CMGUIDS as select CMID, GUID from CMGUIDS_BASE;
  1040. CREATE SEQUENCE UNIQUE_ID_GENERATOR;
  1041. create trigger CMGUIDS_TR instead of insert on CMGUIDS referencing new as NG for each row ( insert into CMGUIDS_BASE (CMID, GUID) values (NG.CMID, CAST(UNIQUE_ID_GENERATOR.NEXTVAL AS lvarchar)));
  1042. CREATE TABLE CMREFNOORD1 (
  1043. PROPID smallint NOT NULL,
  1044. CMID integer not null ,
  1045. REFCMID integer not null ,
  1046. primary key (CMID, PROPID) constraint PK_CMREFNOORD1
  1047. ) lock mode row;
  1048. create index CMSCRIPT_CS_IDIDX_CMREFNOORD1 on CMREFNOORD1(REFCMID, PROPID);
  1049. CREATE TABLE CMREFNOORD2 (
  1050. CMID integer not null ,
  1051. REFCMID integer not null ,
  1052. primary key (CMID) constraint PK_CMREFNOORD2
  1053. ) lock mode row;
  1054. create index CMSCRIPT_CS_IDIDX_CMREFNOORD2 on CMREFNOORD2(REFCMID);
  1055. CREATE TABLE CMREFORD1 (
  1056. PROPID smallint,
  1057. CMID integer ,
  1058. ORD integer ,
  1059. REFCMID integer ,
  1060. primary key (CMID, PROPID, ORD) constraint PK_CMREFORD1
  1061. ) lock mode row;
  1062. create index CMSCRIPT_CS_IDIDX_CMREFORD1 on CMREFORD1(REFCMID, PROPID, ORD);
  1063. CREATE TABLE CMREFORD2 (
  1064. CMID integer not null ,
  1065. ORD integer NOT NULL,
  1066. REFCMID integer not null ,
  1067. primary key (CMID, ORD) constraint PK_CMREFORD2
  1068. ) lock mode row;
  1069. create index CMSCRIPT_CS_IDIDX_CMREFORD2 on CMREFORD2(REFCMID, ORD);
  1070. CREATE TABLE CMNOTIFICATIONTABLE (
  1071. STOREID char(33) NOT NULL,
  1072. OPERATION lvarchar(25) NOT NULL,
  1073. CLASSNAME lvarchar(25) NOT NULL,
  1074. EVENTTIME datetime year to fraction NOT NULL,
  1075. primary key (STOREID,OPERATION,EVENTTIME) constraint PK_CMNOTIFICATION
  1076. ) lock mode row;
  1077. create view CMOWNERCOUNT(OBJID, OWN_NUMBER) as
  1078. SELECT p2.OBJID, count(o.CMID)
  1079. FROM CMOBJECTS o left outer join CMREFNOORD2 p1 on p1.CMID = o.CMID
  1080. left outer join CMOBJPROPS1 p2 on p1.REFCMID = p2.CMID
  1081. GROUP BY p2.OBJID;
  1082. CREATE TABLE CMDATAUPGRADE (
  1083. PLUGINNAME lvarchar (255) NOT NULL ,
  1084. CI_PLUGINNAME lvarchar (255) NOT NULL ,
  1085. VERSION lvarchar (64) ,
  1086. PRIMARY KEY (CI_PLUGINNAME) CONSTRAINT PK_CMDATAUPGRADE
  1087. ) lock mode row;
  1088. CREATE TABLE CMSIZEINFO (
  1089. STOREID lvarchar (255) NOT NULL,
  1090. CLASSID integer NOT NULL,
  1091. TOTALFORCLASSID integer NOT NULL,
  1092. TOTALCOUNT bigint ,
  1093. TOTALSIZE bigint ,
  1094. PRIMARY KEY (STOREID, TOTALFORCLASSID) CONSTRAINT PK_CMSIZEINFO
  1095. ) lock mode row;
  1096. CREATE TABLE CMSPLIT (
  1097. CMID integer NOT NULL,
  1098. TRANSACTIONID lvarchar (255) NOT NULL,
  1099. PRIMARY KEY (CMID, TRANSACTIONID) CONSTRAINT PK_CMSPLIT
  1100. ) lock mode row;
  1101. CREATE TABLE CMARCHIVEQUEUE (
  1102. OBJID lvarchar(255) default null,
  1103. ITEMID lvarchar(255) not null,
  1104. QUEUEID lvarchar(255) not null,
  1105. WORKFLOW lvarchar(255) not null,
  1106. CONSUMERNAME lvarchar(255) default null,
  1107. STATE integer,
  1108. INSERTIONTIME datetime year to fraction not null,
  1109. PRIMARY KEY (ITEMID) CONSTRAINT PK_CMARCHIVEQUEUE
  1110. )lock mode row;
  1111. CREATE TABLE CMDELETEQUEUE (
  1112. OBJID lvarchar(255) default null,
  1113. ITEMID lvarchar(255) not null,
  1114. QUEUEID lvarchar(255) not null,
  1115. WORKFLOW lvarchar(255) not null,
  1116. CONSUMERNAME lvarchar(255) default null,
  1117. STATE integer,
  1118. INSERTIONTIME datetime year to fraction not null,
  1119. PRIMARY KEY (ITEMID) CONSTRAINT PK_CMDELETEQUEUE
  1120. )lock mode row;
  1121. CREATE TABLE CMINDEXQUEUE (
  1122. OBJID lvarchar(1024) default null,
  1123. ITEMID lvarchar(50) not null,
  1124. QUEUEID lvarchar(50) not null,
  1125. WORKFLOW lvarchar(50) not null,
  1126. CONSUMERNAME lvarchar(50) default null,
  1127. STATE integer,
  1128. INSERTIONTIME datetime year to fraction not null,
  1129. INDEXACTION lvarchar(50) NOT NULL,
  1130. INDEXCLASS lvarchar(255) NOT NULL,
  1131. INDEXPROPS clob,
  1132. PRIMARY KEY (ITEMID) CONSTRAINT PK_CMINDEXQUEUE
  1133. )lock mode row;
  1134. CREATE INDEX CMSCRIPT_CS_IDIDX_CMINDEXQUEUE on CMINDEXQUEUE(STATE, QUEUEID);
  1135. CREATE TABLE CMQUEUELOCK (
  1136. QUEUEID lvarchar(255) not null,
  1137. PRIMARY KEY (QUEUEID) CONSTRAINT PK_CMQUEUELOCK
  1138. )lock mode row;
  1139. CREATE TABLE CMTENANTID (
  1140. TENANTID INTEGER NOT NULL,
  1141. TENANTNAME LVARCHAR(255) NOT NULL,
  1142. PRIMARY KEY (TENANTID) CONSTRAINT PK_CMTENANTID
  1143. )lock mode row;
  1144. INSERT INTO CMTENANTID (TENANTID,TENANTNAME) VALUES (0,'');
  1145. insert into CMSYSPROPS (PROPNAME, CI_PROPNAME, PROPVALUE)
  1146. values ('CMStoreVersion', upper('CMStoreVersion'), '7.7003');