declare
    object_exists exception;
    pragma exception_init (object_exists , -00955);
begin
  execute immediate
	'CREATE TABLE CTRL_FECHAMENTO_CAIXA (
       CTRLFECHAMENTOCAIXA_ID NUMBER(15) NOT NULL,
       FECCORTE             DATE NULL,
       FECMODIF             DATE NULL,
       FECHAMENTO_STATUS	VARCHAR2(100) NULL,
       ACTIVO               NUMBER(1) DEFAULT 0 NOT NULL,
       PRIMARY KEY (CTRLFECHAMENTOCAIXA_ID)
	)';
  exception when object_exists then null;
end;
/
declare
    object_exists exception;
    pragma exception_init (object_exists , -00955);
begin
  execute immediate 'CREATE SEQUENCE CTRL_FECHAMENTO_CAIXA_SEQ INCREMENT BY 1 START WITH 1 MAXVALUE 9999999 MINVALUE 1 NOCYCLE CACHE 20 NOORDER';	
  exception when object_exists then null;
end;