rem Copyright (c) 2002, 2009, Oracle and/or its affiliates. rem All rights reserved. rem rem NAME rem drvxtab.pkh - DR inVoker's rights indeX TABle access routines rem rem DESCRIPTION rem DDL operations on index tables -- mainly called by drvddl rem rem NOTES rem rem MODIFIED (MM/DD/YY) rem surman 06/02/09 - 8323978: Remove create_index_triggers rem surman 05/30/09 - 8323978: populate_ptable for ctxcat indexes rem surman 05/11/09 - 8323978: No triggers on $I or $G rem surman 05/04/09 - 8453385: Turn part events on rem rpalakod 03/20/09 - Bug 8344603: stage_itab + substring index rem rpalakod 03/03/09 - separate_offsets_phase2 rem rpalakod 02/19/09 - create_empty_gtab rem rkadwe 02/17/09 - Alter Index Add SDATA Section rem ymatsuda 09/06/07 - deferred $p table creation rem yucheng 01/12/06 - recreate index online partition rem yucheng 10/25/05 - recreate index online phase2 rem surman 09/19/05 - 4417924: Remove exec_ddl rem gkaminag 08/23/05 - part event handling rem smuralid 03/06/03 - more utilities rem gkaminag 06/19/02 - gkaminag_security_ph1_020603 rem gkaminag 06/03/02 - creation create or replace package drvxtab authid current_user as DEFAULT_SEPARATOR constant varchar2(1) := '$'; TMP1_SEPARATOR constant varchar2(1) := 'M'; TMP2_SEPARATOR constant varchar2(1) := 'N'; PROCEDURE part_events_off; PROCEDURE part_events_on; /* ====================================================================== */ /* ====================================================================== */ /* CONTEXT */ /* ====================================================================== */ /* ====================================================================== */ /*-------------------------- create_s_table ------------------------------*/ PROCEDURE create_s_table( idx_owner in varchar2, idx_name in varchar2, idxid in number, part_id in number default null, sep in varchar2, part in boolean default FALSE, shadow in boolean default FALSE ); /*---------------------- part_create_s_tables -----------------------------*/ PROCEDURE part_create_s_tables( idx in dr_def.idx_rec ); /*-------------------------- create_m_table ------------------------------*/ PROCEDURE create_m_table( idx_owner in varchar2, idx_name in varchar2, idxid in number, part_id in number default null, sep in varchar2, part in boolean default FALSE, shadow in boolean default FALSE ); /*----------------------- create_index_tables -----------------------------*/ PROCEDURE create_index_tables( idx_owner in varchar2, idx_name in varchar2, idxid in number, part_id in number default null, temp in boolean default FALSE, part in boolean default FALSE, shadow in boolean default FALSE ); /*--------------------------- create_g_table ---------------------------*/ procedure create_g_table( idx dr_def.idx_rec ); /*--------------------------- drop_g_table --------------------------------*/ procedure drop_g_table( idx dr_def.idx_rec ); /*--------------------------- add_offsets_column --------------------------*/ procedure add_offsets_column( idx dr_def.idx_rec ); -- 8323978: Removed create_index_triggers /*----------------------- create_index_indexes ---------------------------*/ PROCEDURE create_index_indexes( idx_owner in varchar2, idx_name in varchar2, idxid in number, part_id in number default null, temp in boolean default FALSE, part in boolean default FALSE ); /*----------------------- drop_index_tables ---------------------------*/ PROCEDURE drop_index_tables( idx_owner in varchar2, idx_name in varchar2, idxid in number, has_p in boolean default null, part_id in number default null, temp in boolean default FALSE, isAlter in boolean default FALSE ); /*----------------------- trunc_index_tables ---------------------------*/ PROCEDURE trunc_index_tables( idx_owner in varchar2, idx_name in varchar2, idxid in number, part_id in number default null ); /*----------------------- rename_index_tables ---------------------------*/ PROCEDURE rename_index_tables( idx_owner in varchar2, idx_name in varchar2, idxid in number, new_name in varchar2, has_idx in boolean, part_id in number default null ); /*----------------------- exchange_index_tables --------------------------*/ PROCEDURE exchange_index_tables( idxp_owner in varchar2, idxp_name in varchar2, idxp_id in number, idxp_pid in number, idxn_owner in varchar2, idxn_name in varchar2, idxn_id in number ); /*-------------------------- get_create_sql -------------------------------*/ FUNCTION get_create_sql( idx_owner in varchar2, idx_name in varchar2, idxid in number, part_id in number default null, which in varchar2, sto in out nocopy dr_def.vc500_tab, sep in varchar2 default DEFAULT_SEPARATOR, x_part in boolean default FALSE ) RETURN VARCHAR2; /*-------------------------- get_object_name ------------------------------*/ FUNCTION get_object_name( idx_owner in varchar2, idx_name in varchar2, idxid in number, part_id in number default null, which in varchar2, sep in varchar2 default DEFAULT_SEPARATOR ) RETURN VARCHAR2; /*---------------------- swap_index_temp_tables -----------------------*/ PROCEDURE swap_index_temp_tables ( idx_owner in varchar2, idx_name in varchar2, idxid in number, idx_pid in number, temp_owner in varchar2, temp_name in varchar2, shadow_idxid in number default NULL, shadow_ixpid in number default NULL ); /*----------------------- populate_ptable -----------------------------------*/ PROCEDURE populate_ptable( idx_owner in varchar2, idx_name in varchar2, idxid in number, part_id in number default NULL, shadow in boolean default FALSE, ctxcat in boolean default FALSE ); end drvxtab; /