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.

51 lines
2.6 KiB

8 months ago
  1. --------------------------------------------------------
  2. -- DDL for Table CUR_SOFTWARE_OPERATION_MODE
  3. --------------------------------------------------------
  4. CREATE TABLE "MIRLE"."CUR_SOFTWARE_OPERATION_MODE"
  5. (
  6. "SOFTWARE_ID" VARCHAR2(7 CHAR),
  7. "START_TIME" TIMESTAMP (6),
  8. "END_TIME" TIMESTAMP (6),
  9. "OPERATION_MODE" NUMBER(1,0),
  10. "PROGRAM_NAME" VARCHAR2(30 CHAR)
  11. )
  12. SEGMENT CREATION IMMEDIATE
  13. PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
  14. NOCOMPRESS LOGGING
  15. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  16. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  17. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  18. TABLESPACE "SYSTEM" ;
  19. COMMENT ON COLUMN "MIRLE"."CUR_SOFTWARE_OPERATION_MODE"."SOFTWARE_ID" IS '軟體編號';
  20. COMMENT ON COLUMN "MIRLE"."CUR_SOFTWARE_OPERATION_MODE"."START_TIME" IS '起始時間';
  21. COMMENT ON COLUMN "MIRLE"."CUR_SOFTWARE_OPERATION_MODE"."END_TIME" IS '結束時間';
  22. COMMENT ON COLUMN "MIRLE"."CUR_SOFTWARE_OPERATION_MODE"."OPERATION_MODE" IS '操作模式';
  23. COMMENT ON COLUMN "MIRLE"."CUR_SOFTWARE_OPERATION_MODE"."PROGRAM_NAME" IS '程式名稱';
  24. --------------------------------------------------------
  25. -- DDL for Index CUR_SOFTWARE_OPERATION_MODE_PK
  26. --------------------------------------------------------
  27. CREATE UNIQUE INDEX "MIRLE"."CUR_SOFTWARE_OPERATION_MODE_PK" ON "MIRLE"."CUR_SOFTWARE_OPERATION_MODE" ("SOFTWARE_ID", "START_TIME")
  28. PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  29. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  30. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  31. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  32. TABLESPACE "SYSTEM" ;
  33. --------------------------------------------------------
  34. -- Constraints for Table CUR_SOFTWARE_OPERATION_MODE
  35. --------------------------------------------------------
  36. ALTER TABLE "MIRLE"."CUR_SOFTWARE_OPERATION_MODE" MODIFY ("SOFTWARE_ID" NOT NULL ENABLE);
  37. ALTER TABLE "MIRLE"."CUR_SOFTWARE_OPERATION_MODE" MODIFY ("START_TIME" NOT NULL ENABLE);
  38. ALTER TABLE "MIRLE"."CUR_SOFTWARE_OPERATION_MODE" MODIFY ("OPERATION_MODE" NOT NULL ENABLE);
  39. ALTER TABLE "MIRLE"."CUR_SOFTWARE_OPERATION_MODE" MODIFY ("PROGRAM_NAME" NOT NULL ENABLE);
  40. ALTER TABLE "MIRLE"."CUR_SOFTWARE_OPERATION_MODE" ADD CONSTRAINT "CUR_SOFTWARE_OPERATION_MODE_PK" PRIMARY KEY ("SOFTWARE_ID", "START_TIME")
  41. USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  42. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  43. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  44. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  45. TABLESPACE "SYSTEM" ENABLE;