  CREATE TABLE GATHER_STATS_LOG(
    ID NUMBER(10) NOT NULL,
    STATUS VARCHAR2(20) NOT NULL,
    OUTPUT CLOB,
    ERROR_CODE NUMBER(10),
    ERROR_MSG VARCHAR2(255),
    STARTED_AT TIMESTAMP,
    FINISHED_AT TIMESTAMP,
    CONSTRAINT GATHER_STATS_LOG_PK PRIMARY KEY(ID) ENABLE
  );

  CREATE SEQUENCE GATHER_STATS_LOG_S MINVALUE 1 START WITH 1 INCREMENT BY 1 NOCACHE;
