avi_table.sql 35 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163
  1. --------------------------------------------------
  2. -- Export file for user GJUTIS --
  3. -- Created by OpenValue on 2014-07-16, 11:02:29 --
  4. --------------------------------------------------
  5. spool avi.log
  6. prompt
  7. prompt Creating table TB_AVI_SECT_MSTR
  8. prompt ===============================
  9. prompt
  10. create table GJUTIS.TB_AVI_SECT_MSTR
  11. (
  12. avi_sect_nmbr VARCHAR2(10) not null,
  13. strt_spot_nm VARCHAR2(60),
  14. end_spot_nm VARCHAR2(60),
  15. avi_sect_nm VARCHAR2(60),
  16. avi_sect_dstc NUMBER(6) default 0,
  17. shrt_pass_hh NUMBER(6) default 0,
  18. lnst_pass_hh NUMBER(6) default 0,
  19. spot_num NUMBER(3) default 0,
  20. stnd_drft_val NUMBER(9),
  21. min_sped NUMBER(3) default 0,
  22. max_sped NUMBER(3) default 0,
  23. smth_fctr NUMBER(5,2) default 0,
  24. del_yn CHAR(1) default 'N',
  25. frst_regr_nmbr VARCHAR2(20),
  26. frst_rgst_dt VARCHAR2(14),
  27. last_crpr_nmbr VARCHAR2(20),
  28. last_crct_dt VARCHAR2(14)
  29. )
  30. tablespace ITS_HIST_DATA
  31. pctfree 10
  32. initrans 1
  33. maxtrans 255
  34. nologging;
  35. comment on table GJUTIS.TB_AVI_SECT_MSTR
  36. is 'AVI 구간 마스터';
  37. comment on column GJUTIS.TB_AVI_SECT_MSTR.avi_sect_nmbr
  38. is 'AVI 구간 번호';
  39. comment on column GJUTIS.TB_AVI_SECT_MSTR.strt_spot_nm
  40. is '시작 지점 명';
  41. comment on column GJUTIS.TB_AVI_SECT_MSTR.end_spot_nm
  42. is '종료 지점 명';
  43. comment on column GJUTIS.TB_AVI_SECT_MSTR.avi_sect_nm
  44. is 'AVI 구간 명';
  45. comment on column GJUTIS.TB_AVI_SECT_MSTR.avi_sect_dstc
  46. is 'AVI 구간 거리';
  47. comment on column GJUTIS.TB_AVI_SECT_MSTR.shrt_pass_hh
  48. is '최단 통과 시간';
  49. comment on column GJUTIS.TB_AVI_SECT_MSTR.lnst_pass_hh
  50. is '최장 통과 시간';
  51. comment on column GJUTIS.TB_AVI_SECT_MSTR.spot_num
  52. is '지점 개수';
  53. comment on column GJUTIS.TB_AVI_SECT_MSTR.stnd_drft_val
  54. is '표준 편차 값';
  55. comment on column GJUTIS.TB_AVI_SECT_MSTR.min_sped
  56. is '최소 속도';
  57. comment on column GJUTIS.TB_AVI_SECT_MSTR.max_sped
  58. is '최대 속도';
  59. comment on column GJUTIS.TB_AVI_SECT_MSTR.smth_fctr
  60. is '평활화 계수';
  61. comment on column GJUTIS.TB_AVI_SECT_MSTR.del_yn
  62. is '삭제 여부';
  63. comment on column GJUTIS.TB_AVI_SECT_MSTR.frst_regr_nmbr
  64. is '최초 등록자 번호';
  65. comment on column GJUTIS.TB_AVI_SECT_MSTR.frst_rgst_dt
  66. is '최초 등록 일시';
  67. comment on column GJUTIS.TB_AVI_SECT_MSTR.last_crpr_nmbr
  68. is '최종 수정자 번호';
  69. comment on column GJUTIS.TB_AVI_SECT_MSTR.last_crct_dt
  70. is '최종 수정 일시';
  71. alter table GJUTIS.TB_AVI_SECT_MSTR
  72. add constraint IX_AVI_SECT_MSTR_PK primary key (AVI_SECT_NMBR)
  73. using index
  74. tablespace ITS_HIST_DATA
  75. pctfree 10
  76. initrans 2
  77. maxtrans 255;
  78. prompt
  79. prompt Creating table TB_AVI_15M_STAT
  80. prompt ==============================
  81. prompt
  82. create table GJUTIS.TB_AVI_15M_STAT
  83. (
  84. avi_sect_nmbr VARCHAR2(10) not null,
  85. stat_dt VARCHAR2(14) not null,
  86. stat_yy VARCHAR2(4) not null,
  87. stat_mn VARCHAR2(2) not null,
  88. stat_dd VARCHAR2(2) not null,
  89. stat_hm VARCHAR2(4) not null,
  90. day_type_cd VARCHAR2(7),
  91. tfvl NUMBER(6) default 0,
  92. trvl_sped NUMBER(3) default 0,
  93. data_num NUMBER(3) default 0,
  94. mtch_rate NUMBER(3)
  95. )
  96. tablespace ITS_HIST_DATA
  97. pctfree 10
  98. initrans 1
  99. maxtrans 255
  100. nologging;
  101. comment on table GJUTIS.TB_AVI_15M_STAT
  102. is 'AVI 15분 통계';
  103. comment on column GJUTIS.TB_AVI_15M_STAT.avi_sect_nmbr
  104. is 'AVI 구간 번호';
  105. comment on column GJUTIS.TB_AVI_15M_STAT.stat_dt
  106. is '통계 일시';
  107. comment on column GJUTIS.TB_AVI_15M_STAT.stat_yy
  108. is '통계 년';
  109. comment on column GJUTIS.TB_AVI_15M_STAT.stat_mn
  110. is '통계 월';
  111. comment on column GJUTIS.TB_AVI_15M_STAT.stat_dd
  112. is '통계 일';
  113. comment on column GJUTIS.TB_AVI_15M_STAT.stat_hm
  114. is '통계 시분';
  115. comment on column GJUTIS.TB_AVI_15M_STAT.day_type_cd
  116. is '요일 유형 코드';
  117. comment on column GJUTIS.TB_AVI_15M_STAT.tfvl
  118. is '교통량';
  119. comment on column GJUTIS.TB_AVI_15M_STAT.trvl_sped
  120. is '통행 속도';
  121. comment on column GJUTIS.TB_AVI_15M_STAT.data_num
  122. is '데이터 개수';
  123. comment on column GJUTIS.TB_AVI_15M_STAT.mtch_rate
  124. is '매칭 율';
  125. alter table GJUTIS.TB_AVI_15M_STAT
  126. add constraint IX_AVI_15M_STAT_PK primary key (AVI_SECT_NMBR, STAT_DT)
  127. using index
  128. tablespace ITS_HIST_DATA
  129. pctfree 10
  130. initrans 2
  131. maxtrans 255;
  132. alter table GJUTIS.TB_AVI_15M_STAT
  133. add constraint FK_AVI_15M_STAT__AVI_SECT_NMBR foreign key (AVI_SECT_NMBR)
  134. references GJUTIS.TB_AVI_SECT_MSTR (AVI_SECT_NMBR)
  135. disable;
  136. prompt
  137. prompt Creating table TB_AVI_5M_STAT
  138. prompt =============================
  139. prompt
  140. create table GJUTIS.TB_AVI_5M_STAT
  141. (
  142. avi_sect_nmbr VARCHAR2(10) not null,
  143. stat_dt VARCHAR2(14) not null,
  144. stat_ymd VARCHAR2(8) not null,
  145. stat_hm VARCHAR2(4) not null,
  146. day_type_cd VARCHAR2(7),
  147. tfvl NUMBER(6) default 0,
  148. trvl_sped NUMBER(3) default 0,
  149. data_num NUMBER(3) default 0,
  150. mtch_rate NUMBER(3)
  151. )
  152. tablespace ITS_HIST_DATA
  153. pctfree 10
  154. initrans 1
  155. maxtrans 255
  156. nologging;
  157. comment on table GJUTIS.TB_AVI_5M_STAT
  158. is 'AVI 5분 통계';
  159. comment on column GJUTIS.TB_AVI_5M_STAT.avi_sect_nmbr
  160. is 'AVI 구간 번호';
  161. comment on column GJUTIS.TB_AVI_5M_STAT.stat_dt
  162. is '통계 일시';
  163. comment on column GJUTIS.TB_AVI_5M_STAT.stat_ymd
  164. is '통계 일자';
  165. comment on column GJUTIS.TB_AVI_5M_STAT.stat_hm
  166. is '통계 시분';
  167. comment on column GJUTIS.TB_AVI_5M_STAT.day_type_cd
  168. is '요일 유형 코드';
  169. comment on column GJUTIS.TB_AVI_5M_STAT.tfvl
  170. is '교통량';
  171. comment on column GJUTIS.TB_AVI_5M_STAT.trvl_sped
  172. is '통행 속도';
  173. comment on column GJUTIS.TB_AVI_5M_STAT.data_num
  174. is '데이터 개수';
  175. comment on column GJUTIS.TB_AVI_5M_STAT.mtch_rate
  176. is '매칭 율';
  177. alter table GJUTIS.TB_AVI_5M_STAT
  178. add constraint IX_AVI_5M_STAT_PK primary key (AVI_SECT_NMBR, STAT_DT)
  179. using index
  180. tablespace ITS_HIST_DATA
  181. pctfree 10
  182. initrans 2
  183. maxtrans 255;
  184. alter table GJUTIS.TB_AVI_5M_STAT
  185. add constraint FK_TB_AVI_5M_STAT_01 foreign key (AVI_SECT_NMBR)
  186. references GJUTIS.TB_AVI_SECT_MSTR (AVI_SECT_NMBR)
  187. disable;
  188. prompt
  189. prompt Creating table TB_AVI_CTLR
  190. prompt ==========================
  191. prompt
  192. create table GJUTIS.TB_AVI_CTLR
  193. (
  194. avi_ctlr_mngm_nmbr VARCHAR2(20) not null,
  195. avi_id VARCHAR2(10),
  196. link_id NUMBER(10),
  197. avi_lctn_nm VARCHAR2(60),
  198. avi_vald_yn CHAR(1) default 'N',
  199. avi_ctlr_ip VARCHAR2(20),
  200. avi_ctlr_cmnc_port VARCHAR2(5),
  201. avi_main_ctlr_yn CHAR(1) default 'N',
  202. avi_mngm_lane_num NUMBER(2),
  203. avi_cmra_num NUMBER(2),
  204. avi_dtct_num NUMBER(2),
  205. avi_dtct_nm VARCHAR2(60),
  206. avi_clct_cycl NUMBER(3),
  207. avi_lamp_auto_yn CHAR(1) default 'N',
  208. avi_lamp_on_hms VARCHAR2(6),
  209. avi_lamp_off_hms VARCHAR2(6),
  210. avi_lamp_on_yn CHAR(1) default 'N',
  211. x_crdn NUMBER(11,8),
  212. y_crdn NUMBER(10,8),
  213. rmrk VARCHAR2(600),
  214. del_yn CHAR(1) default 'N',
  215. frst_regr_nmbr VARCHAR2(20),
  216. frst_rgst_dt VARCHAR2(14),
  217. last_crpr_nmbr VARCHAR2(20),
  218. last_crct_dt VARCHAR2(14)
  219. )
  220. tablespace ITS_HIST_DATA
  221. pctfree 10
  222. initrans 1
  223. maxtrans 255
  224. nologging;
  225. comment on table GJUTIS.TB_AVI_CTLR
  226. is 'AVI 제어기';
  227. comment on column GJUTIS.TB_AVI_CTLR.avi_ctlr_mngm_nmbr
  228. is 'AVI 제어기 관리 번호';
  229. comment on column GJUTIS.TB_AVI_CTLR.avi_id
  230. is 'AVI ID';
  231. comment on column GJUTIS.TB_AVI_CTLR.link_id
  232. is '링크 ID';
  233. comment on column GJUTIS.TB_AVI_CTLR.avi_lctn_nm
  234. is 'AVI 위치 명';
  235. comment on column GJUTIS.TB_AVI_CTLR.avi_vald_yn
  236. is 'AVI 유효 여부';
  237. comment on column GJUTIS.TB_AVI_CTLR.avi_ctlr_ip
  238. is 'AVI 제어기 아이피';
  239. comment on column GJUTIS.TB_AVI_CTLR.avi_ctlr_cmnc_port
  240. is 'AVI 제어기 통신 포트';
  241. comment on column GJUTIS.TB_AVI_CTLR.avi_main_ctlr_yn
  242. is 'AVI 주 제어기 여부';
  243. comment on column GJUTIS.TB_AVI_CTLR.avi_mngm_lane_num
  244. is 'AVI 관리 차로 개수';
  245. comment on column GJUTIS.TB_AVI_CTLR.avi_cmra_num
  246. is 'AVI 카메라 개수';
  247. comment on column GJUTIS.TB_AVI_CTLR.avi_dtct_num
  248. is 'AVI 검지기 개수';
  249. comment on column GJUTIS.TB_AVI_CTLR.avi_dtct_nm
  250. is 'AVI 검지기 명';
  251. comment on column GJUTIS.TB_AVI_CTLR.avi_clct_cycl
  252. is 'AVI 수집 주기';
  253. comment on column GJUTIS.TB_AVI_CTLR.avi_lamp_auto_yn
  254. is 'AVI 조명장치 자동 여부';
  255. comment on column GJUTIS.TB_AVI_CTLR.avi_lamp_on_hms
  256. is 'AVI 조명장치 ON 시각';
  257. comment on column GJUTIS.TB_AVI_CTLR.avi_lamp_off_hms
  258. is 'AVI 조명장치 OFF 시각';
  259. comment on column GJUTIS.TB_AVI_CTLR.avi_lamp_on_yn
  260. is 'AVI 조명장치 ON 여부';
  261. comment on column GJUTIS.TB_AVI_CTLR.x_crdn
  262. is 'X 좌표';
  263. comment on column GJUTIS.TB_AVI_CTLR.y_crdn
  264. is 'Y 좌표';
  265. comment on column GJUTIS.TB_AVI_CTLR.rmrk
  266. is '비고';
  267. comment on column GJUTIS.TB_AVI_CTLR.del_yn
  268. is '삭제 여부';
  269. comment on column GJUTIS.TB_AVI_CTLR.frst_regr_nmbr
  270. is '최초 등록자 번호';
  271. comment on column GJUTIS.TB_AVI_CTLR.frst_rgst_dt
  272. is '최초 등록 일시';
  273. comment on column GJUTIS.TB_AVI_CTLR.last_crpr_nmbr
  274. is '최종 수정자 번호';
  275. comment on column GJUTIS.TB_AVI_CTLR.last_crct_dt
  276. is '최종 수정 일시';
  277. alter table GJUTIS.TB_AVI_CTLR
  278. add constraint IX_AVI_CTLR_PK primary key (AVI_CTLR_MNGM_NMBR)
  279. using index
  280. tablespace ITS_HIST_DATA
  281. pctfree 10
  282. initrans 2
  283. maxtrans 255;
  284. prompt
  285. prompt Creating table TB_AVI_CMRA
  286. prompt ==========================
  287. prompt
  288. create table GJUTIS.TB_AVI_CMRA
  289. (
  290. avi_ctlr_mngm_nmbr VARCHAR2(20) not null,
  291. avi_cmra_id VARCHAR2(20) not null,
  292. pcpn_lane NUMBER(2),
  293. avi_cmra_drct_cd VARCHAR2(7),
  294. updt_dt VARCHAR2(14),
  295. del_yn CHAR(1) default 'N',
  296. fan_val NUMBER(4),
  297. tilt_val NUMBER(4),
  298. zoom_val NUMBER(4),
  299. focs_val NUMBER(4),
  300. frst_regr_nmbr VARCHAR2(20),
  301. frst_rgst_dt VARCHAR2(14),
  302. last_crpr_nmbr VARCHAR2(20),
  303. last_crct_dt VARCHAR2(14)
  304. )
  305. tablespace ITS_HIST_DATA
  306. pctfree 10
  307. initrans 1
  308. maxtrans 255
  309. nologging;
  310. comment on table GJUTIS.TB_AVI_CMRA
  311. is 'AVI 카메라';
  312. comment on column GJUTIS.TB_AVI_CMRA.avi_ctlr_mngm_nmbr
  313. is 'AVI 제어기 관리 번호';
  314. comment on column GJUTIS.TB_AVI_CMRA.avi_cmra_id
  315. is 'AVI 카메라 아이디';
  316. comment on column GJUTIS.TB_AVI_CMRA.pcpn_lane
  317. is '감지 차로';
  318. comment on column GJUTIS.TB_AVI_CMRA.avi_cmra_drct_cd
  319. is 'AVI 카메라 방향 코드';
  320. comment on column GJUTIS.TB_AVI_CMRA.updt_dt
  321. is '갱신 일시';
  322. comment on column GJUTIS.TB_AVI_CMRA.del_yn
  323. is '삭제 여부';
  324. comment on column GJUTIS.TB_AVI_CMRA.fan_val
  325. is '팬 값';
  326. comment on column GJUTIS.TB_AVI_CMRA.tilt_val
  327. is '틸트 값';
  328. comment on column GJUTIS.TB_AVI_CMRA.zoom_val
  329. is '줌 값';
  330. comment on column GJUTIS.TB_AVI_CMRA.focs_val
  331. is '초점 값';
  332. comment on column GJUTIS.TB_AVI_CMRA.frst_regr_nmbr
  333. is '최초 등록자 번호';
  334. comment on column GJUTIS.TB_AVI_CMRA.frst_rgst_dt
  335. is '최초 등록 일시';
  336. comment on column GJUTIS.TB_AVI_CMRA.last_crpr_nmbr
  337. is '최종 수정자 번호';
  338. comment on column GJUTIS.TB_AVI_CMRA.last_crct_dt
  339. is '최종 수정 일시';
  340. alter table GJUTIS.TB_AVI_CMRA
  341. add constraint IX_AVI_CMRA_PK primary key (AVI_CTLR_MNGM_NMBR, AVI_CMRA_ID)
  342. using index
  343. tablespace ITS_HIST_DATA
  344. pctfree 10
  345. initrans 2
  346. maxtrans 255;
  347. alter table GJUTIS.TB_AVI_CMRA
  348. add constraint FK_AVI_CMRA__AVI_CTLR_MNGM_NMB foreign key (AVI_CTLR_MNGM_NMBR)
  349. references GJUTIS.TB_AVI_CTLR (AVI_CTLR_MNGM_NMBR)
  350. disable;
  351. prompt
  352. prompt Creating table TB_AVI_CMRA_LANE
  353. prompt ===============================
  354. prompt
  355. create table GJUTIS.TB_AVI_CMRA_LANE
  356. (
  357. avi_ctlr_mngm_nmbr VARCHAR2(20) not null,
  358. avi_cmra_id VARCHAR2(20) not null,
  359. lane_nmbr NUMBER(2) not null,
  360. fan_val NUMBER(4),
  361. tilt_val NUMBER(4),
  362. zoom_val NUMBER(4),
  363. focs_val NUMBER(4),
  364. pcpn_lane_yn CHAR(1) default 'N',
  365. frst_regr_nmbr VARCHAR2(20),
  366. frst_rgst_dt VARCHAR2(14),
  367. last_crpr_nmbr VARCHAR2(20),
  368. last_crct_dt VARCHAR2(14)
  369. )
  370. tablespace ITS_HIST_DATA
  371. pctfree 10
  372. initrans 1
  373. maxtrans 255
  374. nologging;
  375. comment on table GJUTIS.TB_AVI_CMRA_LANE
  376. is 'AVI 카메라 차로';
  377. comment on column GJUTIS.TB_AVI_CMRA_LANE.avi_ctlr_mngm_nmbr
  378. is 'AVI 제어기 관리 번호';
  379. comment on column GJUTIS.TB_AVI_CMRA_LANE.avi_cmra_id
  380. is 'AVI 카메라 아이디';
  381. comment on column GJUTIS.TB_AVI_CMRA_LANE.lane_nmbr
  382. is '차로 번호';
  383. comment on column GJUTIS.TB_AVI_CMRA_LANE.fan_val
  384. is '팬 값';
  385. comment on column GJUTIS.TB_AVI_CMRA_LANE.tilt_val
  386. is '틸트 값';
  387. comment on column GJUTIS.TB_AVI_CMRA_LANE.zoom_val
  388. is '줌 값';
  389. comment on column GJUTIS.TB_AVI_CMRA_LANE.focs_val
  390. is '초점 값';
  391. comment on column GJUTIS.TB_AVI_CMRA_LANE.pcpn_lane_yn
  392. is '감지 차로 여부';
  393. comment on column GJUTIS.TB_AVI_CMRA_LANE.frst_regr_nmbr
  394. is '최초 등록자 번호';
  395. comment on column GJUTIS.TB_AVI_CMRA_LANE.frst_rgst_dt
  396. is '최초 등록 일시';
  397. comment on column GJUTIS.TB_AVI_CMRA_LANE.last_crpr_nmbr
  398. is '최종 수정자 번호';
  399. comment on column GJUTIS.TB_AVI_CMRA_LANE.last_crct_dt
  400. is '최종 수정 일시';
  401. alter table GJUTIS.TB_AVI_CMRA_LANE
  402. add constraint IX_AVI_CMRA_LANE_PK primary key (AVI_CTLR_MNGM_NMBR, AVI_CMRA_ID, LANE_NMBR)
  403. using index
  404. tablespace ITS_HIST_DATA
  405. pctfree 10
  406. initrans 2
  407. maxtrans 255;
  408. alter table GJUTIS.TB_AVI_CMRA_LANE
  409. add constraint FK_AVI_CMRA_LANE__AVI_CTLR_MNG foreign key (AVI_CTLR_MNGM_NMBR, AVI_CMRA_ID)
  410. references GJUTIS.TB_AVI_CMRA (AVI_CTLR_MNGM_NMBR, AVI_CMRA_ID)
  411. disable;
  412. prompt
  413. prompt Creating table TB_AVI_CTLR_IDNT
  414. prompt ===============================
  415. prompt
  416. create table GJUTIS.TB_AVI_CTLR_IDNT
  417. (
  418. avi_ctlr_mngm_nmbr VARCHAR2(20) not null,
  419. avi_dtct_nmbr VARCHAR2(2) not null,
  420. crtn_dt VARCHAR2(14) not null,
  421. crtn_ymd VARCHAR2(8) not null,
  422. crtn_hms VARCHAR2(6) not null,
  423. tot_data_num NUMBER(6) default 0,
  424. idnt_data_num NUMBER(6) default 0,
  425. nidn_data_num NUMBER(6) default 0,
  426. idnt_rate NUMBER(3)
  427. )
  428. tablespace ITS_HIST_DATA
  429. pctfree 10
  430. initrans 1
  431. maxtrans 255
  432. nologging;
  433. comment on table GJUTIS.TB_AVI_CTLR_IDNT
  434. is 'AVI 제어기 인식';
  435. comment on column GJUTIS.TB_AVI_CTLR_IDNT.avi_ctlr_mngm_nmbr
  436. is 'AVI 제어기 관리 번호';
  437. comment on column GJUTIS.TB_AVI_CTLR_IDNT.avi_dtct_nmbr
  438. is 'AVI 검지기 번호';
  439. comment on column GJUTIS.TB_AVI_CTLR_IDNT.crtn_dt
  440. is '생성 일시';
  441. comment on column GJUTIS.TB_AVI_CTLR_IDNT.crtn_ymd
  442. is '생성 일자';
  443. comment on column GJUTIS.TB_AVI_CTLR_IDNT.crtn_hms
  444. is '생성 시각';
  445. comment on column GJUTIS.TB_AVI_CTLR_IDNT.tot_data_num
  446. is '총 데이터 개수';
  447. comment on column GJUTIS.TB_AVI_CTLR_IDNT.idnt_data_num
  448. is '인식 데이터 개수';
  449. comment on column GJUTIS.TB_AVI_CTLR_IDNT.nidn_data_num
  450. is '미인식 데이터 개수';
  451. comment on column GJUTIS.TB_AVI_CTLR_IDNT.idnt_rate
  452. is '인식 율';
  453. alter table GJUTIS.TB_AVI_CTLR_IDNT
  454. add constraint IX_AVI_CTLR_IDNT_PK primary key (AVI_CTLR_MNGM_NMBR, AVI_DTCT_NMBR, CRTN_DT)
  455. using index
  456. tablespace ITS_HIST_DATA
  457. pctfree 10
  458. initrans 2
  459. maxtrans 255;
  460. alter table GJUTIS.TB_AVI_CTLR_IDNT
  461. add constraint FK_AVI_CTLR_IDNT__AVI_CTLR_MNG foreign key (AVI_CTLR_MNGM_NMBR)
  462. references GJUTIS.TB_AVI_CTLR (AVI_CTLR_MNGM_NMBR)
  463. disable;
  464. prompt
  465. prompt Creating table TB_AVI_CTLR_STTS
  466. prompt ===============================
  467. prompt
  468. create table GJUTIS.TB_AVI_CTLR_STTS
  469. (
  470. avi_ctlr_mngm_nmbr VARCHAR2(20) not null,
  471. cmnc_stts_cd VARCHAR2(7),
  472. cbox_door_stts_cd VARCHAR2(7),
  473. fan_stts_cd VARCHAR2(7),
  474. hetr_stts_cd VARCHAR2(7),
  475. tmpr NUMBER(6,3),
  476. cmra_mtns_stts_cd VARCHAR2(7),
  477. volt_stts_cd VARCHAR2(7),
  478. lamp_stts_cd VARCHAR2(7),
  479. updt_dt VARCHAR2(14)
  480. )
  481. tablespace ITS_HIST_DATA
  482. pctfree 10
  483. initrans 1
  484. maxtrans 255
  485. nologging;
  486. comment on table GJUTIS.TB_AVI_CTLR_STTS
  487. is 'AVI 제어기 상태';
  488. comment on column GJUTIS.TB_AVI_CTLR_STTS.avi_ctlr_mngm_nmbr
  489. is 'AVI 제어기 관리 번호';
  490. comment on column GJUTIS.TB_AVI_CTLR_STTS.cmnc_stts_cd
  491. is '통신 상태 코드';
  492. comment on column GJUTIS.TB_AVI_CTLR_STTS.cbox_door_stts_cd
  493. is '함체 문 상태 코드';
  494. comment on column GJUTIS.TB_AVI_CTLR_STTS.fan_stts_cd
  495. is '팬 상태 코드';
  496. comment on column GJUTIS.TB_AVI_CTLR_STTS.hetr_stts_cd
  497. is '히터 상태 코드';
  498. comment on column GJUTIS.TB_AVI_CTLR_STTS.tmpr
  499. is '온도';
  500. comment on column GJUTIS.TB_AVI_CTLR_STTS.cmra_mtns_stts_cd
  501. is '카메라 동작 상태 코드';
  502. comment on column GJUTIS.TB_AVI_CTLR_STTS.volt_stts_cd
  503. is '전압 상태 코드';
  504. comment on column GJUTIS.TB_AVI_CTLR_STTS.lamp_stts_cd
  505. is '조명장치 상태 코드';
  506. comment on column GJUTIS.TB_AVI_CTLR_STTS.updt_dt
  507. is '갱신 일시';
  508. alter table GJUTIS.TB_AVI_CTLR_STTS
  509. add constraint IX_AVI_CTLR_STTS_PK primary key (AVI_CTLR_MNGM_NMBR)
  510. using index
  511. tablespace ITS_HIST_DATA
  512. pctfree 10
  513. initrans 2
  514. maxtrans 255;
  515. alter table GJUTIS.TB_AVI_CTLR_STTS
  516. add constraint FK_AVI_CTLR_STTS__AVI_CTLR_MNG foreign key (AVI_CTLR_MNGM_NMBR)
  517. references GJUTIS.TB_AVI_CTLR (AVI_CTLR_MNGM_NMBR)
  518. disable;
  519. prompt
  520. prompt Creating table TB_AVI_CTLR_STTS_HS
  521. prompt ==================================
  522. prompt
  523. create table GJUTIS.TB_AVI_CTLR_STTS_HS
  524. (
  525. avi_ctlr_mngm_nmbr VARCHAR2(20) not null,
  526. crtn_dt VARCHAR2(14) not null,
  527. cmnc_stts_cd VARCHAR2(7),
  528. cbox_door_stts_cd VARCHAR2(7),
  529. fan_stts_cd VARCHAR2(7),
  530. hetr_stts_cd VARCHAR2(7),
  531. tmpr NUMBER(6,3),
  532. cmra_mtns_stts_cd VARCHAR2(7),
  533. volt_stts_cd VARCHAR2(7),
  534. lamp_stts_cd VARCHAR2(7)
  535. )
  536. tablespace ITS_HIST_DATA
  537. pctfree 10
  538. initrans 1
  539. maxtrans 255
  540. nologging;
  541. comment on table GJUTIS.TB_AVI_CTLR_STTS_HS
  542. is 'AVI 제어기 상태 이력';
  543. comment on column GJUTIS.TB_AVI_CTLR_STTS_HS.avi_ctlr_mngm_nmbr
  544. is 'AVI 제어기 관리 번호';
  545. comment on column GJUTIS.TB_AVI_CTLR_STTS_HS.crtn_dt
  546. is '생성 일시';
  547. comment on column GJUTIS.TB_AVI_CTLR_STTS_HS.cmnc_stts_cd
  548. is '통신 상태 코드';
  549. comment on column GJUTIS.TB_AVI_CTLR_STTS_HS.cbox_door_stts_cd
  550. is '함체 문 상태 코드';
  551. comment on column GJUTIS.TB_AVI_CTLR_STTS_HS.fan_stts_cd
  552. is '팬 상태 코드';
  553. comment on column GJUTIS.TB_AVI_CTLR_STTS_HS.hetr_stts_cd
  554. is '히터 상태 코드';
  555. comment on column GJUTIS.TB_AVI_CTLR_STTS_HS.tmpr
  556. is '온도';
  557. comment on column GJUTIS.TB_AVI_CTLR_STTS_HS.cmra_mtns_stts_cd
  558. is '카메라 동작 상태 코드';
  559. comment on column GJUTIS.TB_AVI_CTLR_STTS_HS.volt_stts_cd
  560. is '전압 상태 코드';
  561. comment on column GJUTIS.TB_AVI_CTLR_STTS_HS.lamp_stts_cd
  562. is '조명장치 상태 코드';
  563. alter table GJUTIS.TB_AVI_CTLR_STTS_HS
  564. add constraint IX_AVI_CTLR_STTS_HS_PK primary key (AVI_CTLR_MNGM_NMBR, CRTN_DT)
  565. using index
  566. tablespace ITS_HIST_DATA
  567. pctfree 10
  568. initrans 2
  569. maxtrans 255;
  570. alter table GJUTIS.TB_AVI_CTLR_STTS_HS
  571. add constraint FK_AVI_CTLR_STTS_HS__AVI_CTLR_ foreign key (AVI_CTLR_MNGM_NMBR)
  572. references GJUTIS.TB_AVI_CTLR (AVI_CTLR_MNGM_NMBR)
  573. disable;
  574. prompt
  575. prompt Creating table TB_AVI_CTLR_TRFC
  576. prompt ===============================
  577. prompt
  578. create table GJUTIS.TB_AVI_CTLR_TRFC
  579. (
  580. avi_ctlr_mngm_nmbr VARCHAR2(20) not null,
  581. avi_dtct_chnl_nmbr VARCHAR2(2) not null,
  582. crtn_dt VARCHAR2(14) not null,
  583. crtn_ymd VARCHAR2(8) not null,
  584. crtn_hms VARCHAR2(6) not null,
  585. tfvl NUMBER(6) default 0,
  586. ocpy_rate NUMBER(5,2) default 0,
  587. spot_sped NUMBER(3) default 0
  588. )
  589. tablespace ITS_HIST_DATA
  590. pctfree 10
  591. initrans 1
  592. maxtrans 255
  593. nologging;
  594. comment on table GJUTIS.TB_AVI_CTLR_TRFC
  595. is 'AVI 제어기 교통';
  596. comment on column GJUTIS.TB_AVI_CTLR_TRFC.avi_ctlr_mngm_nmbr
  597. is 'AVI 제어기 관리 번호';
  598. comment on column GJUTIS.TB_AVI_CTLR_TRFC.avi_dtct_chnl_nmbr
  599. is 'AVI 검지기 채널 번호';
  600. comment on column GJUTIS.TB_AVI_CTLR_TRFC.crtn_dt
  601. is '생성 일시';
  602. comment on column GJUTIS.TB_AVI_CTLR_TRFC.crtn_ymd
  603. is '생성 일자';
  604. comment on column GJUTIS.TB_AVI_CTLR_TRFC.crtn_hms
  605. is '생성 시각';
  606. comment on column GJUTIS.TB_AVI_CTLR_TRFC.tfvl
  607. is '교통량';
  608. comment on column GJUTIS.TB_AVI_CTLR_TRFC.ocpy_rate
  609. is '점유 율';
  610. comment on column GJUTIS.TB_AVI_CTLR_TRFC.spot_sped
  611. is '지점 속도';
  612. alter table GJUTIS.TB_AVI_CTLR_TRFC
  613. add constraint IX_AVI_CTLR_TRFC_PK primary key (AVI_CTLR_MNGM_NMBR, AVI_DTCT_CHNL_NMBR, CRTN_DT)
  614. using index
  615. tablespace ITS_HIST_DATA
  616. pctfree 10
  617. initrans 2
  618. maxtrans 255;
  619. alter table GJUTIS.TB_AVI_CTLR_TRFC
  620. add constraint FK_AVI_CTLR_TRFC__AVI_CTLR_MNG foreign key (AVI_CTLR_MNGM_NMBR)
  621. references GJUTIS.TB_AVI_CTLR (AVI_CTLR_MNGM_NMBR)
  622. disable;
  623. prompt
  624. prompt Creating table TB_AVI_DD_STAT
  625. prompt =============================
  626. prompt
  627. create table GJUTIS.TB_AVI_DD_STAT
  628. (
  629. avi_sect_nmbr VARCHAR2(10) not null,
  630. stat_dt VARCHAR2(14) not null,
  631. stat_yy VARCHAR2(4) not null,
  632. stat_mn VARCHAR2(2) not null,
  633. stat_dd VARCHAR2(2) not null,
  634. day_type_cd VARCHAR2(7),
  635. tfvl NUMBER(6) default 0,
  636. trvl_sped NUMBER(3) default 0,
  637. data_num NUMBER(3) default 0,
  638. mtch_rate NUMBER(3)
  639. )
  640. tablespace ITS_HIST_DATA
  641. pctfree 10
  642. initrans 1
  643. maxtrans 255
  644. nologging;
  645. comment on table GJUTIS.TB_AVI_DD_STAT
  646. is 'AVI 일 통계';
  647. comment on column GJUTIS.TB_AVI_DD_STAT.avi_sect_nmbr
  648. is 'AVI 구간 번호';
  649. comment on column GJUTIS.TB_AVI_DD_STAT.stat_dt
  650. is '통계 일시';
  651. comment on column GJUTIS.TB_AVI_DD_STAT.stat_yy
  652. is '통계 년';
  653. comment on column GJUTIS.TB_AVI_DD_STAT.stat_mn
  654. is '통계 월';
  655. comment on column GJUTIS.TB_AVI_DD_STAT.stat_dd
  656. is '통계 일';
  657. comment on column GJUTIS.TB_AVI_DD_STAT.day_type_cd
  658. is '요일 유형 코드';
  659. comment on column GJUTIS.TB_AVI_DD_STAT.tfvl
  660. is '교통량';
  661. comment on column GJUTIS.TB_AVI_DD_STAT.trvl_sped
  662. is '통행 속도';
  663. comment on column GJUTIS.TB_AVI_DD_STAT.data_num
  664. is '데이터 개수';
  665. comment on column GJUTIS.TB_AVI_DD_STAT.mtch_rate
  666. is '매칭 율';
  667. alter table GJUTIS.TB_AVI_DD_STAT
  668. add constraint IX_AVI_DD_STAT_PK primary key (AVI_SECT_NMBR, STAT_DT)
  669. using index
  670. tablespace ITS_HIST_DATA
  671. pctfree 10
  672. initrans 2
  673. maxtrans 255;
  674. alter table GJUTIS.TB_AVI_DD_STAT
  675. add constraint FK_AVI_DD_STAT__AVI_SECT_NMBR foreign key (AVI_SECT_NMBR)
  676. references GJUTIS.TB_AVI_SECT_MSTR (AVI_SECT_NMBR)
  677. disable;
  678. prompt
  679. prompt Creating table TB_AVI_HH_STAT
  680. prompt =============================
  681. prompt
  682. create table GJUTIS.TB_AVI_HH_STAT
  683. (
  684. avi_sect_nmbr VARCHAR2(10) not null,
  685. stat_dt VARCHAR2(14) not null,
  686. stat_yy VARCHAR2(4) not null,
  687. stat_mn VARCHAR2(2) not null,
  688. stat_dd VARCHAR2(2) not null,
  689. stat_hm VARCHAR2(4) not null,
  690. day_type_cd VARCHAR2(7),
  691. tfvl NUMBER(6) default 0,
  692. trvl_sped NUMBER(3) default 0,
  693. data_num NUMBER(3) default 0,
  694. mtch_rate NUMBER(3)
  695. )
  696. tablespace ITS_HIST_DATA
  697. pctfree 10
  698. initrans 1
  699. maxtrans 255
  700. nologging;
  701. comment on table GJUTIS.TB_AVI_HH_STAT
  702. is 'AVI 시간 통계';
  703. comment on column GJUTIS.TB_AVI_HH_STAT.avi_sect_nmbr
  704. is 'AVI 구간 번호';
  705. comment on column GJUTIS.TB_AVI_HH_STAT.stat_dt
  706. is '통계 일시';
  707. comment on column GJUTIS.TB_AVI_HH_STAT.stat_yy
  708. is '통계 년';
  709. comment on column GJUTIS.TB_AVI_HH_STAT.stat_mn
  710. is '통계 월';
  711. comment on column GJUTIS.TB_AVI_HH_STAT.stat_dd
  712. is '통계 일';
  713. comment on column GJUTIS.TB_AVI_HH_STAT.stat_hm
  714. is '통계 시분';
  715. comment on column GJUTIS.TB_AVI_HH_STAT.day_type_cd
  716. is '요일 유형 코드';
  717. comment on column GJUTIS.TB_AVI_HH_STAT.tfvl
  718. is '교통량';
  719. comment on column GJUTIS.TB_AVI_HH_STAT.trvl_sped
  720. is '통행 속도';
  721. comment on column GJUTIS.TB_AVI_HH_STAT.data_num
  722. is '데이터 개수';
  723. comment on column GJUTIS.TB_AVI_HH_STAT.mtch_rate
  724. is '매칭 율';
  725. alter table GJUTIS.TB_AVI_HH_STAT
  726. add constraint IX_AVI_HH_STAT_PK primary key (AVI_SECT_NMBR, STAT_DT)
  727. using index
  728. tablespace ITS_HIST_DATA
  729. pctfree 10
  730. initrans 2
  731. maxtrans 255;
  732. alter table GJUTIS.TB_AVI_HH_STAT
  733. add constraint FK_AVI_HH_STAT__AVI_SECT_NMBR foreign key (AVI_SECT_NMBR)
  734. references GJUTIS.TB_AVI_SECT_MSTR (AVI_SECT_NMBR)
  735. disable;
  736. prompt
  737. prompt Creating table TB_AVI_PASS_VHCL
  738. prompt ===============================
  739. prompt
  740. create table GJUTIS.TB_AVI_PASS_VHCL
  741. (
  742. avi_ctlr_mngm_nmbr VARCHAR2(20) not null,
  743. whol_vhcl_nmbr VARCHAR2(15) not null,
  744. crtn_dt VARCHAR2(14) not null,
  745. vhcl_nmbr VARCHAR2(15),
  746. lane_nmbr NUMBER(2),
  747. lane_drct VARCHAR2(7),
  748. vhcl_kind_cd VARCHAR2(7)
  749. )
  750. tablespace ITS_HIST_DATA
  751. pctfree 10
  752. initrans 1
  753. maxtrans 255
  754. nologging;
  755. comment on table GJUTIS.TB_AVI_PASS_VHCL
  756. is 'AVI 통과 차량';
  757. comment on column GJUTIS.TB_AVI_PASS_VHCL.avi_ctlr_mngm_nmbr
  758. is 'AVI 제어기 관리 번호';
  759. comment on column GJUTIS.TB_AVI_PASS_VHCL.whol_vhcl_nmbr
  760. is '전체 차량 번호';
  761. comment on column GJUTIS.TB_AVI_PASS_VHCL.crtn_dt
  762. is '생성 일시';
  763. comment on column GJUTIS.TB_AVI_PASS_VHCL.vhcl_nmbr
  764. is '차량 번호';
  765. comment on column GJUTIS.TB_AVI_PASS_VHCL.lane_nmbr
  766. is '차로 번호';
  767. comment on column GJUTIS.TB_AVI_PASS_VHCL.lane_drct
  768. is '차로 방향';
  769. comment on column GJUTIS.TB_AVI_PASS_VHCL.vhcl_kind_cd
  770. is '차량 종류 코드';
  771. alter table GJUTIS.TB_AVI_PASS_VHCL
  772. add constraint IX_AVI_PASS_VHCL_PK primary key (AVI_CTLR_MNGM_NMBR, WHOL_VHCL_NMBR, CRTN_DT)
  773. using index
  774. tablespace ITS_HIST_DATA
  775. pctfree 10
  776. initrans 2
  777. maxtrans 255;
  778. alter table GJUTIS.TB_AVI_PASS_VHCL
  779. add constraint FK_AVI_PASS_VHCL__AVI_CTLR_MNG foreign key (AVI_CTLR_MNGM_NMBR)
  780. references GJUTIS.TB_AVI_CTLR (AVI_CTLR_MNGM_NMBR)
  781. disable;
  782. prompt
  783. prompt Creating table TB_AVI_IMGN_DATA
  784. prompt ===============================
  785. prompt
  786. create table GJUTIS.TB_AVI_IMGN_DATA
  787. (
  788. avi_ctlr_mngm_nmbr VARCHAR2(20) not null,
  789. whol_vhcl_nmbr VARCHAR2(15) not null,
  790. crtn_dt VARCHAR2(14) not null,
  791. idnt_rslt_yn CHAR(1) default 'N',
  792. data_size NUMBER(14),
  793. stor_path VARCHAR2(200),
  794. file_nm VARCHAR2(100)
  795. )
  796. tablespace ITS_HIST_DATA
  797. pctfree 10
  798. initrans 1
  799. maxtrans 255
  800. nologging;
  801. comment on table GJUTIS.TB_AVI_IMGN_DATA
  802. is 'AVI 영상 데이터';
  803. comment on column GJUTIS.TB_AVI_IMGN_DATA.avi_ctlr_mngm_nmbr
  804. is 'AVI 제어기 관리 번호';
  805. comment on column GJUTIS.TB_AVI_IMGN_DATA.whol_vhcl_nmbr
  806. is '전체 차량 번호';
  807. comment on column GJUTIS.TB_AVI_IMGN_DATA.crtn_dt
  808. is '생성 일시';
  809. comment on column GJUTIS.TB_AVI_IMGN_DATA.idnt_rslt_yn
  810. is '인식 결과 여부';
  811. comment on column GJUTIS.TB_AVI_IMGN_DATA.data_size
  812. is '데이터 크기';
  813. comment on column GJUTIS.TB_AVI_IMGN_DATA.stor_path
  814. is '저장 경로';
  815. comment on column GJUTIS.TB_AVI_IMGN_DATA.file_nm
  816. is '파일 명';
  817. alter table GJUTIS.TB_AVI_IMGN_DATA
  818. add constraint IX_AVI_IMGN_DATA_PK primary key (AVI_CTLR_MNGM_NMBR, WHOL_VHCL_NMBR, CRTN_DT)
  819. using index
  820. tablespace ITS_HIST_DATA
  821. pctfree 10
  822. initrans 2
  823. maxtrans 255;
  824. alter table GJUTIS.TB_AVI_IMGN_DATA
  825. add constraint FK_AVI_IMGN_DATA__AVI_CTLR_MNG foreign key (AVI_CTLR_MNGM_NMBR, WHOL_VHCL_NMBR, CRTN_DT)
  826. references GJUTIS.TB_AVI_PASS_VHCL (AVI_CTLR_MNGM_NMBR, WHOL_VHCL_NMBR, CRTN_DT)
  827. disable;
  828. prompt
  829. prompt Creating table TB_AVI_LMP_MTNS_RECL
  830. prompt ===================================
  831. prompt
  832. create table GJUTIS.TB_AVI_LMP_MTNS_RECL
  833. (
  834. avi_ctlr_mngm_nmbr VARCHAR2(20) not null,
  835. avi_cmra_id VARCHAR2(20) not null,
  836. lmp_nmbr NUMBER(2),
  837. mtns_recl NUMBER(9),
  838. rgst_dt VARCHAR2(14)
  839. )
  840. tablespace ITS_HIST_DATA
  841. pctfree 10
  842. initrans 1
  843. maxtrans 255
  844. nologging;
  845. comment on table GJUTIS.TB_AVI_LMP_MTNS_RECL
  846. is 'AVI 램프 동작 회수';
  847. comment on column GJUTIS.TB_AVI_LMP_MTNS_RECL.avi_ctlr_mngm_nmbr
  848. is 'AVI 제어기 관리 번호';
  849. comment on column GJUTIS.TB_AVI_LMP_MTNS_RECL.avi_cmra_id
  850. is 'AVI 카메라 아이디';
  851. comment on column GJUTIS.TB_AVI_LMP_MTNS_RECL.lmp_nmbr
  852. is '램프 번호';
  853. comment on column GJUTIS.TB_AVI_LMP_MTNS_RECL.mtns_recl
  854. is '동작 회수';
  855. comment on column GJUTIS.TB_AVI_LMP_MTNS_RECL.rgst_dt
  856. is '등록 일시';
  857. alter table GJUTIS.TB_AVI_LMP_MTNS_RECL
  858. add constraint IX_AVI_LMP_MTNS_RECL_PK primary key (AVI_CTLR_MNGM_NMBR, AVI_CMRA_ID)
  859. using index
  860. tablespace ITS_HIST_DATA
  861. pctfree 10
  862. initrans 2
  863. maxtrans 255;
  864. alter table GJUTIS.TB_AVI_LMP_MTNS_RECL
  865. add constraint FK_AVI_LMP_MTNS_RECL__AVI_CTLR foreign key (AVI_CTLR_MNGM_NMBR, AVI_CMRA_ID)
  866. references GJUTIS.TB_AVI_CMRA (AVI_CTLR_MNGM_NMBR, AVI_CMRA_ID)
  867. disable;
  868. prompt
  869. prompt Creating table TB_AVI_MN_STAT
  870. prompt =============================
  871. prompt
  872. create table GJUTIS.TB_AVI_MN_STAT
  873. (
  874. avi_sect_nmbr VARCHAR2(10) not null,
  875. stat_dt VARCHAR2(14) not null,
  876. stat_yy VARCHAR2(4) not null,
  877. stat_mn VARCHAR2(2) not null,
  878. tfvl NUMBER(6) default 0,
  879. trvl_sped NUMBER(3) default 0,
  880. data_num NUMBER(3) default 0,
  881. mtch_rate NUMBER(3)
  882. )
  883. tablespace ITS_HIST_DATA
  884. pctfree 10
  885. initrans 1
  886. maxtrans 255
  887. nologging;
  888. comment on table GJUTIS.TB_AVI_MN_STAT
  889. is 'AVI 월 통계';
  890. comment on column GJUTIS.TB_AVI_MN_STAT.avi_sect_nmbr
  891. is 'AVI 구간 번호';
  892. comment on column GJUTIS.TB_AVI_MN_STAT.stat_dt
  893. is '통계 일시';
  894. comment on column GJUTIS.TB_AVI_MN_STAT.stat_yy
  895. is '통계 년';
  896. comment on column GJUTIS.TB_AVI_MN_STAT.stat_mn
  897. is '통계 월';
  898. comment on column GJUTIS.TB_AVI_MN_STAT.tfvl
  899. is '교통량';
  900. comment on column GJUTIS.TB_AVI_MN_STAT.trvl_sped
  901. is '통행 속도';
  902. comment on column GJUTIS.TB_AVI_MN_STAT.data_num
  903. is '데이터 개수';
  904. comment on column GJUTIS.TB_AVI_MN_STAT.mtch_rate
  905. is '매칭 율';
  906. alter table GJUTIS.TB_AVI_MN_STAT
  907. add constraint IX_AVI_MN_STAT_PK primary key (AVI_SECT_NMBR, STAT_DT)
  908. using index
  909. tablespace ITS_HIST_DATA
  910. pctfree 10
  911. initrans 2
  912. maxtrans 255;
  913. alter table GJUTIS.TB_AVI_MN_STAT
  914. add constraint FK_AVI_MN_STAT__AVI_SECT_NMBR foreign key (AVI_SECT_NMBR)
  915. references GJUTIS.TB_AVI_SECT_MSTR (AVI_SECT_NMBR)
  916. disable;
  917. prompt
  918. prompt Creating table TB_AVI_SECT_CNFG
  919. prompt ===============================
  920. prompt
  921. create table GJUTIS.TB_AVI_SECT_CNFG
  922. (
  923. avi_ctlr_mngm_nmbr VARCHAR2(20) not null,
  924. avi_sect_nmbr VARCHAR2(10) not null,
  925. ord NUMBER(3) default 0,
  926. frst_regr_nmbr VARCHAR2(20),
  927. frst_rgst_dt VARCHAR2(14),
  928. last_crpr_nmbr VARCHAR2(20),
  929. last_crct_dt VARCHAR2(14)
  930. )
  931. tablespace ITS_HIST_DATA
  932. pctfree 10
  933. initrans 1
  934. maxtrans 255
  935. nologging;
  936. comment on table GJUTIS.TB_AVI_SECT_CNFG
  937. is 'AVI 구간 구성';
  938. comment on column GJUTIS.TB_AVI_SECT_CNFG.avi_ctlr_mngm_nmbr
  939. is 'AVI 제어기 관리 번호';
  940. comment on column GJUTIS.TB_AVI_SECT_CNFG.avi_sect_nmbr
  941. is 'AVI 구간 번호';
  942. comment on column GJUTIS.TB_AVI_SECT_CNFG.ord
  943. is '순서';
  944. comment on column GJUTIS.TB_AVI_SECT_CNFG.frst_regr_nmbr
  945. is '최초 등록자 번호';
  946. comment on column GJUTIS.TB_AVI_SECT_CNFG.frst_rgst_dt
  947. is '최초 등록 일시';
  948. comment on column GJUTIS.TB_AVI_SECT_CNFG.last_crpr_nmbr
  949. is '최종 수정자 번호';
  950. comment on column GJUTIS.TB_AVI_SECT_CNFG.last_crct_dt
  951. is '최종 수정 일시';
  952. alter table GJUTIS.TB_AVI_SECT_CNFG
  953. add constraint IX_AVI_SECT_CNFG_PK primary key (AVI_CTLR_MNGM_NMBR, AVI_SECT_NMBR)
  954. using index
  955. tablespace ITS_HIST_DATA
  956. pctfree 10
  957. initrans 2
  958. maxtrans 255;
  959. alter table GJUTIS.TB_AVI_SECT_CNFG
  960. add constraint FK_AVI_SECT_CNFG_02 foreign key (AVI_SECT_NMBR)
  961. references GJUTIS.TB_AVI_SECT_MSTR (AVI_SECT_NMBR)
  962. disable;
  963. alter table GJUTIS.TB_AVI_SECT_CNFG
  964. add constraint FK_AVI_SECT_CNFG__AVI_CTLR_MNG foreign key (AVI_CTLR_MNGM_NMBR)
  965. references GJUTIS.TB_AVI_CTLR (AVI_CTLR_MNGM_NMBR)
  966. disable;
  967. prompt
  968. prompt Creating table TB_AVI_SECT_LINK
  969. prompt ===============================
  970. prompt
  971. create table GJUTIS.TB_AVI_SECT_LINK
  972. (
  973. avi_sect_nmbr VARCHAR2(10) not null,
  974. link_id NUMBER(10) not null,
  975. ord NUMBER(3) default 0
  976. )
  977. tablespace ITS_HIST_DATA
  978. pctfree 10
  979. initrans 1
  980. maxtrans 255
  981. nologging;
  982. comment on table GJUTIS.TB_AVI_SECT_LINK
  983. is 'AVI 구간_링크';
  984. comment on column GJUTIS.TB_AVI_SECT_LINK.avi_sect_nmbr
  985. is 'AVI 구간 번호';
  986. comment on column GJUTIS.TB_AVI_SECT_LINK.link_id
  987. is '링크 ID';
  988. comment on column GJUTIS.TB_AVI_SECT_LINK.ord
  989. is '순서';
  990. alter table GJUTIS.TB_AVI_SECT_LINK
  991. add constraint IX_AVI_SECT_LINK_PK primary key (AVI_SECT_NMBR, LINK_ID)
  992. using index
  993. tablespace ITS_HIST_DATA
  994. pctfree 10
  995. initrans 2
  996. maxtrans 255;
  997. alter table GJUTIS.TB_AVI_SECT_LINK
  998. add constraint FK_AVI_SECT_LINK__AVI_SECT_NMB foreign key (AVI_SECT_NMBR)
  999. references GJUTIS.TB_AVI_SECT_MSTR (AVI_SECT_NMBR)
  1000. disable;
  1001. prompt
  1002. prompt Creating table TB_AVI_SECT_MTCH
  1003. prompt ===============================
  1004. prompt
  1005. create table GJUTIS.TB_AVI_SECT_MTCH
  1006. (
  1007. avi_sect_nmbr VARCHAR2(10) not null,
  1008. crtn_dt VARCHAR2(14) not null,
  1009. strt_spot_cnt NUMBER(6) default 0,
  1010. end_spot_cnt NUMBER(6) default 0,
  1011. tot_mtch_cnt NUMBER(6) default 0,
  1012. mtch_rate NUMBER(3)
  1013. )
  1014. tablespace ITS_HIST_DATA
  1015. pctfree 10
  1016. initrans 1
  1017. maxtrans 255
  1018. nologging;
  1019. comment on table GJUTIS.TB_AVI_SECT_MTCH
  1020. is 'AVI 구간 매칭';
  1021. comment on column GJUTIS.TB_AVI_SECT_MTCH.avi_sect_nmbr
  1022. is 'AVI 구간 번호';
  1023. comment on column GJUTIS.TB_AVI_SECT_MTCH.crtn_dt
  1024. is '생성 일시';
  1025. comment on column GJUTIS.TB_AVI_SECT_MTCH.strt_spot_cnt
  1026. is '시작 지점 건수';
  1027. comment on column GJUTIS.TB_AVI_SECT_MTCH.end_spot_cnt
  1028. is '종료 지점 건수';
  1029. comment on column GJUTIS.TB_AVI_SECT_MTCH.tot_mtch_cnt
  1030. is '총 매칭 건수';
  1031. comment on column GJUTIS.TB_AVI_SECT_MTCH.mtch_rate
  1032. is '매칭 율';
  1033. alter table GJUTIS.TB_AVI_SECT_MTCH
  1034. add constraint IX_AVI_SECT_MTCH_PK primary key (AVI_SECT_NMBR, CRTN_DT)
  1035. using index
  1036. tablespace ITS_HIST_DATA
  1037. pctfree 10
  1038. initrans 2
  1039. maxtrans 255;
  1040. alter table GJUTIS.TB_AVI_SECT_MTCH
  1041. add constraint FK_AVI_SECT_MTCH__AVI_SECT_NMB foreign key (AVI_SECT_NMBR)
  1042. references GJUTIS.TB_AVI_SECT_MSTR (AVI_SECT_NMBR)
  1043. disable;
  1044. prompt
  1045. prompt Creating table TB_AVI_SECT_RAW
  1046. prompt ==============================
  1047. prompt
  1048. create table GJUTIS.TB_AVI_SECT_RAW
  1049. (
  1050. avi_sect_nmbr VARCHAR2(10) not null,
  1051. crtn_dt VARCHAR2(14) not null,
  1052. crtn_ord NUMBER(6) default 0 not null,
  1053. vhcl_nmbr VARCHAR2(15),
  1054. trvl_hh NUMBER(6) default 0,
  1055. strt_avi_pass_dt VARCHAR2(14),
  1056. end_avi_pass_dt VARCHAR2(14),
  1057. trvl_sped NUMBER(3) default 0,
  1058. vhcl_kind_cd VARCHAR2(7)
  1059. )
  1060. tablespace ITS_HIST_DATA
  1061. pctfree 10
  1062. initrans 1
  1063. maxtrans 255
  1064. nologging;
  1065. comment on table GJUTIS.TB_AVI_SECT_RAW
  1066. is 'AVI 구간 원시';
  1067. comment on column GJUTIS.TB_AVI_SECT_RAW.avi_sect_nmbr
  1068. is 'AVI 구간 번호';
  1069. comment on column GJUTIS.TB_AVI_SECT_RAW.crtn_dt
  1070. is '생성 일시';
  1071. comment on column GJUTIS.TB_AVI_SECT_RAW.crtn_ord
  1072. is '생성 순서';
  1073. comment on column GJUTIS.TB_AVI_SECT_RAW.vhcl_nmbr
  1074. is '차량 번호';
  1075. comment on column GJUTIS.TB_AVI_SECT_RAW.trvl_hh
  1076. is '통행 시간';
  1077. comment on column GJUTIS.TB_AVI_SECT_RAW.strt_avi_pass_dt
  1078. is '시작 AVI 통과 일시';
  1079. comment on column GJUTIS.TB_AVI_SECT_RAW.end_avi_pass_dt
  1080. is '종료 AVI 통과 일시';
  1081. comment on column GJUTIS.TB_AVI_SECT_RAW.trvl_sped
  1082. is '통행 속도';
  1083. comment on column GJUTIS.TB_AVI_SECT_RAW.vhcl_kind_cd
  1084. is '차량 종류 코드';
  1085. alter table GJUTIS.TB_AVI_SECT_RAW
  1086. add constraint IX_AVI_SECT_RAW_PK primary key (AVI_SECT_NMBR, CRTN_DT, CRTN_ORD)
  1087. using index
  1088. tablespace ITS_HIST_DATA
  1089. pctfree 10
  1090. initrans 2
  1091. maxtrans 255;
  1092. alter table GJUTIS.TB_AVI_SECT_RAW
  1093. add constraint FK_AVI_SECT_RAW__AVI_SECT_NMBR foreign key (AVI_SECT_NMBR)
  1094. references GJUTIS.TB_AVI_SECT_MSTR (AVI_SECT_NMBR)
  1095. disable;
  1096. prompt
  1097. prompt Creating table TB_AVI_SECT_TRAF
  1098. prompt ===============================
  1099. prompt
  1100. create table GJUTIS.TB_AVI_SECT_TRAF
  1101. (
  1102. avi_sect_nmbr VARCHAR2(10) not null,
  1103. crtn_dt VARCHAR2(14) not null,
  1104. tfvl NUMBER(6) default 0,
  1105. trvl_sped NUMBER(3) default 0,
  1106. data_num NUMBER(3) default 0,
  1107. mtch_rate NUMBER(3)
  1108. )
  1109. tablespace ITS_HIST_DATA
  1110. pctfree 10
  1111. initrans 1
  1112. maxtrans 255
  1113. nologging;
  1114. comment on table GJUTIS.TB_AVI_SECT_TRAF
  1115. is 'AVI 구간 소통상황';
  1116. comment on column GJUTIS.TB_AVI_SECT_TRAF.avi_sect_nmbr
  1117. is 'AVI 구간 번호';
  1118. comment on column GJUTIS.TB_AVI_SECT_TRAF.crtn_dt
  1119. is '생성 일시';
  1120. comment on column GJUTIS.TB_AVI_SECT_TRAF.tfvl
  1121. is '교통량';
  1122. comment on column GJUTIS.TB_AVI_SECT_TRAF.trvl_sped
  1123. is '통행 속도';
  1124. comment on column GJUTIS.TB_AVI_SECT_TRAF.data_num
  1125. is '데이터 개수';
  1126. comment on column GJUTIS.TB_AVI_SECT_TRAF.mtch_rate
  1127. is '매칭 율';
  1128. alter table GJUTIS.TB_AVI_SECT_TRAF
  1129. add constraint IX_AVI_SECT_TRAF_PK primary key (AVI_SECT_NMBR, CRTN_DT)
  1130. using index
  1131. tablespace ITS_HIST_DATA
  1132. pctfree 10
  1133. initrans 2
  1134. maxtrans 255;
  1135. alter table GJUTIS.TB_AVI_SECT_TRAF
  1136. add constraint FK_AVI_SECT_TRAF__AVI_SECT_NMB foreign key (AVI_SECT_NMBR)
  1137. references GJUTIS.TB_AVI_SECT_MSTR (AVI_SECT_NMBR)
  1138. disable;
  1139. spool off