CREATE TABLE INFORMATIVOECOMOPER (
    NRINFECOMOPER  	  NUMBER 		  NOT NULL,
    NRINFECOMMERCE 	  NUMBER 		  NOT NULL ,
    CDOPERADOR     	  VARCHAR2(12) 	  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_INFORMATECOMOPER CHECK (IDATIVO IN ('S','N')),
    CONSTRAINT INFORMATIVOECOMOPER_PK  PRIMARY KEY(NRINFECOMOPER),
    CONSTRAINT INFORECOMOPER_INFORM_FK FOREIGN KEY (NRINFECOMMERCE) REFERENCES INFORMATIVOECOMMERCE (NRINFECOMMERCE),
    CONSTRAINT INFORECOMOPER_OPER_FK   FOREIGN KEY (CDOPERADOR) REFERENCES OPERADOR (CDOPERADOR)
)
/

ALTER TABLE PATCHVERPROD ADD NRVEROBJBD VARCHAR2(10)
/