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
nms-nmsweb/sql/sqlupdate(20131225-20131225).sql
2018-09-27 16:21:05 +08:00

53 lines
1.9 KiB
SQL
Raw Permalink 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.

--为 业务逻辑拓扑、告警信息、异常服务器、异常网元、系统预警信息菜单 设置过滤条件(告警级别、是否紧急)
1. /sysManage/dataDictionary.do?action=queryDetectConditionSet
2.
3.
create table SET_DET_DATA_CON
(
ID NUMBER not null,
MENU_NAME VARCHAR2(200),
POLICE_LEVEL VARCHAR2(200),
POLICE_EMERGENT VARCHAR2(20),
MENU_CODE VARCHAR2(100)
);
-- Add comments to the table
comment on table SET_DET_DATA_CON
is '监测数据列表过滤条件的设置信息表';
-- Add comments to the columns
comment on column SET_DET_DATA_CON.MENU_NAME
is '菜单名称,对应菜单名称修改时,可以修改,用于显示给用户';
comment on column SET_DET_DATA_CON.POLICE_LEVEL
is '告警级别目前支持1-5级';
comment on column SET_DET_DATA_CON.POLICE_EMERGENT
is '告警是否紧急 0紧急 1非紧急';
comment on column SET_DET_DATA_CON.MENU_CODE
is '菜单编号,不会改变';
4.sequence
-- Create sequence
create sequence SEQ_SET_DET_DATA_CON
minvalue 1
maxvalue 99999999999999999
start with 6
increment by 1
cache 20
cycle
order;
insert into set_det_data_con (ID, MENU_NAME, POLICE_LEVEL, POLICE_EMERGENT, MENU_CODE)
values (1, '业务逻辑拓扑', '', ',0,', 'logicTopo');
insert into set_det_data_con (ID, MENU_NAME, POLICE_LEVEL, POLICE_EMERGENT, MENU_CODE)
values (2, '告警信息', '', ',0,', 'allWarningInfo');
insert into set_det_data_con (ID, MENU_NAME, POLICE_LEVEL, POLICE_EMERGENT, MENU_CODE)
values (3, '异常服务器', '', '', 'serverWarningInfo');
insert into set_det_data_con (ID, MENU_NAME, POLICE_LEVEL, POLICE_EMERGENT, MENU_CODE)
values (4, '异常网元', '', '', 'netEleWarningInfo');
insert into set_det_data_con (ID, MENU_NAME, POLICE_LEVEL, POLICE_EMERGENT, MENU_CODE)
values (5, '报警信息 ', '', ',0,', 'emergentwarningInfo');
commit;