CREATE TABLE INTEGRACAOLOG
(
 CDINTEGRACAOLOG  VARCHAR2(16),
 CDINTEGRACAO     VARCHAR2(4),
 DTHREVENTO       DATE, 
 DSHEADER         CLOB,
 DSURL            VARCHAR2(128),
 DSHTTPMETHOD     VARCHAR2(6),
 DSPARAMS         CLOB,
 CDHTTP           VARCHAR2(3),
 DSERROR          CLOB,
 DSRESPONSE       CLOB,
 VREXECTIMEMS     VARCHAR2(16),
 NRORG            NUMBER          DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg')     NOT NULL,
 IDATIVO   		  VARCHAR2(1)     DEFAULT 'S'                                  NOT NULL
      CONSTRAINT CKC_IDATIVO_INTEGRACAOLOG CHECK (IDATIVO IN ('S', 'N')),          
 DTINCLUSAO       DATE            	                                           NULL,
 DTULTATU         DATE            	                                           NULL,
 NRORGINCLUSAO    NUMBER          DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg')     NULL,
 NRORGULTATU      NUMBER          DEFAULT SYS_CONTEXT('nrorg_ctx','nrorg')     NULL
)
/