CREATE TABLE ERRORLOG (
ERROR_ID NUMBER(20) NOT NULL,
TIMESTAMP DATE DEFAULT SYSDATE NOT NULL,
ORA_ERRNO NUMBER(10) NOT NULL,
ORA_ERRMSG VARCHAR2(255) NOT NULL,
SCHEMA_NAME VARCHAR2(30) NOT NULL,
MODULE_NAME VARCHAR2(80) NOT NULL,
NOTES VARCHAR2(4000),
CONSTRAINT PK_ERRORLOG PRIMARY KEY(ERROR_ID)
);
create index timestamp_idx on errorlog(timestamp) ;

grant select on errorlog to public;

