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.

42 lines
2.3 KiB

8 months ago
  1. --------------------------------------------------------
  2. -- DDL for Table MAP_STORAGE_AND_SHTC
  3. --------------------------------------------------------
  4. CREATE TABLE "MIRLE"."CFG_PERIPHERAL_EQUIPMENT"
  5. (
  6. "STORAGE_ID" VARCHAR2(7 CHAR),
  7. "STATION_TYPE" NUMBER(1, 0),
  8. "PLCC_STATION_ID" VARCHAR2(9 CHAR),
  9. "PLCC_SOFTWARE_ID" VARCHAR2(7 CHAR),
  10. "SHTC_STATION_ID" VARCHAR2(9 CHAR),
  11. "SHTC_SOFTWARE_ID" VARCHAR2(7 CHAR),
  12. "AGVC_STATION_ID" VARCHAR2(9 CHAR),
  13. "AGVC_SOFTWARE_ID" VARCHAR2(7 CHAR),
  14. "STORAGE_LOCK_STATUS" NUMBER(1,0)
  15. )
  16. SEGMENT CREATION IMMEDIATE
  17. PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
  18. NOCOMPRESS LOGGING
  19. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  20. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  21. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  22. TABLESPACE "SYSTEM" ;
  23. COMMENT ON COLUMN "MIRLE"."CFG_PERIPHERAL_EQUIPMENT"."STORAGE_ID" IS '儲存區編號';
  24. COMMENT ON COLUMN "MIRLE"."CFG_PERIPHERAL_EQUIPMENT"."STATION_TYPE" IS '站點類別';
  25. COMMENT ON COLUMN "MIRLE"."CFG_PERIPHERAL_EQUIPMENT"."PLCC_STATION_ID" IS 'PLCC 站點編號';
  26. COMMENT ON COLUMN "MIRLE"."CFG_PERIPHERAL_EQUIPMENT"."PLCC_SOFTWARE_ID" IS 'PLCC 軟體編號';
  27. COMMENT ON COLUMN "MIRLE"."CFG_PERIPHERAL_EQUIPMENT"."SHTC_STATION_ID" IS 'SHTC 站點編號';
  28. COMMENT ON COLUMN "MIRLE"."CFG_PERIPHERAL_EQUIPMENT"."SHTC_SOFTWARE_ID" IS 'SHTC 軟體編號';
  29. COMMENT ON COLUMN "MIRLE"."CFG_PERIPHERAL_EQUIPMENT"."SHTC_STATION_ID" IS 'AGVC 站點編號';
  30. COMMENT ON COLUMN "MIRLE"."CFG_PERIPHERAL_EQUIPMENT"."SHTC_SOFTWARE_ID" IS 'AGVC 軟體編號';
  31. COMMENT ON COLUMN "MIRLE"."CFG_PERIPHERAL_EQUIPMENT"."STORAGE_LOCK_STATUS" IS '儲存區鎖定狀態';
  32. --------------------------------------------------------
  33. -- Constraints for Table MAP_STORAGE_AND_SHTC
  34. --------------------------------------------------------
  35. ALTER TABLE "MIRLE"."CFG_PERIPHERAL_EQUIPMENT" MODIFY ("STORAGE_ID" NOT NULL ENABLE);
  36. ALTER TABLE "MIRLE"."CFG_PERIPHERAL_EQUIPMENT" MODIFY ("STATION_TYPE" NOT NULL ENABLE);
  37. ALTER TABLE "MIRLE"."CFG_PERIPHERAL_EQUIPMENT" MODIFY ("PLCC_STATION_ID" NOT NULL ENABLE);
  38. ALTER TABLE "MIRLE"."CFG_PERIPHERAL_EQUIPMENT" MODIFY ("PLCC_SOFTWARE_ID" NOT NULL ENABLE);
  39. ALTER TABLE "MIRLE"."CFG_PERIPHERAL_EQUIPMENT" MODIFY ("STORAGE_LOCK_STATUS" NOT NULL ENABLE);