Rem drv:
Rem
Rem $Header: emcore/source/oracle/sysman/emdrep/sql/core/latest/availability/availability_post_creation.sql /st_emcore_10.2.0.4.2db11.2/1 2008/12/09 16:44:43 joyoon Exp $
Rem
Rem availability_post_creation.sql
Rem
Rem Copyright (c) 2003, 2008, Oracle and/or its affiliates.
Rem All rights reserved.
Rem
Rem NAME
Rem availability_post_creation.sql -
Rem
Rem DESCRIPTION
Rem
Rem
Rem NOTES
Rem
Rem
Rem MODIFIED (MM/DD/YY)
Rem joyoon 12/04/08 - Bug7596524: Add instance_pre_del_callback
Rem gsbhatia 07/03/05 - New repmgr header impl
Rem ktlaw 01/11/05 - add repmgr header
Rem rpinnama 09/08/03 - Add purge policy for master agent history
Rem streddy 07/23/03 - streddy_bug-3056698
Rem streddy 07/23/03 - Created
Rem
-- Register logging modules.
BEGIN
mgmt_log.register_logging_module ('MASTER_AGENT','MasterAgent');
commit;
END;
/
BEGIN
EM_PURGE.add_purge_policy('MGMT_MASTER_AGENT',
EM_PURGE.G_POLICY_TYPE_TARGET,
'EM_MASTER_AGENT.MASTER_AGENT_HIST_PURGE',
0,
NULL, -- No rollup procedure
'Purge policy for Master Agent history.',
EM_PURGE.G_RETENTION_GROUP_ALERTS,
EM_PURGE.G_POLICY_EXEC_GROUP_DEFAULT,
EM_PURGE.G_POLICY_NOT_CONFIGURABLE
);
commit;
END;
/
BEGIN
em_target.add_tgt_pre_deletion_callback(
p_procedure_name => 'em_master_agent.instance_pre_del_callback',
p_delete_order => 0);
commit;
END;
/