declare object_exists exception; pragma exception_init (object_exists , -01430); begin execute immediate 'ALTER TABLE CAJA_DET_PAGO ADD (OCD_ID NUMBER(15,0), NOTACREDITOVENDAPACOTE_ID NUMBER(7,0))'; exception when object_exists then null; end;