declare column_exists exception; pragma exception_init (column_exists , -01430); begin execute immediate 'ALTER TABLE BPE ADD (DT_VENDA DATE)'; exception when column_exists then null; end; / declare object_exists exception; pragma exception_init (object_exists , -00001); begin execute immediate 'Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID) values (FUNCION_SISTEMA_SEQ.nextval, 1,''ADM > RELATORIOS > RELATORIOS > BPe'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.RELATORIOS.RELATORIO.BPE'',1,sysdate,null)'; exception when object_exists then null; end;