Rem Rem $Header: rdbms/admin/exfu111.sql /main/2 2009/01/08 11:05:03 ayalaman Exp $ Rem Rem exfu111.sql Rem Rem Copyright (c) 2008, 2009, Oracle and/or its affiliates. Rem All rights reserved. Rem Rem NAME Rem exfu111.sql - Rem Rem DESCRIPTION Rem Rem Rem NOTES Rem Rem Rem MODIFIED (MM/DD/YY) Rem ayalaman 07/22/08 - compiled sparse Rem ayalaman 02/25/08 - component upgrade to 11.2 Rem ayalaman 02/25/08 - Created Rem REM REM Upgrade of EXF from 11.1.0 to 11.2 REM grant select on dba_tab_columns to exfsys; create or replace type exfsys.exf$csicode as object (code int, arg varchar2(1000)); / grant execute on exfsys.exf$csicode to public; create or replace type exfsys.exf$csiset as varray (1000) of exf$csicode; / grant execute on exfsys.exf$csiset to public; -- iterate over all existing predicate tables and add the columns -- declare CURSOR predtabs IS select idxowner, idxpredtab from exfsys.exf$idxsecobj; begin for plst in predtabs loop begin execute immediate 'alter table '|| dbms_assert.enquote_name(plst.idxowner, false)||'.'|| dbms_assert.enquote_name(plst.idxpredtab, false)|| ' add (exf$cmplsprs exfsys.exf$csiset)'; exception when others then if (SQLCODE != -01430) then raise; end if; end; end loop; end; /