This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
k18-ntcs-web-argus-service/sqlupdate/sqlupdate(20170104实时统计新增)增加日志表.sql
zhangdongxu 13acafd43d 上传代码
2017-12-19 14:55:52 +08:00

145 lines
3.9 KiB
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-------------------------------------------
-- Export file for user GK_LOG --
-- Created by dell on 2015/1/4, 11:41:22 --
-------------------------------------------
spool sqlupdate(20170104).log
prompt
prompt Creating table DF_ATTR_TYPE_REPORT
prompt ==================================
prompt
create table DF_ATTR_TYPE_REPORT
(
STAT_ID NUMBER not null,
ACTIVE_SYS INTEGER not null,
SERVICE INTEGER not null,
ATTR_TYPE INTEGER not null,
SUM NUMBER not null,
REPORT_TIME DATE not null
)
;
comment on table DF_ATTR_TYPE_REPORT
is '管控性质实时统计表 该表只在B版日志数据库中';
comment on column DF_ATTR_TYPE_REPORT.ACTIVE_SYS
is 'A版4 B版2 C版1';
comment on column DF_ATTR_TYPE_REPORT.REPORT_TIME
is '粒度5分钟';
alter table DF_ATTR_TYPE_REPORT
add constraint PK_DF_ATTR_TYPE_REPORT primary key (STAT_ID);
prompt
prompt Creating table DF_ENTRANCE_REPORT
prompt =================================
prompt
create table DF_ENTRANCE_REPORT
(
STAT_ID NUMBER not null,
ACTIVE_SYS INTEGER not null,
SERVICE INTEGER not null,
ENTRANCE_ID NUMBER not null,
SUM NUMBER not null,
REPORT_TIME DATE not null
)
;
comment on table DF_ENTRANCE_REPORT
is '管控局点实时统计表 该表只在B版日志数据库中';
comment on column DF_ENTRANCE_REPORT.ACTIVE_SYS
is 'A版4 B版2 C版1';
comment on column DF_ENTRANCE_REPORT.REPORT_TIME
is '粒度5分钟';
alter table DF_ENTRANCE_REPORT
add constraint PK_DF_ENTRANCE_REPORT primary key (STAT_ID);
prompt
prompt Creating table DF_LWHH_REPORT
prompt =============================
prompt
create table DF_LWHH_REPORT
(
STAT_ID NUMBER not null,
ACTIVE_SYS INTEGER not null,
SERVICE INTEGER not null,
LWHH INTEGER not null,
SUM NUMBER not null,
REPORT_TIME DATE not null
)
;
comment on table DF_LWHH_REPORT
is '管控来文函号实时统计表 该表只在B版日志数据库中';
comment on column DF_LWHH_REPORT.ACTIVE_SYS
is 'A版4 B版2 C版1';
comment on column DF_LWHH_REPORT.REPORT_TIME
is '粒度5分钟';
alter table DF_LWHH_REPORT
add constraint PK_DF_LWHH_REPORT primary key (STAT_ID);
prompt
prompt Creating table DF_PVT_TAG_REPORT
prompt ================================
prompt
create table DF_PVT_TAG_REPORT
(
STAT_ID NUMBER not null,
ACTIVE_SYS INTEGER not null,
SERVICE INTEGER not null,
SUM NUMBER not null,
REPORT_TIME DATE not null
)
;
comment on table DF_PVT_TAG_REPORT
is '管控标签实时统计表 该表只在B版日志数据库中';
comment on column DF_PVT_TAG_REPORT.ACTIVE_SYS
is 'A版4 B版2 C版1';
comment on column DF_PVT_TAG_REPORT.REPORT_TIME
is '粒度5分钟';
alter table DF_PVT_TAG_REPORT
add constraint PK_DF_PVT_TAG_REPORT primary key (STAT_ID);
prompt
prompt Creating sequence SEQ_DF_ATTR_TYPE_REPORT
prompt =========================================
prompt
create sequence SEQ_DF_ATTR_TYPE_REPORT
minvalue 1
maxvalue 9999999999999999999999999999
start with 1
increment by 1
cache 20;
prompt
prompt Creating sequence SEQ_DF_ENTRANCE_REPORT
prompt ========================================
prompt
create sequence SEQ_DF_ENTRANCE_REPORT
minvalue 1
maxvalue 9999999999999999999999999999
start with 1
increment by 1
cache 20;
prompt
prompt Creating sequence SEQ_DF_LWHH_REPORT
prompt ====================================
prompt
create sequence SEQ_DF_LWHH_REPORT
minvalue 1
maxvalue 9999999999999999999999999999
start with 1
increment by 1
cache 20;
prompt
prompt Creating sequence SEQ_DF_PVT_TAG_REPORT
prompt =======================================
prompt
create sequence SEQ_DF_PVT_TAG_REPORT
minvalue 1
maxvalue 9999999999999999999999999999
start with 1
increment by 1
cache 20;
spool off