declare
    object_exists exception;
    pragma exception_init (object_exists , -00955);
begin
  execute immediate 'CREATE TABLE HEADER_ESQUEMA_CORRIDA 
   (	
    "HEADERESQUEMACORRIDA_ID" NUMBER(7,0) NOT NULL ENABLE, 
	"SEQUENCIA_HEADER" VARCHAR2(50 BYTE) )
   ';
  exception when object_exists then null;
end;
/
declare
    object_exists exception;
    pragma exception_init (object_exists , -00955);
begin
  execute immediate 'CREATE SEQUENCE "HEADER_ESQUEMA_CORRIDA_SEQ" MINVALUE 1 MAXVALUE 999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';
  exception when object_exists then null;
end;
/
declare
    dup_val_on_index exception;
    pragma exception_init (dup_val_on_index  , -00001);
begin
  execute immediate 'Insert into HEADER_ESQUEMA_CORRIDA (HEADERESQUEMACORRIDA_ID, SEQUENCIA_HEADER) 
    values (1,''1,2,3,4,5,6,7,8,9,10,11,12,13,14,15'')';
  exception when dup_val_on_index  then null;
end;