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.
69 lines
3.5 KiB
69 lines
3.5 KiB
--------------------------------------------------------
|
|
-- DDL for Table CFG_SOFTWARE
|
|
--------------------------------------------------------
|
|
|
|
CREATE TABLE "MIRLE"."CFG_SOFTWARE"
|
|
(
|
|
"SOFTWARE_ID" VARCHAR2(7 CHAR),
|
|
"SOFTWARE_TYPE" VARCHAR2(3 CHAR),
|
|
"SOFTWARE_NAME" VARCHAR2(30 CHAR),
|
|
"SOFTWARE_DESC" VARCHAR2(50 CHAR),
|
|
"SOFTWARE_ADDRESS" VARCHAR2(15 CHAR),
|
|
"SOFTWARE_PORT" NUMBER,
|
|
"CREATE_USER" VARCHAR2(30 CHAR),
|
|
"CREATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
|
|
"UPDATE_USER" VARCHAR2(30 CHAR),
|
|
"UPDATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
|
|
"STATUS" NUMBER(1,0) DEFAULT 0
|
|
)
|
|
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"."CFG_SOFTWARE"."SOFTWARE_ID" IS '軟體編號';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."SOFTWARE_TYPE" IS '軟體類別';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."SOFTWARE_NAME" IS '軟體名稱';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."SOFTWARE_DESC" IS '軟體敘述';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."SOFTWARE_ADDRESS" IS '網路位址';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."SOFTWARE_PORT" IS '通訊埠口';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."CREATE_USER" IS '建立人員';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."CREATE_TIME" IS '建立時間';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."UPDATE_USER" IS '更新人員';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."UPDATE_TIME" IS '更新時間';
|
|
COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."STATUS" IS '資料狀態';
|
|
|
|
--------------------------------------------------------
|
|
-- DDL for Index CFG_SOFTWARE_PK
|
|
--------------------------------------------------------
|
|
|
|
CREATE UNIQUE INDEX "MIRLE"."CFG_SOFTWARE_PK" ON "MIRLE"."CFG_SOFTWARE" ("SOFTWARE_ID")
|
|
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 CFG_SOFTWARE
|
|
--------------------------------------------------------
|
|
|
|
ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("SOFTWARE_ID" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("SOFTWARE_TYPE" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("SOFTWARE_NAME" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("SOFTWARE_ADDRESS" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("SOFTWARE_PORT" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("CREATE_USER" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("CREATE_TIME" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("UPDATE_USER" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("UPDATE_TIME" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("STATUS" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CFG_SOFTWARE" ADD CONSTRAINT "CFG_SOFTWARE_PK" PRIMARY KEY ("SOFTWARE_ID")
|
|
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;
|