DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Trigger help

  1. #1
    Join Date
    Dec 2001
    Location
    Atlanta
    Posts
    175

    Trigger help

    I have a droplog table and trigger that tells me who drops database objects but if a web or database user deletes a row or data from the database tables, I want to be able to write that data to another temporary or master table which can be maintained for a period of one month before it is finally cleaned out. I will need your help.
    Thanks.


    C. K.
    SysAdmin 11i

  2. #2
    Join Date
    Jul 2002
    Location
    Lake Worth, FL
    Posts
    1,492
    Try somethoing like this:
    Create Trigger Delete_Droplog
    After Delete On Droplog For Each Row
    Begin
    Insert Into Droplog_Deleted
    Values (:Old.Col1, :Old.Col2, ...,:Old.Coln);
    End;

  3. #3
    Join Date
    Dec 2001
    Location
    Atlanta
    Posts
    175
    Hi LKBrwn_DBA,

    Thanks. I'll try that.

  4. #4
    Join Date
    Feb 2001
    Location
    UAE
    Posts
    304
    Agasimani
    OCP(10g/9i/8i/8)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width