Rem drv:
Rem
Rem $Header: ecm_indexes.sql 02-jan-2008.16:44:58 rrawat Exp $
Rem
Rem patch_tables_alter.sql
Rem
Rem Copyright (c) 2006, Oracle. All rights reserved.
Rem
Rem NAME
Rem ecm_indexes.sql -
Rem
Rem DESCRIPTION
Rem
Rem
Rem NOTES
Rem
Rem
Rem MODIFIED (MM/DD/YY)
Rem rrawat 01/04/07 - Created
Rem
DECLARE
l_index_name VARCHAR2(30);
BEGIN
BEGIN
select object_name into l_index_name from all_objects where object_name='MGMT_DELTA_SNAP_IDX3' and object_type='INDEX' and owner=upper('&&EM_REPOS_USER');
EXCEPTION
WHEN NO_DATA_FOUND THEN
EXECUTE IMMEDIATE
'CREATE INDEX MGMT_DELTA_SNAP_IDX3 ON MGMT_DELTA_SNAP( TARGET_TYPE, SNAPSHOT_TYPE, DELTA_TYPE, DELTA_GUID )' ;
END;
END;
/