Advertisement

10.18.2007 at 08:35AM PDT, ID: 22902073
[x]
Attachment Details

Rename Table and Index - quickly put new table in production

Asked by CalDude in Oracle 9.x

Tags: table, rename, index

I have a table with 20 million rows that is rebuilt from scratch daily.  The process of populating the table and building the index on this table takes several hours.  I would like to know if it's possible/wise to create this table and it's indexes under a temporary name, then simply drop the old one and rename the temporary to the real name; thereby minimizing the downtime of the table to only a few seconds.  When I alter the table name do the indexes follow it to the new name or do they need to be rebuilt?  Any downside in doing this?  Thanks!Start Free Trial
[+][-]10.18.2007 at 08:53AM PDT, ID: 20102044

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.18.2007 at 09:18AM PDT, ID: 20102285

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.18.2007 at 09:41AM PDT, ID: 20102463

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle 9.x
Tags: table, rename, index
Sign Up Now!
Solution Provided By: sdstuber
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628