Bapy

Mejoras

Encargados

Objetos

Pre-requisitos

Despliegue

BASE: creditopy@BAPY

-- Control de la lista de objetos invalidos post-actualizacion y ejecucion de los scripts de la columna COMANDO
select a.owner, a.object_name, a.object_type,
'ALTER '||decode(trim(a.object_type),'PACKAGE BODY','PACKAGE',A.OBJECT_TYPE)||' '||a.owner||'.'||a.object_name||
decode(trim(a.object_type),'PACKAGE BODY',' COMPILE BODY',' COMPILE')||';' comando
from sys.all_objects a
where a.object_name not like 'BIN%'
and status='INVALID'
and a.object_type not in ('VIEW','SYNONYM')
and a.object_type in ('FUNCTION','PROCEDURE','PACKAGE','PACKAGE BODY','TRIGGER') /* para ir seleccionando por tipo para facilitar */
--and a.owner = 'DEBCREDPY'
--and a.owner = 'CREDITOPY'
and a.OWNER not in ('CHARANGAS')
and not exists (select 1
from tmp_invalid_20210111 b
where b.owner = a.owner
and b.object_name = a.object_name
and b.object_type = a.object_type)
order by 1,2;

Rollback