CREATE TABLE INTEGRACAOERR (
    CDINTEGRACAOERR   VARCHAR2(16),
    IDINTEGRACAO      VARCHAR2(3),
    DSINTEGRACAOERR   VARCHAR2(4000),
    DSARQPED          VARCHAR2(128),
    CDFILIAL          VARCHAR(4),
    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_INTEGRACAOERR CHECK (IDATIVO IN ('S','N'))
)
/