dbTalk Databases Forums  

Optimize Table

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss Optimize Table in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
mansoor531@gmail.com
 
Posts: n/a

Default Optimize Table - 01-31-2008 , 08:19 AM






There is command 'Optimize Table' in MySQL. What is the equivalent of
this in Oracle?
And if none, how to optimize an Oracle (10g) table?

Thx.

Reply With Quote
  #2  
Old   
news.verizon.net
 
Posts: n/a

Default Re: Optimize Table - 01-31-2008 , 08:56 AM







<mansoor531 (AT) gmail (DOT) com> wrote

Quote:
There is command 'Optimize Table' in MySQL. What is the equivalent of
this in Oracle?
And if none, how to optimize an Oracle (10g) table?

Thx.
What does optimize table in your sql do?
Jim




Reply With Quote
  #3  
Old   
news.verizon.net
 
Posts: n/a

Default Re: Optimize Table - 01-31-2008 , 08:56 AM




<mansoor531 (AT) gmail (DOT) com> wrote

Quote:
There is command 'Optimize Table' in MySQL. What is the equivalent of
this in Oracle?
And if none, how to optimize an Oracle (10g) table?

Thx.
What does optimize table in your sql do?
Jim




Reply With Quote
  #4  
Old   
news.verizon.net
 
Posts: n/a

Default Re: Optimize Table - 01-31-2008 , 08:56 AM




<mansoor531 (AT) gmail (DOT) com> wrote

Quote:
There is command 'Optimize Table' in MySQL. What is the equivalent of
this in Oracle?
And if none, how to optimize an Oracle (10g) table?

Thx.
What does optimize table in your sql do?
Jim




Reply With Quote
  #5  
Old   
news.verizon.net
 
Posts: n/a

Default Re: Optimize Table - 01-31-2008 , 08:56 AM




<mansoor531 (AT) gmail (DOT) com> wrote

Quote:
There is command 'Optimize Table' in MySQL. What is the equivalent of
this in Oracle?
And if none, how to optimize an Oracle (10g) table?

Thx.
What does optimize table in your sql do?
Jim




Reply With Quote
  #6  
Old   
bdbafh
 
Posts: n/a

Default Re: Optimize Table - 01-31-2008 , 09:29 AM



On Jan 31, 9:19 am, mansoor... (AT) gmail (DOT) com wrote:
Quote:
There is command 'Optimize Table' in MySQL. What is the equivalent of
this in Oracle?
And if none, how to optimize an Oracle (10g) table?

Thx.
truncate

Guaranteed to speed along any operation.

-bdbafh


Reply With Quote
  #7  
Old   
bdbafh
 
Posts: n/a

Default Re: Optimize Table - 01-31-2008 , 09:29 AM



On Jan 31, 9:19 am, mansoor... (AT) gmail (DOT) com wrote:
Quote:
There is command 'Optimize Table' in MySQL. What is the equivalent of
this in Oracle?
And if none, how to optimize an Oracle (10g) table?

Thx.
truncate

Guaranteed to speed along any operation.

-bdbafh


Reply With Quote
  #8  
Old   
bdbafh
 
Posts: n/a

Default Re: Optimize Table - 01-31-2008 , 09:29 AM



On Jan 31, 9:19 am, mansoor... (AT) gmail (DOT) com wrote:
Quote:
There is command 'Optimize Table' in MySQL. What is the equivalent of
this in Oracle?
And if none, how to optimize an Oracle (10g) table?

Thx.
truncate

Guaranteed to speed along any operation.

-bdbafh


Reply With Quote
  #9  
Old   
bdbafh
 
Posts: n/a

Default Re: Optimize Table - 01-31-2008 , 09:29 AM



On Jan 31, 9:19 am, mansoor... (AT) gmail (DOT) com wrote:
Quote:
There is command 'Optimize Table' in MySQL. What is the equivalent of
this in Oracle?
And if none, how to optimize an Oracle (10g) table?

Thx.
truncate

Guaranteed to speed along any operation.

-bdbafh


Reply With Quote
  #10  
Old   
fitzjarrell@cox.net
 
Posts: n/a

Default Re: Optimize Table - 01-31-2008 , 09:35 AM



On Jan 31, 8:56*am, "news.verizon.net" <kenned... (AT) verizon (DOT) net> wrote:
Quote:
mansoor... (AT) gmail (DOT) com> wrote in message

news:b31143cc-e006-4b0a-9d21-dc36a2550c3f (AT) y5g2000hsf (DOT) googlegroups.com...> There is command 'Optimize Table' in MySQL. What is the equivalent of
this in Oracle?
And if none, how to optimize an Oracle (10g) table?

Thx.

What does optimize table in your sql do?
Jim
Had one decided to use google.com one would have found this:

http://dev.mysql.com/doc/refman/5.0/...ize-table.html

wherein the OPTIMIZE TABLE command is explained. Basically it repairs
split (chained/migrated) rows, compacts free space, repairs indexes
and updates table statistics. Thus, in 10.2 and later releases, which
create statistics automagically, an

alter table <tablename> move;

followed by an

alter index <indexname> rebuild;

would perform similar 'magic'. Of course the antiquated exp/drop/imp
scenario could still be used to 'optimize' the table. In either case
the table is unavailable for use during the operation as both products
lock the object for the duration of the process.


David Fitzjarrell


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.