vds_table.sql 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938
  1. --------------------------------------------------
  2. -- Export file for user GJUTIS --
  3. -- Created by OpenValue on 2014-07-16, 11:26:12 --
  4. --------------------------------------------------
  5. spool vds.log
  6. prompt
  7. prompt Creating table TB_VDS_CTLR
  8. prompt ==========================
  9. prompt
  10. create table GJUTIS.TB_VDS_CTLR
  11. (
  12. ctlr_mngm_nmbr VARCHAR2(20) not null,
  13. ctlr_type_cd VARCHAR2(7),
  14. vald_yn CHAR(1) default 'N',
  15. x_crdn NUMBER(11,8),
  16. y_crdn NUMBER(10,8),
  17. lctn VARCHAR2(100),
  18. trmn_ip VARCHAR2(20),
  19. trmn_port VARCHAR2(5),
  20. ctlr_clct_cycl NUMBER(3),
  21. ctlr_stts_cycl NUMBER(3),
  22. loop_bord_num NUMBER(3) default 0,
  23. dltr_nmbr VARCHAR2(20),
  24. del_dt VARCHAR2(14),
  25. del_yn CHAR(1) default 'N',
  26. frst_regr_nmbr VARCHAR2(20),
  27. frst_rgst_dt VARCHAR2(14),
  28. last_crpr_nmbr VARCHAR2(20),
  29. last_crct__dt VARCHAR2(14)
  30. )
  31. tablespace ITS_HIST_DATA
  32. pctfree 10
  33. initrans 1
  34. maxtrans 255
  35. nologging;
  36. comment on table GJUTIS.TB_VDS_CTLR
  37. is 'VDS 제어기';
  38. comment on column GJUTIS.TB_VDS_CTLR.ctlr_mngm_nmbr
  39. is '제어기 관리 번호';
  40. comment on column GJUTIS.TB_VDS_CTLR.ctlr_type_cd
  41. is '제어기 유형 코드';
  42. comment on column GJUTIS.TB_VDS_CTLR.vald_yn
  43. is '유효 여부';
  44. comment on column GJUTIS.TB_VDS_CTLR.x_crdn
  45. is 'X 좌표';
  46. comment on column GJUTIS.TB_VDS_CTLR.y_crdn
  47. is 'Y 좌표';
  48. comment on column GJUTIS.TB_VDS_CTLR.lctn
  49. is '위치';
  50. comment on column GJUTIS.TB_VDS_CTLR.trmn_ip
  51. is '단말기 아이피';
  52. comment on column GJUTIS.TB_VDS_CTLR.trmn_port
  53. is '단말기 포트';
  54. comment on column GJUTIS.TB_VDS_CTLR.ctlr_clct_cycl
  55. is '제어기 수집 주기';
  56. comment on column GJUTIS.TB_VDS_CTLR.ctlr_stts_cycl
  57. is '제어기 상태 주기';
  58. comment on column GJUTIS.TB_VDS_CTLR.loop_bord_num
  59. is '루프 보드 개수';
  60. comment on column GJUTIS.TB_VDS_CTLR.dltr_nmbr
  61. is '삭제자 번호';
  62. comment on column GJUTIS.TB_VDS_CTLR.del_dt
  63. is '삭제 일시';
  64. comment on column GJUTIS.TB_VDS_CTLR.del_yn
  65. is '삭제 여부';
  66. comment on column GJUTIS.TB_VDS_CTLR.frst_regr_nmbr
  67. is '최초 등록자 번호';
  68. comment on column GJUTIS.TB_VDS_CTLR.frst_rgst_dt
  69. is '최초 등록 일시';
  70. comment on column GJUTIS.TB_VDS_CTLR.last_crpr_nmbr
  71. is '최종 수정자 번호';
  72. comment on column GJUTIS.TB_VDS_CTLR.last_crct__dt
  73. is '최종 수정 일시';
  74. alter table GJUTIS.TB_VDS_CTLR
  75. add constraint IX_VDS_CTLR_PK primary key (CTLR_MNGM_NMBR)
  76. using index
  77. tablespace ITS_HIST_DATA
  78. pctfree 10
  79. initrans 2
  80. maxtrans 255;
  81. prompt
  82. prompt Creating table TB_VDS_CTLR_STTS
  83. prompt ===============================
  84. prompt
  85. create table GJUTIS.TB_VDS_CTLR_STTS
  86. (
  87. ctlr_mngm_nmbr VARCHAR2(20) not null,
  88. cmnc_stts_cd VARCHAR2(7),
  89. prnt_pwer_stts_cd VARCHAR2(7),
  90. cbox_door_stts_cd VARCHAR2(7),
  91. fan_stts_cd VARCHAR2(7),
  92. hetr_stts_cd VARCHAR2(7),
  93. updt_dt VARCHAR2(14),
  94. sub_ctlr_val NUMBER(3) default 0
  95. )
  96. tablespace ITS_HIST_DATA
  97. pctfree 10
  98. initrans 1
  99. maxtrans 255
  100. nologging;
  101. comment on table GJUTIS.TB_VDS_CTLR_STTS
  102. is 'VDS 제어기 상태';
  103. comment on column GJUTIS.TB_VDS_CTLR_STTS.ctlr_mngm_nmbr
  104. is '제어기 관리 번호';
  105. comment on column GJUTIS.TB_VDS_CTLR_STTS.cmnc_stts_cd
  106. is '통신 상태 코드';
  107. comment on column GJUTIS.TB_VDS_CTLR_STTS.prnt_pwer_stts_cd
  108. is '출력 전원 상태 코드';
  109. comment on column GJUTIS.TB_VDS_CTLR_STTS.cbox_door_stts_cd
  110. is '함체 문 상태 코드';
  111. comment on column GJUTIS.TB_VDS_CTLR_STTS.fan_stts_cd
  112. is '팬 상태 코드';
  113. comment on column GJUTIS.TB_VDS_CTLR_STTS.hetr_stts_cd
  114. is '히터 상태 코드';
  115. comment on column GJUTIS.TB_VDS_CTLR_STTS.updt_dt
  116. is '갱신 일시';
  117. comment on column GJUTIS.TB_VDS_CTLR_STTS.sub_ctlr_val
  118. is '부 제어기 값';
  119. alter table GJUTIS.TB_VDS_CTLR_STTS
  120. add constraint IX_VDS_CTLR_STTS_PK primary key (CTLR_MNGM_NMBR)
  121. using index
  122. tablespace ITS_HIST_DATA
  123. pctfree 10
  124. initrans 2
  125. maxtrans 255;
  126. alter table GJUTIS.TB_VDS_CTLR_STTS
  127. add constraint FK_TB_VDS_CTLR_STTS_01 foreign key (CTLR_MNGM_NMBR)
  128. references GJUTIS.TB_VDS_CTLR (CTLR_MNGM_NMBR)
  129. disable;
  130. prompt
  131. prompt Creating table TB_VDS_CTLR_STTS_RAW
  132. prompt ===================================
  133. prompt
  134. create table GJUTIS.TB_VDS_CTLR_STTS_RAW
  135. (
  136. ctlr_mngm_nmbr VARCHAR2(20) not null,
  137. ocrr_dt VARCHAR2(14) not null,
  138. cmnc_stts_cd VARCHAR2(7),
  139. prnt_pwer_stts_cd VARCHAR2(7),
  140. cbox_door_stts_cd VARCHAR2(7),
  141. fan_stts_cd VARCHAR2(7),
  142. hetr_stts_cd VARCHAR2(7),
  143. prnt_pwer_val NUMBER(3) default 0,
  144. sub_ctlr_val NUMBER(3) default 0
  145. )
  146. tablespace ITS_HIST_DATA
  147. pctfree 10
  148. initrans 1
  149. maxtrans 255
  150. nologging;
  151. comment on table GJUTIS.TB_VDS_CTLR_STTS_RAW
  152. is 'VDS 제어기 상태 원시';
  153. comment on column GJUTIS.TB_VDS_CTLR_STTS_RAW.ctlr_mngm_nmbr
  154. is '제어기 관리 번호';
  155. comment on column GJUTIS.TB_VDS_CTLR_STTS_RAW.ocrr_dt
  156. is '발생 일시';
  157. comment on column GJUTIS.TB_VDS_CTLR_STTS_RAW.cmnc_stts_cd
  158. is '통신 상태 코드';
  159. comment on column GJUTIS.TB_VDS_CTLR_STTS_RAW.prnt_pwer_stts_cd
  160. is '출력 전원 상태 코드';
  161. comment on column GJUTIS.TB_VDS_CTLR_STTS_RAW.cbox_door_stts_cd
  162. is '함체 문 상태 코드';
  163. comment on column GJUTIS.TB_VDS_CTLR_STTS_RAW.fan_stts_cd
  164. is '팬 상태 코드';
  165. comment on column GJUTIS.TB_VDS_CTLR_STTS_RAW.hetr_stts_cd
  166. is '히터 상태 코드';
  167. comment on column GJUTIS.TB_VDS_CTLR_STTS_RAW.prnt_pwer_val
  168. is '출력 전원 값';
  169. comment on column GJUTIS.TB_VDS_CTLR_STTS_RAW.sub_ctlr_val
  170. is '부 제어기 값';
  171. alter table GJUTIS.TB_VDS_CTLR_STTS_RAW
  172. add constraint IX_VDS_CTLR_STTS_RAW_PK primary key (CTLR_MNGM_NMBR, OCRR_DT)
  173. using index
  174. tablespace ITS_HIST_DATA
  175. pctfree 10
  176. initrans 2
  177. maxtrans 255;
  178. alter table GJUTIS.TB_VDS_CTLR_STTS_RAW
  179. add constraint FK_TB_CTLR_STTS_RAW_01 foreign key (CTLR_MNGM_NMBR)
  180. references GJUTIS.TB_VDS_CTLR (CTLR_MNGM_NMBR)
  181. disable;
  182. prompt
  183. prompt Creating table TB_VDS_DTCT_MSTR
  184. prompt ===============================
  185. prompt
  186. create table GJUTIS.TB_VDS_DTCT_MSTR
  187. (
  188. dtct_nmbr VARCHAR2(8) not null,
  189. dtct_type_cd VARCHAR2(7),
  190. stln_dstc NUMBER(7) default 0,
  191. istl_lane NUMBER(2),
  192. det_nmbr VARCHAR2(1),
  193. snst NUMBER(3) default 0,
  194. dtct_vald_dstc NUMBER(7) default 0,
  195. mdvh_uplm_lngt NUMBER(7) default 0,
  196. mdvh_lwlm_lngt NUMBER(7) default 0,
  197. use_yn CHAR(1) default 'N',
  198. chnl_nmbr VARCHAR2(4),
  199. dltr_nmbr VARCHAR2(20),
  200. del_dt VARCHAR2(14),
  201. del_yn CHAR(1) default 'N',
  202. frst_regr_nmbr VARCHAR2(20),
  203. frst_rgst_dt VARCHAR2(14),
  204. last_crpr_nmbr VARCHAR2(20),
  205. last_crct_dt VARCHAR2(14),
  206. ctlr_mngm_nmbr VARCHAR2(20)
  207. )
  208. tablespace ITS_HIST_DATA
  209. pctfree 10
  210. initrans 1
  211. maxtrans 255
  212. nologging;
  213. comment on table GJUTIS.TB_VDS_DTCT_MSTR
  214. is 'VDS 검지기 마스터';
  215. comment on column GJUTIS.TB_VDS_DTCT_MSTR.dtct_nmbr
  216. is '검지기 번호';
  217. comment on column GJUTIS.TB_VDS_DTCT_MSTR.dtct_type_cd
  218. is '검지기 유형 코드';
  219. comment on column GJUTIS.TB_VDS_DTCT_MSTR.stln_dstc
  220. is '정지선 거리';
  221. comment on column GJUTIS.TB_VDS_DTCT_MSTR.istl_lane
  222. is '설치 차로';
  223. comment on column GJUTIS.TB_VDS_DTCT_MSTR.det_nmbr
  224. is 'DET 번호';
  225. comment on column GJUTIS.TB_VDS_DTCT_MSTR.snst
  226. is '감도';
  227. comment on column GJUTIS.TB_VDS_DTCT_MSTR.dtct_vald_dstc
  228. is '검지기 유효 거리';
  229. comment on column GJUTIS.TB_VDS_DTCT_MSTR.mdvh_uplm_lngt
  230. is '중형차 상한 길이';
  231. comment on column GJUTIS.TB_VDS_DTCT_MSTR.mdvh_lwlm_lngt
  232. is '중형차 하한 길이';
  233. comment on column GJUTIS.TB_VDS_DTCT_MSTR.use_yn
  234. is '사용 여부';
  235. comment on column GJUTIS.TB_VDS_DTCT_MSTR.chnl_nmbr
  236. is '채널 번호';
  237. comment on column GJUTIS.TB_VDS_DTCT_MSTR.dltr_nmbr
  238. is '삭제자 번호';
  239. comment on column GJUTIS.TB_VDS_DTCT_MSTR.del_dt
  240. is '삭제 일시';
  241. comment on column GJUTIS.TB_VDS_DTCT_MSTR.del_yn
  242. is '삭제 여부';
  243. comment on column GJUTIS.TB_VDS_DTCT_MSTR.frst_regr_nmbr
  244. is '최초 등록자 번호';
  245. comment on column GJUTIS.TB_VDS_DTCT_MSTR.frst_rgst_dt
  246. is '최초 등록 일시';
  247. comment on column GJUTIS.TB_VDS_DTCT_MSTR.last_crpr_nmbr
  248. is '최종 수정자 번호';
  249. comment on column GJUTIS.TB_VDS_DTCT_MSTR.last_crct_dt
  250. is '최종 수정 일시';
  251. comment on column GJUTIS.TB_VDS_DTCT_MSTR.ctlr_mngm_nmbr
  252. is '제어기 관리 번호';
  253. alter table GJUTIS.TB_VDS_DTCT_MSTR
  254. add constraint IX_VDS_DTCT_MSTR_PK primary key (DTCT_NMBR)
  255. using index
  256. tablespace ITS_HIST_DATA
  257. pctfree 10
  258. initrans 2
  259. maxtrans 255;
  260. alter table GJUTIS.TB_VDS_DTCT_MSTR
  261. add constraint FK_VDS_DTCT_MSTR__CTLR_MNGM_NM foreign key (CTLR_MNGM_NMBR)
  262. references GJUTIS.TB_VDS_CTLR (CTLR_MNGM_NMBR)
  263. disable;
  264. prompt
  265. prompt Creating table TB_VDS_DTCT_15M_STAT
  266. prompt ===================================
  267. prompt
  268. create table GJUTIS.TB_VDS_DTCT_15M_STAT
  269. (
  270. dtct_nmbr VARCHAR2(8) not null,
  271. stat_dt VARCHAR2(14) not null,
  272. syst_kind_dvsn VARCHAR2(1) not null,
  273. tfvl NUMBER(6) default 0,
  274. avrg_sped NUMBER(3) default 0,
  275. avrg_ocpy_rate NUMBER(6,2),
  276. avrg_hdwy VARCHAR2(6),
  277. avrg_lngt NUMBER(5,1)
  278. )
  279. tablespace ITS_HIST_DATA
  280. pctfree 10
  281. initrans 1
  282. maxtrans 255
  283. nologging;
  284. comment on table GJUTIS.TB_VDS_DTCT_15M_STAT
  285. is 'VDS 검지기 15분 통계';
  286. comment on column GJUTIS.TB_VDS_DTCT_15M_STAT.dtct_nmbr
  287. is '검지기 번호';
  288. comment on column GJUTIS.TB_VDS_DTCT_15M_STAT.stat_dt
  289. is '통계 일시';
  290. comment on column GJUTIS.TB_VDS_DTCT_15M_STAT.syst_kind_dvsn
  291. is '시스템 종류 구분';
  292. comment on column GJUTIS.TB_VDS_DTCT_15M_STAT.tfvl
  293. is '교통량';
  294. comment on column GJUTIS.TB_VDS_DTCT_15M_STAT.avrg_sped
  295. is '평균 속도';
  296. comment on column GJUTIS.TB_VDS_DTCT_15M_STAT.avrg_ocpy_rate
  297. is '평균 점유 율';
  298. comment on column GJUTIS.TB_VDS_DTCT_15M_STAT.avrg_hdwy
  299. is '평균 차두시간';
  300. comment on column GJUTIS.TB_VDS_DTCT_15M_STAT.avrg_lngt
  301. is '평균 길이';
  302. alter table GJUTIS.TB_VDS_DTCT_15M_STAT
  303. add constraint IX_VDS_DTCT_15M_STAT_PK primary key (DTCT_NMBR, STAT_DT, SYST_KIND_DVSN)
  304. using index
  305. tablespace ITS_HIST_DATA
  306. pctfree 10
  307. initrans 2
  308. maxtrans 255;
  309. alter table GJUTIS.TB_VDS_DTCT_15M_STAT
  310. add constraint FK_TB_DTCT_15M_STAT_01 foreign key (DTCT_NMBR)
  311. references GJUTIS.TB_VDS_DTCT_MSTR (DTCT_NMBR)
  312. disable;
  313. prompt
  314. prompt Creating table TB_VDS_DTCT_ADJS
  315. prompt ===============================
  316. prompt
  317. create table GJUTIS.TB_VDS_DTCT_ADJS
  318. (
  319. dtct_nmbr VARCHAR2(8) not null,
  320. ocrr_dt VARCHAR2(14) not null,
  321. syst_kind_dvsn VARCHAR2(1) not null,
  322. tfvl NUMBER(6) default 0,
  323. avrg_ocpy_rate NUMBER(6,2),
  324. sped NUMBER(3) default 0,
  325. hdwy VARCHAR2(6),
  326. avrg_lngt NUMBER(5,1)
  327. )
  328. tablespace ITS_HIST_DATA
  329. pctfree 10
  330. initrans 1
  331. maxtrans 255
  332. nologging;
  333. comment on table GJUTIS.TB_VDS_DTCT_ADJS
  334. is 'VDS 검지기 보정';
  335. comment on column GJUTIS.TB_VDS_DTCT_ADJS.dtct_nmbr
  336. is '검지기 번호';
  337. comment on column GJUTIS.TB_VDS_DTCT_ADJS.ocrr_dt
  338. is '발생 일시';
  339. comment on column GJUTIS.TB_VDS_DTCT_ADJS.syst_kind_dvsn
  340. is '시스템 종류 구분';
  341. comment on column GJUTIS.TB_VDS_DTCT_ADJS.tfvl
  342. is '교통량';
  343. comment on column GJUTIS.TB_VDS_DTCT_ADJS.avrg_ocpy_rate
  344. is '평균 점유 율';
  345. comment on column GJUTIS.TB_VDS_DTCT_ADJS.sped
  346. is '속도';
  347. comment on column GJUTIS.TB_VDS_DTCT_ADJS.hdwy
  348. is '차두시간';
  349. comment on column GJUTIS.TB_VDS_DTCT_ADJS.avrg_lngt
  350. is '평균 길이';
  351. alter table GJUTIS.TB_VDS_DTCT_ADJS
  352. add constraint IX_VDS_DTCT_ADJS_PK primary key (DTCT_NMBR, OCRR_DT, SYST_KIND_DVSN)
  353. using index
  354. tablespace ITS_HIST_DATA
  355. pctfree 10
  356. initrans 2
  357. maxtrans 255;
  358. alter table GJUTIS.TB_VDS_DTCT_ADJS
  359. add constraint FK_VDS_DTCT_ADJS__DTCT_NMBR foreign key (DTCT_NMBR)
  360. references GJUTIS.TB_VDS_DTCT_MSTR (DTCT_NMBR)
  361. disable;
  362. prompt
  363. prompt Creating table TB_VDS_DTCT_CLCT_ERR_HS
  364. prompt ======================================
  365. prompt
  366. create table GJUTIS.TB_VDS_DTCT_CLCT_ERR_HS
  367. (
  368. dtct_nmbr VARCHAR2(8) not null,
  369. ocrr_dt VARCHAR2(14) not null,
  370. syst_kind_dvsn VARCHAR2(1) not null,
  371. err_type_dvsn VARCHAR2(2)
  372. )
  373. tablespace ITS_HIST_DATA
  374. pctfree 10
  375. initrans 1
  376. maxtrans 255
  377. nologging;
  378. comment on table GJUTIS.TB_VDS_DTCT_CLCT_ERR_HS
  379. is 'VDS 검지기 수집 오류 이력';
  380. comment on column GJUTIS.TB_VDS_DTCT_CLCT_ERR_HS.dtct_nmbr
  381. is '검지기 번호';
  382. comment on column GJUTIS.TB_VDS_DTCT_CLCT_ERR_HS.ocrr_dt
  383. is '발생 일시';
  384. comment on column GJUTIS.TB_VDS_DTCT_CLCT_ERR_HS.syst_kind_dvsn
  385. is '시스템 종류 구분';
  386. comment on column GJUTIS.TB_VDS_DTCT_CLCT_ERR_HS.err_type_dvsn
  387. is '오류 유형 구분';
  388. alter table GJUTIS.TB_VDS_DTCT_CLCT_ERR_HS
  389. add constraint IX_VDS_DTCT_CLCT_ERR_HS_PK primary key (DTCT_NMBR, OCRR_DT, SYST_KIND_DVSN)
  390. using index
  391. tablespace ITS_HIST_DATA
  392. pctfree 10
  393. initrans 2
  394. maxtrans 255;
  395. alter table GJUTIS.TB_VDS_DTCT_CLCT_ERR_HS
  396. add constraint FK_TB_DTCT_CLCT_ERR_HS_01 foreign key (DTCT_NMBR)
  397. references GJUTIS.TB_VDS_DTCT_MSTR (DTCT_NMBR)
  398. disable;
  399. prompt
  400. prompt Creating table TB_VDS_DTCT_DD_STAT
  401. prompt ==================================
  402. prompt
  403. create table GJUTIS.TB_VDS_DTCT_DD_STAT
  404. (
  405. dtct_nmbr VARCHAR2(8) not null,
  406. stat_dt VARCHAR2(14) not null,
  407. syst_kind_dvsn VARCHAR2(1) not null,
  408. tfvl NUMBER(6) default 0,
  409. avrg_sped NUMBER(3) default 0,
  410. avrg_ocpy_rate NUMBER(6,2),
  411. avrg_hdwy VARCHAR2(6),
  412. avrg_lngt NUMBER(5,1)
  413. )
  414. tablespace ITS_HIST_DATA
  415. pctfree 10
  416. initrans 1
  417. maxtrans 255
  418. nologging;
  419. comment on table GJUTIS.TB_VDS_DTCT_DD_STAT
  420. is 'VDS 검지기 일 통계';
  421. comment on column GJUTIS.TB_VDS_DTCT_DD_STAT.dtct_nmbr
  422. is '검지기 번호';
  423. comment on column GJUTIS.TB_VDS_DTCT_DD_STAT.stat_dt
  424. is '통계 일시';
  425. comment on column GJUTIS.TB_VDS_DTCT_DD_STAT.syst_kind_dvsn
  426. is '시스템 종류 구분';
  427. comment on column GJUTIS.TB_VDS_DTCT_DD_STAT.tfvl
  428. is '교통량';
  429. comment on column GJUTIS.TB_VDS_DTCT_DD_STAT.avrg_sped
  430. is '평균 속도';
  431. comment on column GJUTIS.TB_VDS_DTCT_DD_STAT.avrg_ocpy_rate
  432. is '평균 점유 율';
  433. comment on column GJUTIS.TB_VDS_DTCT_DD_STAT.avrg_hdwy
  434. is '평균 차두시간';
  435. comment on column GJUTIS.TB_VDS_DTCT_DD_STAT.avrg_lngt
  436. is '평균 길이';
  437. alter table GJUTIS.TB_VDS_DTCT_DD_STAT
  438. add constraint IX_VDS_DTCT_DD_STAT_PK primary key (DTCT_NMBR, STAT_DT, SYST_KIND_DVSN)
  439. using index
  440. tablespace ITS_HIST_DATA
  441. pctfree 10
  442. initrans 2
  443. maxtrans 255;
  444. alter table GJUTIS.TB_VDS_DTCT_DD_STAT
  445. add constraint FK_TB_DTCT_DD_STAT_01 foreign key (DTCT_NMBR)
  446. references GJUTIS.TB_VDS_DTCT_MSTR (DTCT_NMBR)
  447. disable;
  448. prompt
  449. prompt Creating table TB_VDS_DTCT_HH_STAT
  450. prompt ==================================
  451. prompt
  452. create table GJUTIS.TB_VDS_DTCT_HH_STAT
  453. (
  454. dtct_nmbr VARCHAR2(8) not null,
  455. stat_dt VARCHAR2(14) not null,
  456. syst_kind_dvsn VARCHAR2(1) not null,
  457. tfvl NUMBER(6) default 0,
  458. avrg_sped NUMBER(3) default 0,
  459. avrg_ocpy_rate NUMBER(6,2),
  460. avrg_hdwy VARCHAR2(6),
  461. avrg_lngt NUMBER(5,1)
  462. )
  463. tablespace ITS_HIST_DATA
  464. pctfree 10
  465. initrans 1
  466. maxtrans 255
  467. nologging;
  468. comment on table GJUTIS.TB_VDS_DTCT_HH_STAT
  469. is 'VDS 검지기 시간 통계';
  470. comment on column GJUTIS.TB_VDS_DTCT_HH_STAT.dtct_nmbr
  471. is '검지기 번호';
  472. comment on column GJUTIS.TB_VDS_DTCT_HH_STAT.stat_dt
  473. is '통계 일시';
  474. comment on column GJUTIS.TB_VDS_DTCT_HH_STAT.syst_kind_dvsn
  475. is '시스템 종류 구분';
  476. comment on column GJUTIS.TB_VDS_DTCT_HH_STAT.tfvl
  477. is '교통량';
  478. comment on column GJUTIS.TB_VDS_DTCT_HH_STAT.avrg_sped
  479. is '평균 속도';
  480. comment on column GJUTIS.TB_VDS_DTCT_HH_STAT.avrg_ocpy_rate
  481. is '평균 점유 율';
  482. comment on column GJUTIS.TB_VDS_DTCT_HH_STAT.avrg_hdwy
  483. is '평균 차두시간';
  484. comment on column GJUTIS.TB_VDS_DTCT_HH_STAT.avrg_lngt
  485. is '평균 길이';
  486. alter table GJUTIS.TB_VDS_DTCT_HH_STAT
  487. add constraint IX_VDS_DTCT_HH_STAT_PK primary key (DTCT_NMBR, STAT_DT, SYST_KIND_DVSN)
  488. using index
  489. tablespace ITS_HIST_DATA
  490. pctfree 10
  491. initrans 2
  492. maxtrans 255;
  493. alter table GJUTIS.TB_VDS_DTCT_HH_STAT
  494. add constraint FK_TB_DTCT_HH_STAT_01 foreign key (DTCT_NMBR)
  495. references GJUTIS.TB_VDS_DTCT_MSTR (DTCT_NMBR)
  496. disable;
  497. prompt
  498. prompt Creating table TB_VDS_DTCT_LINK_RLTN
  499. prompt ====================================
  500. prompt
  501. create table GJUTIS.TB_VDS_DTCT_LINK_RLTN
  502. (
  503. dtct_nmbr VARCHAR2(8) not null,
  504. link_id NUMBER(10) not null
  505. )
  506. tablespace ITS_HIST_DATA
  507. pctfree 10
  508. initrans 1
  509. maxtrans 255
  510. nologging;
  511. comment on table GJUTIS.TB_VDS_DTCT_LINK_RLTN
  512. is 'VDS 검지기 링크 관계';
  513. comment on column GJUTIS.TB_VDS_DTCT_LINK_RLTN.dtct_nmbr
  514. is '검지기 번호';
  515. comment on column GJUTIS.TB_VDS_DTCT_LINK_RLTN.link_id
  516. is '링크ID';
  517. alter table GJUTIS.TB_VDS_DTCT_LINK_RLTN
  518. add constraint IX_VDS_DTCT_LINK_RLTN_PK primary key (DTCT_NMBR, LINK_ID)
  519. using index
  520. tablespace ITS_HIST_DATA
  521. pctfree 10
  522. initrans 2
  523. maxtrans 255;
  524. alter table GJUTIS.TB_VDS_DTCT_LINK_RLTN
  525. add constraint FK_VDS_DTCT_LINK_RLTN_02 foreign key (LINK_ID)
  526. references GJUTIS.TB_LINK (LINK_ID)
  527. disable;
  528. alter table GJUTIS.TB_VDS_DTCT_LINK_RLTN
  529. add constraint FK_VDS_DTCT_LINK_RLTN__DTCT_NM foreign key (DTCT_NMBR)
  530. references GJUTIS.TB_VDS_DTCT_MSTR (DTCT_NMBR)
  531. disable;
  532. prompt
  533. prompt Creating table TB_VDS_DTCT_MN_STAT
  534. prompt ==================================
  535. prompt
  536. create table GJUTIS.TB_VDS_DTCT_MN_STAT
  537. (
  538. dtct_nmbr VARCHAR2(8) not null,
  539. stat_dt VARCHAR2(14) not null,
  540. syst_kind_dvsn VARCHAR2(1) not null,
  541. tfvl NUMBER(6) default 0,
  542. avrg_sped NUMBER(3) default 0,
  543. avrg_ocpy_rate NUMBER(6,2),
  544. avrg_hdwy VARCHAR2(6),
  545. avrg_lngt NUMBER(5,1)
  546. )
  547. tablespace ITS_HIST_DATA
  548. pctfree 10
  549. initrans 1
  550. maxtrans 255
  551. nologging;
  552. comment on table GJUTIS.TB_VDS_DTCT_MN_STAT
  553. is 'VDS 검지기 월 통계';
  554. comment on column GJUTIS.TB_VDS_DTCT_MN_STAT.dtct_nmbr
  555. is '검지기 번호';
  556. comment on column GJUTIS.TB_VDS_DTCT_MN_STAT.stat_dt
  557. is '통계 일시';
  558. comment on column GJUTIS.TB_VDS_DTCT_MN_STAT.syst_kind_dvsn
  559. is '시스템 종류 구분';
  560. comment on column GJUTIS.TB_VDS_DTCT_MN_STAT.tfvl
  561. is '교통량';
  562. comment on column GJUTIS.TB_VDS_DTCT_MN_STAT.avrg_sped
  563. is '평균 속도';
  564. comment on column GJUTIS.TB_VDS_DTCT_MN_STAT.avrg_ocpy_rate
  565. is '평균 점유 율';
  566. comment on column GJUTIS.TB_VDS_DTCT_MN_STAT.avrg_hdwy
  567. is '평균 차두시간';
  568. comment on column GJUTIS.TB_VDS_DTCT_MN_STAT.avrg_lngt
  569. is '평균 길이';
  570. alter table GJUTIS.TB_VDS_DTCT_MN_STAT
  571. add constraint IX_VDS_DTCT_MN_STAT_PK primary key (DTCT_NMBR, STAT_DT, SYST_KIND_DVSN)
  572. using index
  573. tablespace ITS_HIST_DATA
  574. pctfree 10
  575. initrans 2
  576. maxtrans 255;
  577. alter table GJUTIS.TB_VDS_DTCT_MN_STAT
  578. add constraint FK_TB_DTCT_MN_STAT_01 foreign key (DTCT_NMBR)
  579. references GJUTIS.TB_VDS_DTCT_MSTR (DTCT_NMBR)
  580. disable;
  581. prompt
  582. prompt Creating table TB_VDS_DTCT_PAST_CLCT
  583. prompt ====================================
  584. prompt
  585. create table GJUTIS.TB_VDS_DTCT_PAST_CLCT
  586. (
  587. dtct_nmbr VARCHAR2(8) not null,
  588. ocrr_dt VARCHAR2(14) not null,
  589. syst_kind_dvsn VARCHAR2(1) not null,
  590. tfvl NUMBER(6) default 0,
  591. sped NUMBER(3) default 0,
  592. avrg_ocpy_rate NUMBER(6,2),
  593. hdwy VARCHAR2(6),
  594. avrg_lngt NUMBER(5,1)
  595. )
  596. tablespace ITS_HIST_DATA
  597. pctfree 10
  598. initrans 1
  599. maxtrans 255
  600. nologging;
  601. comment on table GJUTIS.TB_VDS_DTCT_PAST_CLCT
  602. is 'VDS 검지기 과거 수집';
  603. comment on column GJUTIS.TB_VDS_DTCT_PAST_CLCT.dtct_nmbr
  604. is '검지기 번호';
  605. comment on column GJUTIS.TB_VDS_DTCT_PAST_CLCT.ocrr_dt
  606. is '발생 일시';
  607. comment on column GJUTIS.TB_VDS_DTCT_PAST_CLCT.syst_kind_dvsn
  608. is '시스템 종류 구분';
  609. comment on column GJUTIS.TB_VDS_DTCT_PAST_CLCT.tfvl
  610. is '교통량';
  611. comment on column GJUTIS.TB_VDS_DTCT_PAST_CLCT.sped
  612. is '속도';
  613. comment on column GJUTIS.TB_VDS_DTCT_PAST_CLCT.avrg_ocpy_rate
  614. is '평균 점유 율';
  615. comment on column GJUTIS.TB_VDS_DTCT_PAST_CLCT.hdwy
  616. is '차두시간';
  617. comment on column GJUTIS.TB_VDS_DTCT_PAST_CLCT.avrg_lngt
  618. is '평균 길이';
  619. alter table GJUTIS.TB_VDS_DTCT_PAST_CLCT
  620. add constraint IX_VDS_DTCT_PAST_CLCT_PK primary key (DTCT_NMBR, OCRR_DT, SYST_KIND_DVSN)
  621. using index
  622. tablespace ITS_HIST_DATA
  623. pctfree 10
  624. initrans 2
  625. maxtrans 255;
  626. alter table GJUTIS.TB_VDS_DTCT_PAST_CLCT
  627. add constraint FK_TB_PAST_CLCT_01 foreign key (DTCT_NMBR)
  628. references GJUTIS.TB_VDS_DTCT_MSTR (DTCT_NMBR)
  629. disable;
  630. prompt
  631. prompt Creating table TB_VDS_DTCT_RAW_CLCT
  632. prompt ===================================
  633. prompt
  634. create table GJUTIS.TB_VDS_DTCT_RAW_CLCT
  635. (
  636. dtct_nmbr VARCHAR2(8) not null,
  637. ocrr_dt VARCHAR2(14) not null,
  638. syst_kind_dvsn VARCHAR2(1) not null,
  639. tfvl NUMBER(6) default 0,
  640. avrg_ocpy_rate NUMBER(6,2),
  641. sped NUMBER(3) default 0,
  642. hdwy VARCHAR2(6),
  643. avrg_lngt NUMBER(5,1)
  644. )
  645. tablespace ITS_HIST_DATA
  646. pctfree 10
  647. initrans 1
  648. maxtrans 255
  649. nologging;
  650. comment on table GJUTIS.TB_VDS_DTCT_RAW_CLCT
  651. is 'VDS 검지기 원시 수집';
  652. comment on column GJUTIS.TB_VDS_DTCT_RAW_CLCT.dtct_nmbr
  653. is '검지기 번호';
  654. comment on column GJUTIS.TB_VDS_DTCT_RAW_CLCT.ocrr_dt
  655. is '발생 일시';
  656. comment on column GJUTIS.TB_VDS_DTCT_RAW_CLCT.syst_kind_dvsn
  657. is '시스템 종류 구분';
  658. comment on column GJUTIS.TB_VDS_DTCT_RAW_CLCT.tfvl
  659. is '교통량';
  660. comment on column GJUTIS.TB_VDS_DTCT_RAW_CLCT.avrg_ocpy_rate
  661. is '평균 점유 율';
  662. comment on column GJUTIS.TB_VDS_DTCT_RAW_CLCT.sped
  663. is '속도';
  664. comment on column GJUTIS.TB_VDS_DTCT_RAW_CLCT.hdwy
  665. is '차두시간';
  666. comment on column GJUTIS.TB_VDS_DTCT_RAW_CLCT.avrg_lngt
  667. is '평균 길이';
  668. alter table GJUTIS.TB_VDS_DTCT_RAW_CLCT
  669. add constraint IX_VDS_DTCT_RAW_CLCT_PK primary key (DTCT_NMBR, OCRR_DT, SYST_KIND_DVSN)
  670. using index
  671. tablespace ITS_HIST_DATA
  672. pctfree 10
  673. initrans 2
  674. maxtrans 255;
  675. alter table GJUTIS.TB_VDS_DTCT_RAW_CLCT
  676. add constraint FK_TB_DTCT_RAW_CLCT_01 foreign key (DTCT_NMBR)
  677. references GJUTIS.TB_VDS_DTCT_MSTR (DTCT_NMBR)
  678. disable;
  679. prompt
  680. prompt Creating table TB_VDS_DTCT_RLBL_CNDT
  681. prompt ====================================
  682. prompt
  683. create table GJUTIS.TB_VDS_DTCT_RLBL_CNDT
  684. (
  685. dtct_nmbr VARCHAR2(8) not null,
  686. syst_kind_dvsn VARCHAR2(1) not null,
  687. max_tfvl NUMBER(6) default 0,
  688. min_tfvl NUMBER(6) default 0,
  689. max_ocpy_rate NUMBER(6,2),
  690. min_ocpy_rate NUMBER(6,2),
  691. max_sped NUMBER(3) default 0,
  692. min_sped NUMBER(3) default 0,
  693. del_yn CHAR(1) default 'N',
  694. frst_regr_nmbr VARCHAR2(20),
  695. frst_rgst_dt VARCHAR2(14),
  696. last_crpr_nmbr VARCHAR2(20),
  697. last_crct_dt VARCHAR2(14)
  698. )
  699. tablespace ITS_HIST_DATA
  700. pctfree 10
  701. initrans 1
  702. maxtrans 255
  703. nologging;
  704. comment on table GJUTIS.TB_VDS_DTCT_RLBL_CNDT
  705. is 'VDS 검지기 신뢰도 조건';
  706. comment on column GJUTIS.TB_VDS_DTCT_RLBL_CNDT.dtct_nmbr
  707. is '검지기 번호';
  708. comment on column GJUTIS.TB_VDS_DTCT_RLBL_CNDT.syst_kind_dvsn
  709. is '시스템 종류 구분';
  710. comment on column GJUTIS.TB_VDS_DTCT_RLBL_CNDT.max_tfvl
  711. is '최대 교통량';
  712. comment on column GJUTIS.TB_VDS_DTCT_RLBL_CNDT.min_tfvl
  713. is '최소 교통량';
  714. comment on column GJUTIS.TB_VDS_DTCT_RLBL_CNDT.max_ocpy_rate
  715. is '최대 점유 율';
  716. comment on column GJUTIS.TB_VDS_DTCT_RLBL_CNDT.min_ocpy_rate
  717. is '최소 점유 율';
  718. comment on column GJUTIS.TB_VDS_DTCT_RLBL_CNDT.max_sped
  719. is '최대 속도';
  720. comment on column GJUTIS.TB_VDS_DTCT_RLBL_CNDT.min_sped
  721. is '최소 속도';
  722. comment on column GJUTIS.TB_VDS_DTCT_RLBL_CNDT.del_yn
  723. is '삭제 여부';
  724. comment on column GJUTIS.TB_VDS_DTCT_RLBL_CNDT.frst_regr_nmbr
  725. is '최초 등록자 번호';
  726. comment on column GJUTIS.TB_VDS_DTCT_RLBL_CNDT.frst_rgst_dt
  727. is '최초 등록 일시';
  728. comment on column GJUTIS.TB_VDS_DTCT_RLBL_CNDT.last_crpr_nmbr
  729. is '최종 수정자 번호';
  730. comment on column GJUTIS.TB_VDS_DTCT_RLBL_CNDT.last_crct_dt
  731. is '최종 수정 일시';
  732. alter table GJUTIS.TB_VDS_DTCT_RLBL_CNDT
  733. add constraint IX_VDS_DTCT_RLBL_CNDT_PK primary key (DTCT_NMBR, SYST_KIND_DVSN)
  734. using index
  735. tablespace ITS_HIST_DATA
  736. pctfree 10
  737. initrans 2
  738. maxtrans 255;
  739. alter table GJUTIS.TB_VDS_DTCT_RLBL_CNDT
  740. add constraint FK_TB_DTCT_RLBL_CNDT_01 foreign key (DTCT_NMBR)
  741. references GJUTIS.TB_VDS_DTCT_MSTR (DTCT_NMBR)
  742. disable;
  743. prompt
  744. prompt Creating table TB_VDS_DTCT_SMTH
  745. prompt ===============================
  746. prompt
  747. create table GJUTIS.TB_VDS_DTCT_SMTH
  748. (
  749. dtct_nmbr VARCHAR2(8) not null,
  750. ocrr_dt VARCHAR2(14) not null,
  751. syst_kind_dvsn VARCHAR2(1) not null,
  752. tfvl NUMBER(6) default 0,
  753. ocpy_rate NUMBER(5,2) default 0,
  754. sped NUMBER(3) default 0,
  755. hdwy VARCHAR2(6),
  756. avrg_lngt NUMBER(5,1)
  757. )
  758. tablespace ITS_HIST_DATA
  759. pctfree 10
  760. initrans 1
  761. maxtrans 255
  762. nologging;
  763. comment on table GJUTIS.TB_VDS_DTCT_SMTH
  764. is 'VDS 검지기 평활화';
  765. comment on column GJUTIS.TB_VDS_DTCT_SMTH.dtct_nmbr
  766. is '검지기 번호';
  767. comment on column GJUTIS.TB_VDS_DTCT_SMTH.ocrr_dt
  768. is '발생 일시';
  769. comment on column GJUTIS.TB_VDS_DTCT_SMTH.syst_kind_dvsn
  770. is '시스템 종류 구분';
  771. comment on column GJUTIS.TB_VDS_DTCT_SMTH.tfvl
  772. is '교통량';
  773. comment on column GJUTIS.TB_VDS_DTCT_SMTH.ocpy_rate
  774. is '점유 율';
  775. comment on column GJUTIS.TB_VDS_DTCT_SMTH.sped
  776. is '속도';
  777. comment on column GJUTIS.TB_VDS_DTCT_SMTH.hdwy
  778. is '차두시간';
  779. comment on column GJUTIS.TB_VDS_DTCT_SMTH.avrg_lngt
  780. is '평균 길이';
  781. alter table GJUTIS.TB_VDS_DTCT_SMTH
  782. add constraint IX_VDS_DTCT_SMTH_PK primary key (DTCT_NMBR, OCRR_DT, SYST_KIND_DVSN)
  783. using index
  784. tablespace ITS_HIST_DATA
  785. pctfree 10
  786. initrans 2
  787. maxtrans 255;
  788. alter table GJUTIS.TB_VDS_DTCT_SMTH
  789. add constraint FK_TB_DTCT_SMTH_01 foreign key (DTCT_NMBR)
  790. references GJUTIS.TB_VDS_DTCT_MSTR (DTCT_NMBR)
  791. disable;
  792. prompt
  793. prompt Creating table TB_VDS_DTCT_SMTH_PARA
  794. prompt ====================================
  795. prompt
  796. create table GJUTIS.TB_VDS_DTCT_SMTH_PARA
  797. (
  798. dtct_nmbr VARCHAR2(8) not null,
  799. syst_kind_dvsn VARCHAR2(1) not null,
  800. tfvl_fctr NUMBER(6,2),
  801. ocpy_rate_fctr NUMBER(6,2),
  802. sped_fctr NUMBER(6,2),
  803. hdwy_fctr NUMBER(6,2),
  804. frst_regr_nmbr VARCHAR2(20),
  805. frst_rgst_dt VARCHAR2(14),
  806. last_crpr_nmbr VARCHAR2(20),
  807. last_crct_dt VARCHAR2(14),
  808. del_yn CHAR(1) default 'N'
  809. )
  810. tablespace ITS_HIST_DATA
  811. pctfree 10
  812. initrans 1
  813. maxtrans 255
  814. nologging;
  815. comment on table GJUTIS.TB_VDS_DTCT_SMTH_PARA
  816. is 'VDS 검지기 평활화 파라미터';
  817. comment on column GJUTIS.TB_VDS_DTCT_SMTH_PARA.dtct_nmbr
  818. is '검지기 번호';
  819. comment on column GJUTIS.TB_VDS_DTCT_SMTH_PARA.syst_kind_dvsn
  820. is '시스템 종류 구분';
  821. comment on column GJUTIS.TB_VDS_DTCT_SMTH_PARA.tfvl_fctr
  822. is '교통량 계수';
  823. comment on column GJUTIS.TB_VDS_DTCT_SMTH_PARA.ocpy_rate_fctr
  824. is '점유 율 계수';
  825. comment on column GJUTIS.TB_VDS_DTCT_SMTH_PARA.sped_fctr
  826. is '속도 계수';
  827. comment on column GJUTIS.TB_VDS_DTCT_SMTH_PARA.hdwy_fctr
  828. is '차두시간 계수';
  829. comment on column GJUTIS.TB_VDS_DTCT_SMTH_PARA.frst_regr_nmbr
  830. is '최초 등록자 번호';
  831. comment on column GJUTIS.TB_VDS_DTCT_SMTH_PARA.frst_rgst_dt
  832. is '최초 등록 일시';
  833. comment on column GJUTIS.TB_VDS_DTCT_SMTH_PARA.last_crpr_nmbr
  834. is '최종 수정자 번호';
  835. comment on column GJUTIS.TB_VDS_DTCT_SMTH_PARA.last_crct_dt
  836. is '최종 수정 일시';
  837. comment on column GJUTIS.TB_VDS_DTCT_SMTH_PARA.del_yn
  838. is '삭제 여부';
  839. alter table GJUTIS.TB_VDS_DTCT_SMTH_PARA
  840. add constraint IX_VDS_DTCT_SMTH_PARA_PK primary key (DTCT_NMBR, SYST_KIND_DVSN)
  841. using index
  842. tablespace ITS_HIST_DATA
  843. pctfree 10
  844. initrans 2
  845. maxtrans 255;
  846. alter table GJUTIS.TB_VDS_DTCT_SMTH_PARA
  847. add constraint FK_TB_DTCT_ADJS_01 foreign key (DTCT_NMBR)
  848. references GJUTIS.TB_VDS_DTCT_MSTR (DTCT_NMBR)
  849. disable;
  850. prompt
  851. prompt Creating table TB_VDS_EVT_CD
  852. prompt ============================
  853. prompt
  854. create table GJUTIS.TB_VDS_EVT_CD
  855. (
  856. vds_evt_cd VARCHAR2(10) not null,
  857. evt_expl VARCHAR2(200),
  858. cd_argm_cnt NUMBER(3) default 0
  859. )
  860. tablespace ITS_HIST_DATA
  861. pctfree 10
  862. initrans 1
  863. maxtrans 255
  864. nologging;
  865. comment on table GJUTIS.TB_VDS_EVT_CD
  866. is 'VDS 이벤트 코드';
  867. comment on column GJUTIS.TB_VDS_EVT_CD.vds_evt_cd
  868. is 'VDS 이벤트 코드';
  869. comment on column GJUTIS.TB_VDS_EVT_CD.evt_expl
  870. is '이벤트 설명';
  871. comment on column GJUTIS.TB_VDS_EVT_CD.cd_argm_cnt
  872. is '코드 인자 건수';
  873. alter table GJUTIS.TB_VDS_EVT_CD
  874. add constraint IX_VDS_EVT_CD_PK primary key (VDS_EVT_CD)
  875. using index
  876. tablespace ITS_HIST_DATA
  877. pctfree 10
  878. initrans 2
  879. maxtrans 255;
  880. prompt
  881. prompt Creating table TB_VDS_EVT_HS
  882. prompt ============================
  883. prompt
  884. create table GJUTIS.TB_VDS_EVT_HS
  885. (
  886. ocrr_dt VARCHAR2(14) not null,
  887. seq VARCHAR2(10) not null,
  888. vds_evt_cd VARCHAR2(10) not null,
  889. evt_dvsn NUMBER(3) default 0
  890. )
  891. tablespace ITS_HIST_DATA
  892. pctfree 10
  893. initrans 1
  894. maxtrans 255
  895. nologging;
  896. comment on table GJUTIS.TB_VDS_EVT_HS
  897. is 'VDS 이벤트 이력';
  898. comment on column GJUTIS.TB_VDS_EVT_HS.ocrr_dt
  899. is '발생 일시';
  900. comment on column GJUTIS.TB_VDS_EVT_HS.seq
  901. is '일련번호';
  902. comment on column GJUTIS.TB_VDS_EVT_HS.vds_evt_cd
  903. is 'VDS 이벤트 코드';
  904. comment on column GJUTIS.TB_VDS_EVT_HS.evt_dvsn
  905. is '이벤트 구분';
  906. alter table GJUTIS.TB_VDS_EVT_HS
  907. add constraint IX_VDS_EVT_HS_PK primary key (OCRR_DT, SEQ, VDS_EVT_CD)
  908. using index
  909. tablespace ITS_HIST_DATA
  910. pctfree 10
  911. initrans 2
  912. maxtrans 255;
  913. alter table GJUTIS.TB_VDS_EVT_HS
  914. add constraint FK_TB_EVT_HS_01 foreign key (VDS_EVT_CD)
  915. references GJUTIS.TB_VDS_EVT_CD (VDS_EVT_CD)
  916. disable;
  917. spool off