CREATE TABLE LEMBRETEDLVCEP(
    CDLEMBRETE        VARCHAR2(5)     NOT NULL,
    NRCEP             VARCHAR2(8)     NOT NULL,
    DSMENSAGEM        VARCHAR2(2000)  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_LEMBRETEDLVCEP CHECK (IDATIVO IN ('S','N'))
)
/

ALTER TABLE LEMBRETEDLVCEP ADD CONSTRAINT PK_LEMBRETEDLVCEP PRIMARY KEY (CDLEMBRETE, NRCEP)
/

ALTER TABLE GERPARAMGERAL ADD IDUTILHRINICALLCENTER VARCHAR2(1)
/