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.

61 lines
3.1 KiB

8 months ago
  1. --------------------------------------------------------
  2. -- DDL for Table HIS_COMMUNICATION_LOG
  3. --------------------------------------------------------
  4. CREATE TABLE "MIRLE"."HIS_COMMUNICATION_LOG"
  5. (
  6. "TIMETICK" TIMESTAMP (6),
  7. "HOST" VARCHAR2(7 CHAR),
  8. "CLIENT" VARCHAR2(7 CHAR),
  9. "MESSAGE_ID" VARCHAR2(10 BYTE)
  10. "MESSAGE_CONTENT" CLOB,
  11. "STATUS" NUMBER(1,0),
  12. "PROGRAM_NAME" VARCHAR2(30 CHAR),
  13. )
  14. SEGMENT CREATION IMMEDIATE
  15. PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
  16. NOCOMPRESS LOGGING
  17. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  18. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  19. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  20. TABLESPACE "SYSTEM"
  21. LOB ("MESSAGE_CONTENT") STORE AS BASICFILE (
  22. TABLESPACE "SYSTEM" ENABLE STORAGE IN ROW CHUNK 8192 RETENTION
  23. NOCACHE LOGGING
  24. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  25. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  26. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)) ;
  27. COMMENT ON COLUMN "MIRLE"."HIS_COMMUNICATION_LOG"."TIMETICK" IS '時間戳記';
  28. COMMENT ON COLUMN "MIRLE"."HIS_COMMUNICATION_LOG"."HOST" IS '服務端';
  29. COMMENT ON COLUMN "MIRLE"."HIS_COMMUNICATION_LOG"."CLIENT" IS '客戶端';
  30. COMMENT ON COLUMN "MIRLE"."HIS_COMMUNICATION_LOG"."MESSAGE_ID" IS '訊息編號';
  31. COMMENT ON COLUMN "MIRLE"."HIS_COMMUNICATION_LOG"."MESSAGE_CONTENT" IS '訊息內容';
  32. COMMENT ON COLUMN "MIRLE"."HIS_COMMUNICATION_LOG"."STATUS" IS '傳送狀態';
  33. COMMENT ON COLUMN "MIRLE"."HIS_COMMUNICATION_LOG"."PROGRAM_NAME" IS '程式名稱';
  34. --------------------------------------------------------
  35. -- DDL for Index HIS_COMMUNICATION_LOG_PK
  36. --------------------------------------------------------
  37. CREATE UNIQUE INDEX "MIRLE"."HIS_COMMUNICATION_LOG_PK" ON "MIRLE"."HIS_COMMUNICATION_LOG" ("TIMETICK", "HOST", "CLIENT")
  38. PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  39. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  40. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  41. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  42. TABLESPACE "SYSTEM" ;
  43. --------------------------------------------------------
  44. -- Constraints for Table HIS_COMMUNICATION_LOG
  45. --------------------------------------------------------
  46. ALTER TABLE "MIRLE"."HIS_COMMUNICATION_LOG" MODIFY ("TIMETICK" NOT NULL ENABLE);
  47. ALTER TABLE "MIRLE"."HIS_COMMUNICATION_LOG" MODIFY ("HOST" NOT NULL ENABLE);
  48. ALTER TABLE "MIRLE"."HIS_COMMUNICATION_LOG" MODIFY ("CLIENT" NOT NULL ENABLE);
  49. ALTER TABLE "MIRLE"."HIS_COMMUNICATION_LOG" MODIFY ("STATUS" NOT NULL ENABLE);
  50. ALTER TABLE "MIRLE"."HIS_COMMUNICATION_LOG" MODIFY ("PROGRAM_NAME" NOT NULL ENABLE);
  51. ALTER TABLE "MIRLE"."HIS_COMMUNICATION_LOG" ADD CONSTRAINT "HIS_COMMUNICATION_LOG_PK" PRIMARY KEY ("TIMETICK", "HOST", "CLIENT")
  52. USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  53. STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  54. PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1
  55. BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  56. TABLESPACE "SYSTEM" ENABLE;