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.

75 lines
3.6 KiB

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