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.

74 lines
3.7 KiB

8 months ago
  1. --------------------------------------------------------
  2. -- DDL for Table CUR_CMD_MST
  3. --------------------------------------------------------
  4. CREATE TABLE "MIRLE"."CUR_CMD_MST"
  5. (
  6. "CMD_SNO" VARCHAR2(16 CHAR),
  7. "CMD_STATUS" VARCHAR2(2 CHAR),
  8. "PRIORITY" NUMBER,
  9. "CMD_MODE" VARCHAR2(2 CHAR),
  10. "SOURCE_STORAGE_ID" VARCHAR2(9 CHAR),
  11. "SOURCE_POSITION" VARCHAR2(9 CHAR),
  12. "DEST_POSITION" VARCHAR2(9 CHAR),
  13. "DEST_STORAGE_ID" VARCHAR2(9 CHAR),
  14. "CARRIER_ID" VARCHAR2(64 CHAR),
  15. "CREATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
  16. "SEND_TIME" TIMESTAMP (6),
  17. "START_TIME" TIMESTAMP (6),
  18. "END_TIME" TIMESTAMP (6),
  19. "FAILED_REASON" VARCHAR(255 CHAR),
  20. "PROGRAM_NAME" VARCHAR2(30 CHAR),
  21. "CREATE_USER" VARCHAR2(30 CHAR),
  22. "UPDATE_USER" VARCHAR2(30 CHAR)
  23. )
  24. SEGMENT CREATION IMMEDIATE
  25. PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
  26. NOCOMPRESS LOGGING
  27. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  28. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  29. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  30. TABLESPACE "SYSTEM" ;
  31. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."CMD_SNO" IS '命令序號';
  32. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."CMD_STATUS" IS '命令狀態';
  33. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."PRIORITY" IS '命令優先權 (0 最優先)';
  34. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."CMD_MODE" IS '命令模式';
  35. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."SOURCE_STORAGE_ID" IS '起始儲存區編號 ';
  36. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."SOURCE_POSITION" IS '起始位置';
  37. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."DEST_POSITION" IS '目的儲存區編號';
  38. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."DEST_STORAGE_ID" IS '目的位置';
  39. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."CARRIER_ID" IS '載具編號';
  40. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."CREATE_TIME" IS '建立時間';
  41. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."SEND_TIME" IS '傳送時間';
  42. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."START_TIME" IS '起始時間';
  43. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."END_TIME" IS '結束時間';
  44. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."FAILED_REASON" IS '失敗原因';
  45. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."PROGRAM_NAME" IS '程式名稱';
  46. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."CREATE_USER" IS '建立人員';
  47. COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."UPDATE_USER" IS '更新人員';
  48. --------------------------------------------------------
  49. -- DDL for Index CUR_CMD_MST_PK
  50. --------------------------------------------------------
  51. CREATE UNIQUE INDEX "MIRLE"."CUR_CMD_MST_PK" ON "MIRLE"."CUR_CMD_MST" ("CMD_SNO")
  52. PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  53. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  54. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  55. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  56. TABLESPACE "SYSTEM" ;
  57. --------------------------------------------------------
  58. -- Constraints for Table CUR_CMD_MST
  59. --------------------------------------------------------
  60. ALTER TABLE "MIRLE"."CUR_CMD_MST" MODIFY ("CMD_SNO" NOT NULL ENABLE);
  61. ALTER TABLE "MIRLE"."CUR_CMD_MST" MODIFY ("CMD_MODE" NOT NULL ENABLE);
  62. ALTER TABLE "MIRLE"."CUR_CMD_MST" MODIFY ("CREATE_USER" NOT NULL ENABLE);
  63. ALTER TABLE "MIRLE"."CUR_CMD_MST" MODIFY ("CREATE_TIME" NOT NULL ENABLE);
  64. ALTER TABLE "MIRLE"."CUR_CMD_MST" ADD CONSTRAINT "CUR_CMD_MST_PK" PRIMARY KEY ("CMD_SNO")
  65. USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  66. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  67. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  68. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  69. TABLESPACE "SYSTEM" ENABLE;