En la Base BAPY, en el esquema creditopy:
Contiene:
PKG_DIMO_CEIBO.pck - version 1.1.0 a desplegar
PKG_DIMO_CEIBO_rollback.pck - version actual de produccion, prevista para vuelta atras.
En la Base BAPY, en el esquema creditopy (en sqlplus o la herramienta en uso por el dba):
create table tmp_invalid_tp_v11 as
select a.owner, OBJECT_NAME,OBJECT_TYPE, a.last_ddl_time,
'INSTALL_TP' operacion,
SYSDATE fecha_operacion
from sys.all_objects a
where status='INVALID'
and a.object_name not like 'BIN%'
and a.OWNER not in ('CHARANGAS')
and status='INVALID' and a.object_type not in ('VIEW','SYNONYM')
order by 2,1;
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_tp_v11 b
where b.owner = a.owner
and b.object_name = a.object_name
and b.object_type = a.object_type)
order by 1,2;
Si hay objetos descompilados informar para determinar si se vuelve atras o no.