Invalid objects - how to know the reason?

DBA Geral (instalação, configuração do banco, scripts do Sql*Plus, shell scripts, batch scripts, etc...)
Post Reply
RodrigoValentim
Moderador
Moderador
Posts: 367
Joined: Tue, 25 Mar 2008 3:41 pm
Location: Salvador - BA
Rodrigo Valentim
Analista de Sistemas
Oracle Developer

Campanha: Faça uma pesquisa antes de perguntar!!!

Good people, the doubt is the following ...

I wanted to know the reason / date / hour that made an object invalid, is there that possibility?
victorhugomuniz
Moderador
Moderador
Posts: 1396
Joined: Fri, 01 Feb 2008 2:06 pm
Location: Rio de Janeiro - RJ
Contact:
:D

In my old project we have problems as follows:


existed procedures that made inserts or delets in some table that contained triggers, and during the execution of this CAPS well prior to an operation of insert to trigger was disabled because the insert did not need the interference of the trigger and then after the commit the trigger was again enabled ..
we took a lot to find that if there was an error during insert the trigger had already been disabled and would not be enabled again because the execution of procede would be interrupted ..

had another situation that several procs depended on other procs .. if any changed, we should compile all in the order

I just tried to help ... I saw that you want something to investigate or a log with these information
RodrigoValentim
Moderador
Moderador
Posts: 367
Joined: Tue, 25 Mar 2008 3:41 pm
Location: Salvador - BA
Rodrigo Valentim
Analista de Sistemas
Oracle Developer

Campanha: Faça uma pesquisa antes de perguntar!!!

Yes, I have already investigated this but the procedures were invalid, that is, the people were changed and the objects were not compiled ... The problem is that this happened around 01:30 from the Madruga !! (I have an emails routine that alerts invalid objects)
diegolenhardt
Moderador
Moderador
Posts: 1177
Joined: Thu, 15 Oct 2009 10:28 am
Location: Recife

See if you help you face

Select all

select text from dba_errors 
where owner = 'XX' 
AND NAME = 'OBJETO' 
 
SELECT LAST_DDL_TIME 
FROM DBA_OBJECTS
RodrigoValentim
Moderador
Moderador
Posts: 367
Joined: Tue, 25 Mar 2008 3:41 pm
Location: Salvador - BA
Rodrigo Valentim
Analista de Sistemas
Oracle Developer

Campanha: Faça uma pesquisa antes de perguntar!!!

Thanks, I was referring to this table after the corrected error and has to be at the same time. :) solved!
Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest