Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9096375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T23:50:02+00:00 2026-06-16T23:50:02+00:00

I have table with huge data and which is in production at client side.

  • 0

I have table with huge data and which is in production at client side. I have to do online partitionig of it means I can halt the production and the table should be partitioned. I have got the script to do it. But I dont know how to do it online. Is their any way by which I can achieve this. Please suggest..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T23:50:04+00:00Added an answer on June 16, 2026 at 11:50 pm

    Follow the below steps,

    1. Create temporary table in the same structure as the main table (for example TABLE_P for TABLE) and partition this temporary table on the required column. Don’t add primary keys and other indexes of the main table to this temporary table.

      create table TABLE_P
          (
            COL1        VARCHAR2(35 CHAR) not null,
            COL2        VARCHAR2(35 CHAR) not null,
          )
          --add partition (Example taken here is Range partitioning)  from here
           PARTITION BY RANGE (COL1) (
           PARTITION p0 VALUES LESS THAN (5),
           PARTITION p1 VALUES LESS THAN (10),
           PARTITION p2 VALUES LESS THAN (15),
           PARTITION p3 VALUES LESS THAN (MAXVALUE)
          --add partition till here
      
    2. Create an index to this table with the required column.

      create index IX01_TABLE on TABLE_P (COL1) local;         
      
    3. Run the below scripts for redifinition. Replace with the actual schema name.

      begin
      dbms_redefinition.can_redef_table( 'SCHEMA', 'TABLE' );
      end;
      /
      
      begin
      dbms_redefinition.start_redef_table('SCHEMA', 'TABLE','TABLE_P' );
      end;
      /
      
      declare
        error_count pls_integer := 0;
      BEGIN
        dbms_redefinition.copy_table_dependents(uname      => 'SCHEMA',
                                                orig_table => 'TABLE',
                                                int_table  => 'TABLE_P',
                                                num_errors => error_count);
        dbms_output.put_line('errors := ' || to_char(error_count));
      END;
      /
      
      begin
      dbms_redefinition.finish_redef_table('SCHEMA', 'TABLE','TABLE_P');
      end;
      /
      

    Note that this will make the dependant objects to go INVALID in the schema, so be prepared for some downtime to clear these invalids.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a huge data.table in R which contains the result of a experiment:
Updated I have some huge data, which becomes a large table say table parent
I have a query which take data from 5 huge table, could you please
I have jsp page which diplays a huge data in table format in the
I have a table which contains huge data. I want to add hibernate automatic
I have a huge data table (200+ million records) which stores cash amounts for
I have a scripts that retrieves huge data on a table. I want to
I have a huge MySQL table which has its rows encoded in UTF-8 twice.
I have a huge access mdb file which contains a single table with 20-30
I have a table which stores data out of a complex query. This table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.