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.

46 lines
2.2 KiB

8 months ago
  1. --------------------------------------------------------
  2. -- DDL for Table CFG_SYSTEM_SETTING
  3. --------------------------------------------------------
  4. CREATE TABLE "MIRLE"."CFG_SYSTEM_SETTING"
  5. (
  6. "CFG_KEY" VARCHAR2(100 BYTE),
  7. "CFG_VALUE" VARCHAR2(100 BYTE),
  8. "FUNC_ID" NUMBER,
  9. "CFG_NAME" VARCHAR2(100 BYTE)
  10. )
  11. SEGMENT CREATION IMMEDIATE
  12. PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
  13. NOCOMPRESS LOGGING
  14. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  15. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  16. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  17. TABLESPACE "SYSTEM" ;
  18. COMMENT ON COLUMN "MIRLE"."CFG_SYSTEM_SETTING"."CFG_KEY" IS '系統設定識別碼';
  19. COMMENT ON COLUMN "MIRLE"."CFG_SYSTEM_SETTING"."CFG_VALUE" IS '系統設定值';
  20. COMMENT ON COLUMN "MIRLE"."CFG_SYSTEM_SETTING"."FUNC_ID" IS '功能編號';
  21. COMMENT ON COLUMN "MIRLE"."CFG_SYSTEM_SETTING"."CFG_NAME" IS '系統設定名稱';
  22. --------------------------------------------------------
  23. -- DDL for Index CFG_SYSTEM_SETTING_PK2
  24. --------------------------------------------------------
  25. CREATE UNIQUE INDEX "MIRLE"."CFG_SYSTEM_SETTING_PK2" ON "MIRLE"."CFG_SYSTEM_SETTING" ("CFG_KEY", "FUNC_ID")
  26. PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  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. --------------------------------------------------------
  32. -- Constraints for Table CFG_SYSTEM_SETTING
  33. --------------------------------------------------------
  34. ALTER TABLE "MIRLE"."CFG_SYSTEM_SETTING" MODIFY ("CFG_VALUE" NOT NULL ENABLE);
  35. ALTER TABLE "MIRLE"."CFG_SYSTEM_SETTING" MODIFY ("FUNC_ID" NOT NULL ENABLE);
  36. ALTER TABLE "MIRLE"."CFG_SYSTEM_SETTING" ADD CONSTRAINT "CFG_SYSTEM_SETTING_PK2" PRIMARY KEY ("CFG_KEY", "FUNC_ID")
  37. USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  38. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  39. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  40. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  41. TABLESPACE "SYSTEM" ENABLE;