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.

68 lines
3.5 KiB

8 months ago
  1. --------------------------------------------------------
  2. -- DDL for Table CFG_SOFTWARE
  3. --------------------------------------------------------
  4. CREATE TABLE "MIRLE"."CFG_SOFTWARE"
  5. (
  6. "SOFTWARE_ID" VARCHAR2(7 CHAR),
  7. "SOFTWARE_TYPE" VARCHAR2(3 CHAR),
  8. "SOFTWARE_NAME" VARCHAR2(30 CHAR),
  9. "SOFTWARE_DESC" VARCHAR2(50 CHAR),
  10. "SOFTWARE_ADDRESS" VARCHAR2(15 CHAR),
  11. "SOFTWARE_PORT" NUMBER,
  12. "CREATE_USER" VARCHAR2(30 CHAR),
  13. "CREATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
  14. "UPDATE_USER" VARCHAR2(30 CHAR),
  15. "UPDATE_TIME" TIMESTAMP (6) DEFAULT systimestamp,
  16. "STATUS" NUMBER(1,0) DEFAULT 0
  17. )
  18. SEGMENT CREATION IMMEDIATE
  19. PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
  20. NOCOMPRESS LOGGING
  21. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  22. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  23. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  24. TABLESPACE "SYSTEM" ;
  25. COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."SOFTWARE_ID" IS '軟體編號';
  26. COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."SOFTWARE_TYPE" IS '軟體類別';
  27. COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."SOFTWARE_NAME" IS '軟體名稱';
  28. COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."SOFTWARE_DESC" IS '軟體敘述';
  29. COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."SOFTWARE_ADDRESS" IS '網路位址';
  30. COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."SOFTWARE_PORT" IS '通訊埠口';
  31. COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."CREATE_USER" IS '建立人員';
  32. COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."CREATE_TIME" IS '建立時間';
  33. COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."UPDATE_USER" IS '更新人員';
  34. COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."UPDATE_TIME" IS '更新時間';
  35. COMMENT ON COLUMN "MIRLE"."CFG_SOFTWARE"."STATUS" IS '資料狀態';
  36. --------------------------------------------------------
  37. -- DDL for Index CFG_SOFTWARE_PK
  38. --------------------------------------------------------
  39. CREATE UNIQUE INDEX "MIRLE"."CFG_SOFTWARE_PK" ON "MIRLE"."CFG_SOFTWARE" ("SOFTWARE_ID")
  40. PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  41. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  42. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  43. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  44. TABLESPACE "SYSTEM" ;
  45. --------------------------------------------------------
  46. -- Constraints for Table CFG_SOFTWARE
  47. --------------------------------------------------------
  48. ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("SOFTWARE_ID" NOT NULL ENABLE);
  49. ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("SOFTWARE_TYPE" NOT NULL ENABLE);
  50. ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("SOFTWARE_NAME" NOT NULL ENABLE);
  51. ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("SOFTWARE_ADDRESS" NOT NULL ENABLE);
  52. ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("SOFTWARE_PORT" NOT NULL ENABLE);
  53. ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("CREATE_USER" NOT NULL ENABLE);
  54. ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("CREATE_TIME" NOT NULL ENABLE);
  55. ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("UPDATE_USER" NOT NULL ENABLE);
  56. ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("UPDATE_TIME" NOT NULL ENABLE);
  57. ALTER TABLE "MIRLE"."CFG_SOFTWARE" MODIFY ("STATUS" NOT NULL ENABLE);
  58. ALTER TABLE "MIRLE"."CFG_SOFTWARE" ADD CONSTRAINT "CFG_SOFTWARE_PK" PRIMARY KEY ("SOFTWARE_ID")
  59. USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  60. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  61. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  62. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  63. TABLESPACE "SYSTEM" ENABLE;