Can I use 'truncate table ..' on a system trigger?
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Can I use 'truncate table ..' on a system trigger?

  1. #1
    Join Date
    Apr 2001
    Location
    Congleton
    Posts
    258

    Can I use 'truncate table ..' on a system trigger?

    I want to truncate a working table after a database startup? Can I use the system trigger 'after startup of database' to do this?
    e.g.
    create or replace trigger dbstartup
    after startup on database
    begin
    execute immediate 'truncate table testuser.output_table;';
    end;
    Thanks.

  2. #2
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,095
    Sure, why not?
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

  3. #3
    Join Date
    Nov 2001
    Location
    Singapore
    Posts
    182

    Re: Can I use 'truncate table ..' on a system trigger?

    Originally posted by ssmith
    I want to truncate a working table after a database startup? Can I use the system trigger 'after startup of database' to do this?
    e.g.
    create or replace trigger dbstartup
    after startup on database
    begin
    execute immediate 'truncate table testuser.output_table;';
    end;
    Thanks.


    Hi man
    i tried this
    the trigger get created but i didnot work
    J Gangadhar

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