~~~BEGIN_MAIN_SECTION~~~
[PRODUCT]
table=SYS_LAST_UPDATE_STATS_TB
~~~END_MAIN_SECTION~~~


~~~BEGIN_VERSION_SECTION~~~
[VERSION]
version=2026-02-25

[SQL_SCRIPT___DEFAULT]


--------------------------------------------------------
--  DDL for Table SYS_LAST_UPDATE_STATS_TB
--------------------------------------------------------

  CREATE TABLE "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB" 
   (	"TABLE_NAME" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"LAST_UPDATE" TIMESTAMP (6), 
	"COMPONENT" VARCHAR2(128 BYTE) COLLATE "USING_NLS_COMP", 
	"ROWS_UPDATED" NUMBER, 
	"SCHEDULER_RECURRENCE_SECONDS" NUMBER, 
	"NEXT_RUN" DATE, 
	"ERROR" NUMBER, 
	"MISC" VARCHAR2(1024 BYTE) COLLATE "USING_NLS_COMP", 
	"APPLICATION" VARCHAR2(32 BYTE) COLLATE "USING_NLS_COMP", 
	"HOSTNAME" VARCHAR2(64 BYTE) COLLATE "USING_NLS_COMP"
   )  DEFAULT COLLATION "USING_NLS_COMP" SEGMENT CREATION IMMEDIATE 
  PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 
 COLUMN STORE COMPRESS FOR QUERY HIGH ROW LEVEL LOCKING 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 "DATA" ;

   COMMENT ON COLUMN "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB"."LAST_UPDATE" IS 'When the table was last updated (UTC)';
   COMMENT ON COLUMN "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB"."COMPONENT" IS 'Component';
   COMMENT ON COLUMN "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB"."ROWS_UPDATED" IS 'How many rows were updated';
   COMMENT ON COLUMN "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB"."SCHEDULER_RECURRENCE_SECONDS" IS 'How often is scheduller running';
   COMMENT ON COLUMN "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB"."NEXT_RUN" IS 'When is the next run scheduled';
   COMMENT ON COLUMN "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB"."ERROR" IS 'BOOL 0/1 (True/False) if there was some error or warning during download';
   COMMENT ON COLUMN "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB"."MISC" IS 'Miscellaneous';
   COMMENT ON COLUMN "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB"."APPLICATION" IS 'Application which logged the event';
   COMMENT ON COLUMN "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB"."HOSTNAME" IS 'example: analytics-host001.prod-phx.gs.nsgbu.internal';
  GRANT SELECT ON "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB" TO "USER_OTHQ";
--------------------------------------------------------
--  DDL for Index SYS_LAST_UPDATE_STATS_TB_PK
--------------------------------------------------------

  CREATE UNIQUE INDEX "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB_PK" ON "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB" ("TABLE_NAME", "COMPONENT", "APPLICATION") 
  PCTFREE 10 INITRANS 20 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 "DATA" ;
--------------------------------------------------------
--  Constraints for Table SYS_LAST_UPDATE_STATS_TB
--------------------------------------------------------

  ALTER TABLE "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB" MODIFY ("COMPONENT" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB" MODIFY ("APPLICATION" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB" MODIFY ("TABLE_NAME" NOT NULL ENABLE);
  ALTER TABLE "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB" ADD CONSTRAINT "SYS_LAST_UPDATE_STATS_TB_PK" PRIMARY KEY ("TABLE_NAME", "COMPONENT", "APPLICATION")
  USING INDEX "OTHQ_OWN"."SYS_LAST_UPDATE_STATS_TB_PK"  ENABLE;


~~~END_VERSION_SECTION~~~