Re: recover lost triggers



On Tue, 19 Jun 2007 11:23:49 -0700, rich <rschneid@xxxxxxx> wrote:

Hello all, I have joined a project which used to have a bunch of
triggers. At some point prior to my arrival, some key tables (which
had triggers) were dropped and re-created. However, the triggers
never got recreated. They were not doing oracle wise backups.
Sysadmin was just backing up all of the unix file systems. Now they
have restored the backup (100GB +-) to the unix system. Noone wants
to restore this old system over the new one. Is there a way for me to
find the trigger text in this mass of unix files? Where or where are
the triggers?

Rich Schneider

Likely they are gone forever.
It looks the person calling himself sys-admin made a copy of an *open*
database. That copy will be inconsistent.
You could try to
- run alter database backup controlfile to trace on the original
database.
- edit the trace file you get (it has a 'create controlfile '
statement in it), making sure
- you change the SID
- you change the database name
- you rename all files to the restored files
- then you set up a correct init<sid>.ora using the sid and the
database name you used in the previous step.
- then (important) you cross your fingers and *pray*
- then you the create controlfile statement on the new database.

If that doesn't work you can either
- dig up that old full database export
- search your creditcard in your wallet to have Oracle come in with
their DUL (Data Unloader). No guarantees however.

If it does work, make a full export of the database with rows=n
import it on the original database.

--

Sybrand Bakker
Senior Oracle DBA
.



Relevant Pages

  • RE: Event when Access table is accessed through ODBC ?
    ... But the crucial thing is then is whether and how a change in the database ... Only Client-Server databases, such as SQLServer, ... Oracle, etc, support triggers. ... updated through ODBC? ...
    (microsoft.public.access.modulesdaovba)
  • Having Trouble with triggers!! ~ Please Help!
    ... master database and three satellite using triggers. ... server to be used as my remote satellite test. ... the stored procedure, right?!... ...
    (microsoft.public.sqlserver.replication)
  • RE: Event when Access table is accessed through ODBC ?
    ... But the crucial thing is then is whether and how a change in the database ... Only Client-Server databases, such as SQLServer, ... Oracle, etc, support triggers. ... updated through ODBC? ...
    (microsoft.public.access.modulesdaovba)
  • Re: Advice sought on use of DTS [Long]
    ... it may help to know that you can disable triggers temporarily do ... You may want to set up a sql job to copy over the remote database (the ... Can you programmatically tell a DTS package which databases to update? ...
    (microsoft.public.sqlserver.dts)
  • Re: OO and IBM z series COBOL was Re: Discussions of COBOLphilospphy
    ... Even if we had a perfect database, there is still a case for making it ... A GOOD use for triggers is leaving audit trails. ... misbehaving applications. ...
    (comp.lang.cobol)