|
system À¯Àú·Î Á¢¼ÓÇϼż
create or replace trigger user_trigger_name
before drop or truncate ON user.schema
begin
raise_application_error ( -20102, ' Cannot Execute DROP or TRUNCATE !!');
end;
ÆĶõ»ö(user)¿¡ ½ÇÁ¦ ½ºÅ°¸¶¸¦ ¼ÒÀ¯ÇÑ À¯Àú¸íÀ» ÁÖ½Ã¸é µË´Ï´Ù.
»¡°£»ö ºÎºÐ(drop, truncate)Àº DDL ¿¡ ÇØ´çÇÏ´Â °ÍÀ» ¾²½Ç ¼ö ÀÖ½À´Ï´Ù.
ÀÚ¼¼ÇÑ »çÇ×Àº otn.no 12129 ' ƯÁ¤user¿¡¼ ddlµîÀÇ command ½ÇÇàÀ» Á¦ÇÑÇÏ´Â ¹æ¹ý- ddl event trigger' ¸¦ ÂüÁ¶ÇϽʽÿä.
|