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.7 KiB
75 lines
3.7 KiB
--------------------------------------------------------
|
|
-- DDL for Table CUR_CMD_MST
|
|
--------------------------------------------------------
|
|
|
|
CREATE TABLE "MIRLE"."CUR_CMD_MST"
|
|
(
|
|
"CMD_SNO" VARCHAR2(16 CHAR),
|
|
"CMD_STATUS" VARCHAR2(2 CHAR),
|
|
"PRIORITY" NUMBER,
|
|
"CMD_MODE" VARCHAR2(2 CHAR),
|
|
"SOURCE_STORAGE_ID" VARCHAR2(9 CHAR),
|
|
"SOURCE_POSITION" VARCHAR2(9 CHAR),
|
|
"DEST_POSITION" VARCHAR2(9 CHAR),
|
|
"DEST_STORAGE_ID" VARCHAR2(9 CHAR),
|
|
"CARRIER_ID" VARCHAR2(64 CHAR),
|
|
"CREATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
|
|
"SEND_TIME" TIMESTAMP (6),
|
|
"START_TIME" TIMESTAMP (6),
|
|
"END_TIME" TIMESTAMP (6),
|
|
"FAILED_REASON" VARCHAR(255 CHAR),
|
|
"PROGRAM_NAME" VARCHAR2(30 CHAR),
|
|
"CREATE_USER" VARCHAR2(30 CHAR),
|
|
"UPDATE_USER" VARCHAR2(30 CHAR)
|
|
)
|
|
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"."CUR_CMD_MST"."CMD_SNO" IS '命令序號';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."CMD_STATUS" IS '命令狀態';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."PRIORITY" IS '命令優先權 (0 最優先)';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."CMD_MODE" IS '命令模式';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."SOURCE_STORAGE_ID" IS '起始儲存區編號 ';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."SOURCE_POSITION" IS '起始位置';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."DEST_POSITION" IS '目的儲存區編號';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."DEST_STORAGE_ID" IS '目的位置';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."CARRIER_ID" IS '載具編號';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."CREATE_TIME" IS '建立時間';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."SEND_TIME" IS '傳送時間';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."START_TIME" IS '起始時間';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."END_TIME" IS '結束時間';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."FAILED_REASON" IS '失敗原因';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."PROGRAM_NAME" IS '程式名稱';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."CREATE_USER" IS '建立人員';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_CMD_MST"."UPDATE_USER" IS '更新人員';
|
|
|
|
--------------------------------------------------------
|
|
-- DDL for Index CUR_CMD_MST_PK
|
|
--------------------------------------------------------
|
|
|
|
CREATE UNIQUE INDEX "MIRLE"."CUR_CMD_MST_PK" ON "MIRLE"."CUR_CMD_MST" ("CMD_SNO")
|
|
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 CUR_CMD_MST
|
|
--------------------------------------------------------
|
|
|
|
ALTER TABLE "MIRLE"."CUR_CMD_MST" MODIFY ("CMD_SNO" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CUR_CMD_MST" MODIFY ("CMD_MODE" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CUR_CMD_MST" MODIFY ("CREATE_USER" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CUR_CMD_MST" MODIFY ("CREATE_TIME" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CUR_CMD_MST" ADD CONSTRAINT "CUR_CMD_MST_PK" PRIMARY KEY ("CMD_SNO")
|
|
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;
|