CREATE TABLE SERIALSSCCNF(
    CDFILIAL          VARCHAR2(4),
    NRLANCTONF        VARCHAR2(10),
    CDSSCC			  VARCHAR2(18) 		  NOT NULL ,
    CDDIGEXTENSAO     VARCHAR2(1) 		  NOT NULL , 
	CDSEQUENCIAL      VARCHAR2(7)		  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_SERIALSSCCNF CHECK (IDATIVO IN ('S','N')),
		CONSTRAINT PK_SERIALSSCCNF PRIMARY KEY (CDFILIAL,NRLANCTONF,CDSSCC))
/ 