declare
    object_exists exception;
    pragma exception_init (object_exists , -00955);
begin
    execute immediate 'CREATE INDEX IDX_CHAVE ON CUSTOM (CHAVE)';
     exception when object_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 > SEGURANCA > CUSTOMIZACAO SISTEMA'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.SEGURIDAD.MENU.CUSTOM'',1,sysdate,null)';
	exception when object_exists then null;
end;