ALTER TABLE TRABNECECOMP ADD NRNECECOMPWEB NUMBER
/
CREATE SEQUENCE SEQ_NRNECECOMPWEB  MINVALUE 1 INCREMENT BY 1
/
CREATE TABLE TRABNECECOMPWEB(
    NRNECECOMPWEB     NUMBER, 
    NRNECECOMP        VARCHAR2(10),
    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_TRABNECECOMPWEB CHECK (IDATIVO IN ('S','N'))
) 
/