Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Performance & Tuning >> Reorganize big tables like... 3G to 7G

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: Reorganize big tables like... 3G to 7G
 Mohammad  Posted: Apr 21, 2005 01:43:36 PM

 Total Post: 1
 Joined: Apr, 2005






 Hi,

Oracle = 9.2.0.5
Hp 11i

There are many ways to reorganize tables for defregmentation. What is the best way to reorganize big tables like... 3G to 7G

All Tables contain one of these columens:
-- Long, Raw Long, Bfile OR Blob.. --

Is this is the best way:
=======================
What are Advantage and Disadvantage of this method ?

create table FINANCE_New
tablespace FINANCE_tablespace
storage (initial new_initial next new_next
freelists new_freelist_number )
as
select * from FINANCE
order by primary_index_key_values;

===

create table FINANCE_New
tablespace FINANCE_tablespace
nologging
parallel 5
as
select * from FINANCE
order by empno;


Are this method take care of Indexes, triggers, view, procedures, Packages ETC.. ?

Are we need to build and compile..



What happen to

-Indexes
-Privilege
-Role Information
-triggers
-constraints



Thanks
M

 Vigyan
Posted: Apr 22, 2005 09:24:42 AM  

 Total Post: 386
 Joined: May, 2001






 
Oracle does not allow "CREATE TABLE AS" statement for the tables that have LONG or LONG RAW columns. For other data types you can use online redefinition.

In both the cases (CREATE TABLE AS or REDEFINITION) you will have to create constraints/trigger/indexes etc manually.

For LONG or LONG RAW columns, you can use export/import. It can create all the constraints/trigger/indexes for you.

Hope it helps.

Vigyan


 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar814
  Mohammed Taj694
  Jayanta Sur479
  Vigyan Kaushik386
  positive fanatic361
  Gitesh Trivedi322
  Gopu Gopi239
  neeraj sharma228
  Ramesh Jois226
  snehalatha p169






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software