DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: dynamic script to add MAXVALUE partition to all tables in schema

  1. #1
    Join Date
    Mar 2013
    Posts
    1

    dynamic script to add MAXVALUE partition to all tables in schema

    Hi Oracle gurus,
    I need a dynamic script to add MAXVALUE partition to all 100 range partitioned tables in schema,each tables are having different Partition Key with different tablespace

    Any suggestion please
    Last edited by davey23uk; 03-26-2013 at 04:45 AM.

  2. #2
    Join Date
    Jul 2002
    Location
    Lake Worth, FL
    Posts
    1,492

    Cool

    Quote Originally Posted by mayanksi View Post
    Hi Oracle gurus,
    I need a dynamic script . . . E t c . . .
    Use dynamic sql.
    "The person who says it cannot be done should not interrupt the person doing it." --Chinese Proverb

  3. #3
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    As in:

    SELECT 'ALTER TABLE '||owner||'.'||table_name||' ...
    from dba_tables where owner=''
    and table_name in ('TAB1','TAB2','TAB3'...);

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width