Re: AFTER CREATE trigger (object actually being REPLACED)



Syltrem wrote:
Hi

I have an AFTER CREATE trigger.
I can verify what kind of object has been created by using the ora_dict_obj_type event attribute function, but is there such a function that would tell me if the object is being added *or* replaced ?

The object here is a VIEW, and a CREATE OR REPLACE does not always create the view... in such case I don't want to do anything but the trigger gets fired anyway.

Or do I have to query DBA_OBJECTS to check CREATED and LAST_DDL_TIME to make an educated guess ?

Or any better way that you know of...

Thanks

The only way I can think of doing this would be to query all_objects,
or a similar source, to see if the object already exists in the named
schema.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damorgan@xxxxxxxxxxxxxxxx (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
.



Relevant Pages

  • Re: AFTER CREATE trigger (object actually being REPLACED)
    ... joel garry wrote: ... I have an AFTER CREATE trigger. ... I can verify what kind of object has been created by using the ... Puget Sound Oracle Users Group ...
    (comp.databases.oracle.server)
  • Re: AFTER CREATE trigger (object actually being REPLACED)
    ... I have an AFTER CREATE trigger. ... I can verify what kind of object has been created by using the ... Or do I have to query DBA_OBJECTS to check CREATED and LAST_DDL_TIME to ... Puget Sound Oracle Users Group ...
    (comp.databases.oracle.server)
  • Re: how to prevent drop on a specific table
    ... Puget Sound Oracle Users Group ... CREATE OR REPLACE TRIGGER DBM_NODROP ... ORA92> drop table p_test; ...
    (comp.databases.oracle.server)
  • Re: Question on Insert Trigger
    ... I wrote a trigger like following. ... after INSERT ON employee ... I was hoping that when I do rollback that row will not be inserted. ... Puget Sound Oracle Users Groupwww.psoug.org-Hide quoted text - ...
    (comp.databases.oracle.server)
  • Re: how to prevent drop on a specific table
    ... Puget Sound Oracle Users Group ... CREATE OR REPLACE TRIGGER DBM_NODROP ... ORA92> drop table p_test; ...
    (comp.databases.oracle.server)