Rem drv:
Rem
Rem $Header: init_partitions.sql 24-aug-2006.18:18:59 chyu Exp $
Rem
Rem init_partitions.sql
Rem
Rem Copyright (c) 2005, 2006, Oracle. All rights reserved.
Rem
Rem NAME
Rem init_partitions.sql -
Rem
Rem DESCRIPTION
Rem
Rem
Rem NOTES
Rem
Rem
Rem MODIFIED (MM/DD/YY)
Rem chyu 08/24/06 - making parition be CENTRAL only
Rem bug 5489645
Rem gsbhatia 07/15/05 - gsbhatia_repmgr_new
Rem gsbhatia 07/04/05 - Created
Rem
Rem SET ECHO ON
PROMPT Initializing Partitions
DECLARE
v_True VARCHAR2(5);
BEGIN
SELECT 'TRUE' INTO v_True
FROM V$OPTION
WHERE PARAMETER = 'Partitioning' AND
VALUE = 'TRUE';
EMD_LOADER.INIT_RAW_PARTITIONS();
EMD_LOADER.INIT_1HOUR_PARTITIONS();
EMD_LOADER.INIT_1DAY_PARTITIONS();
EXCEPTION
WHEN NO_DATA_FOUND THEN
NULL; -- Catch and ignore because partitioning not installed.
END;
/