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.

65 lines
3.2 KiB

8 months ago
  1. --------------------------------------------------------
  2. -- DDL for Table CFG_ALARM
  3. --------------------------------------------------------
  4. CREATE TABLE "MIRLE"."CFG_ALARM"
  5. (
  6. "ALARM_CODE" VARCHAR2(10 CHAR),
  7. "ALARM_TYPE" VARCHAR2(3 CHAR),
  8. "ALARM_LEVEL" NUMBER(1,0),
  9. "ALARM_DESC" VARCHAR2(50 CHAR),
  10. "ALARM_CTS" VARCHAR2(255 CHAR),
  11. "CREATE_USER" VARCHAR2(30 CHAR),
  12. "CREATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
  13. "UPDATE_USER" VARCHAR2(30 CHAR),
  14. "UPDATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
  15. "STATUS" NUMBER(1,0) DEFAULT 0
  16. )
  17. SEGMENT CREATION IMMEDIATE
  18. PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
  19. NOCOMPRESS LOGGING
  20. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  21. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  22. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  23. TABLESPACE "SYSTEM" ;
  24. COMMENT ON COLUMN "MIRLE"."CFG_ALARM"."ALARM_CODE" IS '異常代碼';
  25. COMMENT ON COLUMN "MIRLE"."CFG_ALARM"."ALARM_TYPE" IS '異常類別';
  26. COMMENT ON COLUMN "MIRLE"."CFG_ALARM"."ALARM_LEVEL" IS '異常等級';
  27. COMMENT ON COLUMN "MIRLE"."CFG_ALARM"."ALARM_DESC" IS '異常敘述';
  28. COMMENT ON COLUMN "MIRLE"."CFG_ALARM"."ALARM_CTS" IS '異常對策';
  29. COMMENT ON COLUMN "MIRLE"."CFG_ALARM"."CREATE_USER" IS '建立人員';
  30. COMMENT ON COLUMN "MIRLE"."CFG_ALARM"."CREATE_TIME" IS '建立時間';
  31. COMMENT ON COLUMN "MIRLE"."CFG_ALARM"."UPDATE_USER" IS '更新人員';
  32. COMMENT ON COLUMN "MIRLE"."CFG_ALARM"."UPDATE_TIME" IS '更新時間';
  33. COMMENT ON COLUMN "MIRLE"."CFG_ALARM"."STATUS" IS '資料狀態';
  34. --------------------------------------------------------
  35. -- DDL for Index CFG_ALARM_PK
  36. --------------------------------------------------------
  37. CREATE UNIQUE INDEX "MIRLE"."CFG_ALARM_PK" ON "MIRLE"."CFG_ALARM" ("ALARM_CODE", "ALARM_TYPE")
  38. PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  39. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  40. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  41. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  42. TABLESPACE "SYSTEM" ;
  43. --------------------------------------------------------
  44. -- Constraints for Table CFG_ALARM
  45. --------------------------------------------------------
  46. ALTER TABLE "MIRLE"."CFG_ALARM" MODIFY ("ALARM_CODE" NOT NULL ENABLE);
  47. ALTER TABLE "MIRLE"."CFG_ALARM" MODIFY ("ALARM_TYPE" NOT NULL ENABLE);
  48. ALTER TABLE "MIRLE"."CFG_ALARM" MODIFY ("ALARM_LEVEL" NOT NULL ENABLE);
  49. ALTER TABLE "MIRLE"."CFG_ALARM" MODIFY ("ALARM_DESC" NOT NULL ENABLE);
  50. ALTER TABLE "MIRLE"."CFG_ALARM" MODIFY ("CREATE_USER" NOT NULL ENABLE);
  51. ALTER TABLE "MIRLE"."CFG_ALARM" MODIFY ("CREATE_TIME" NOT NULL ENABLE);
  52. ALTER TABLE "MIRLE"."CFG_ALARM" MODIFY ("UPDATE_USER" NOT NULL ENABLE);
  53. ALTER TABLE "MIRLE"."CFG_ALARM" MODIFY ("UPDATE_TIME" NOT NULL ENABLE);
  54. ALTER TABLE "MIRLE"."CFG_ALARM" MODIFY ("STATUS" NOT NULL ENABLE);
  55. ALTER TABLE "MIRLE"."CFG_ALARM" ADD CONSTRAINT "CFG_ALARM_PK" PRIMARY KEY ("ALARM_CODE", "ALARM_TYPE")
  56. USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  57. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  58. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  59. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  60. TABLESPACE "SYSTEM" ENABLE;