Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: analyze partitioned indexes
If you analyze all of the partitions in an index (one partition at a time) is the performance of the the end result the same as it would be if you just analyzed the entire index at one time (not partition by partition).
Thanks,
Cherie
Jacques Kilchoer <Jacques.Kilchoer@ To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> quest.com> cc: Sent by: Subject: RE: analyze partitioned indexes root_at_fatcity.com 10/24/01 03:15 PM Please respond to ORACLE-L
>-----Original Message-----
>From: Daiminger, Helmut [mailto:Helmut.Daiminger_at_KirchGruppe.de]
>
>I want to write a procedure that analyzes all my indexes. But I'm not sure
whether my source code will also analyze partitioned indexes.
>...
Proof:
I created a partitioned table (my_table) with a global index, a locally
partitioned index, and a globally partitioned index.
I also created a view (my_view) that shows the analyze date and num_rows for the table and its indexes and partitions. (see end of e-mail for table and view creation) SQL> analyze table my_table delete statistics ;
Table analysée.
SQL> select * from my_view ;
OBJECT_NAME ANALYZED NUM_ROWS ------------------------------ -------------------- ---------- MY_INDEX1 MY_INDEX2 MY_INDEX2 (MY_INDEX2_P1) MY_INDEX2 (MY_INDEX2_P2) MY_INDEX3 MY_INDEX3 (MY_INDEX3_P1) MY_INDEX3 (MY_INDEX3_P2) MY_TABLE
SQL> select * from my_view ;
OBJECT_NAME ANALYZED NUM_ROWS ------------------------------ -------------------- ---------- MY_INDEX1 2001/10/24 12:08:28 0 MY_INDEX2 2001/10/24 12:08:28 0 MY_INDEX2 (MY_INDEX2_P1) 2001/10/24 12:08:28 0 MY_INDEX2 (MY_INDEX2_P2) 2001/10/24 12:08:28 0 MY_INDEX3 2001/10/24 12:08:28 0 MY_INDEX3 (MY_INDEX3_P1) 2001/10/24 12:08:28 0 MY_INDEX3 (MY_INDEX3_P2) 2001/10/24 12:08:28 0 MY_TABLE 2001/10/24 12:08:28 0 MY_TABLE (MY_TABLE_P1) 2001/10/24 12:08:28 0 MY_TABLE (MY_TABLE_P2) 2001/10/24 12:08:28 0
SQL> analyze table my_table delete statistics ; Table analysée.
SQL> select * from my_view ;
OBJECT_NAME ANALYZED NUM_ROWS ------------------------------ -------------------- ---------- MY_INDEX1 MY_INDEX2 MY_INDEX2 (MY_INDEX2_P1) MY_INDEX2 (MY_INDEX2_P2) MY_INDEX3 MY_INDEX3 (MY_INDEX3_P1) MY_INDEX3 (MY_INDEX3_P2) MY_TABLE
SQL> select * from my_view ;
OBJECT_NAME ANALYZED NUM_ROWS ------------------------------ -------------------- ---------- MY_INDEX1 MY_INDEX2 MY_INDEX2 (MY_INDEX2_P1) MY_INDEX2 (MY_INDEX2_P2) MY_INDEX3 2001/10/24 12:08:57 0 MY_INDEX3 (MY_INDEX3_P1) 2001/10/24 12:08:57 0 MY_INDEX3 (MY_INDEX3_P2) 2001/10/24 12:08:57 0 MY_TABLE
SQL> select * from my_view ;
OBJECT_NAME ANALYZED NUM_ROWS ------------------------------ -------------------- ---------- MY_INDEX1 MY_INDEX2 MY_INDEX2 (MY_INDEX2_P1) MY_INDEX2 (MY_INDEX2_P2) MY_INDEX3 MY_INDEX3 (MY_INDEX3_P1) MY_INDEX3 (MY_INDEX3_P2) MY_TABLE
SQL> select * from my_view ;
OBJECT_NAME ANALYZED NUM_ROWS ------------------------------ -------------------- ---------- MY_INDEX1 MY_INDEX2 MY_INDEX2 (MY_INDEX2_P1) MY_INDEX2 (MY_INDEX2_P2) 2001/10/24 12:09:42 0 MY_INDEX3 MY_INDEX3 (MY_INDEX3_P1) MY_INDEX3 (MY_INDEX3_P2) MY_TABLE
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: INET: Cherie_Machler_at_gelco.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Oct 24 2001 - 14:50:24 CDT
![]() |
![]() |