create table HMA_MONITORAINT
(
   IDPROCESSO  VARCHAR2(1)    not null,
   DSTABELA    VARCHAR2(50)   not null,
   CDDADOS     VARCHAR2(50)   not null,
   DSERRO      VARCHAR2(500)  null,
   DTMONITOR   DATE           default SYSDATE not null,
   NRORG             NUMBER 	      DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg') 		NOT NULL,
   IDATIVO           VARCHAR2(1)     DEFAULT 'S'					NOT NULL,
   DTINCLUSAO        DATE            DEFAULT SYSDATE,
   DTULTATU          DATE            DEFAULT SYSDATE,
   NRORGINCLUSAO     NUMBER          DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg')		NULL,
   CDOPERINCLUSAO    VARCHAR2(12)    DEFAULT '1' 					NULL,
   NRORGULTATU       NUMBER          DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg')		NULL,
   CDOPERULTATU      VARCHAR2(12)    DEFAULT '1',
        CONSTRAINT CKC_IDATIVO_HMA_MONITORAINT CHECK (IDATIVO IN ('S','N'))
)
/

ALTER TABLE NOTAFISCAL ADD USR_DTEXPXML DATE
/