You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
3.6 KiB
67 lines
3.6 KiB
--------------------------------------------------------
|
|
-- DDL for Table CFG_EARTHQUAKE_NOTIFY
|
|
--------------------------------------------------------
|
|
|
|
CREATE TABLE "MIRLE"."CFG_EARTHQUAKE_NOTIFY"
|
|
(
|
|
"ALARM_ID" VARCHAR2(30 CHAR),
|
|
"PLANT" NUMBER(4,0),
|
|
"GAL_MIN" NUMBER(3,0),
|
|
"GAL_MAX" NUMBER(3,0),
|
|
"USE_NOTIFY" VARCHAR2(1 CHAR) DEFAULT 'N',
|
|
"CREATE_USER" VARCHAR2(30 CHAR),
|
|
"CREATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
|
|
"UPDATE_USER" VARCHAR2(30 CHAR),
|
|
"UPDATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
|
|
"STATUS" NUMBER(1,0) DEFAULT 0
|
|
)
|
|
SEGMENT CREATION IMMEDIATE
|
|
PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
|
|
NOCOMPRESS LOGGING
|
|
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
|
|
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
|
|
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
|
|
TABLESPACE "SYSTEM" ;
|
|
|
|
COMMENT ON COLUMN "MIRLE"."CFG_EARTHQUAKE_NOTIFY"."ALARM_ID" IS '異常編號';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_EARTHQUAKE_NOTIFY"."PLANT" IS '地震等級';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_EARTHQUAKE_NOTIFY"."GAL_MIN" IS '最小加速度';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_EARTHQUAKE_NOTIFY"."GAL_MAX" IS '最大加速度';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_EARTHQUAKE_NOTIFY"."USE_NOTIFY" IS '是否通知(Y/N)';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_EARTHQUAKE_NOTIFY"."CREATE_USER" IS '建立人員';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_EARTHQUAKE_NOTIFY"."CREATE_TIME" IS '建立時間';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_EARTHQUAKE_NOTIFY"."UPDATE_USER" IS '更新人員';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_EARTHQUAKE_NOTIFY"."UPDATE_TIME" IS '更新時間';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_EARTHQUAKE_NOTIFY"."STATUS" IS '資料狀態';
|
|
|
|
--------------------------------------------------------
|
|
-- DDL for Index CFG_EARTHQUAKE_NOTIFY_PK
|
|
--------------------------------------------------------
|
|
|
|
CREATE UNIQUE INDEX "MIRLE"."CFG_EARTHQUAKE_NOTIFY_PK" ON "MIRLE"."CFG_EARTHQUAKE_NOTIFY" ("ALARM_ID")
|
|
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
|
|
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
|
|
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
|
|
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
|
|
TABLESPACE "SYSTEM" ;
|
|
|
|
--------------------------------------------------------
|
|
-- Constraints for Table CFG_EARTHQUAKE_NOTIFY
|
|
--------------------------------------------------------
|
|
|
|
ALTER TABLE "MIRLE"."CFG_EARTHQUAKE_NOTIFY" MODIFY ("ALARM_ID" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_EARTHQUAKE_NOTIFY" MODIFY ("PLANT" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_EARTHQUAKE_NOTIFY" MODIFY ("GAL_MIN" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_EARTHQUAKE_NOTIFY" MODIFY ("GAL_MAX" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_EARTHQUAKE_NOTIFY" MODIFY ("USE_NOTIFY" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_EARTHQUAKE_NOTIFY" MODIFY ("CREATE_USER" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_EARTHQUAKE_NOTIFY" MODIFY ("CREATE_TIME" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_EARTHQUAKE_NOTIFY" MODIFY ("UPDATE_USER" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_EARTHQUAKE_NOTIFY" MODIFY ("UPDATE_TIME" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_EARTHQUAKE_NOTIFY" MODIFY ("STATUS" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_EARTHQUAKE_NOTIFY" ADD CONSTRAINT "CFG_EARTHQUAKE_NOTIFY_PK" PRIMARY KEY ("ALARM_ID")
|
|
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
|
|
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
|
|
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
|
|
BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
|
|
TABLESPACE "SYSTEM" ENABLE;
|