RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-20 Thread Cary Millsap
Fyi, Oracle updated note 182699.1 last Friday. The inaccurate statements
about index fragmentation have been removed.


Cary Millsap
Hotsos Enterprises, Ltd.
http://www.hotsos.com

Upcoming events:
- Performance Diagnosis 101: 10/28 Phoenix, 11/19 Sydney
- SQL Optimization 101: 12/8-12 Dallas
- Hotsos Symposium 2004: March 7-10 Dallas
- Visit www.hotsos.com for schedule details...


-Original Message-
Richard Foote
Sent: Friday, October 17, 2003 6:29 AM
To: Multiple recipients of list ORACLE-L
Separate

Hi Hemant,

One word perfectly describes the Metalink article you highlighted:

Crap ;)

A nice example of  how Oracle Corp is the greatest myth generator of
them
all !! It's all rather sad and embarressing isn't.

Thanks for the headsup. Anyone in a position to get the note removed ?

Cheers

Richard

Quoting Metalink Note 182699.1 bde_rebuild.sql Validates and Rebuilds
Fragmentated Indexes (8.0-9.0)

Index fragmentation occurs when a key value changes, and the index row
is
deleted from one place (Leaf Block) and inserted into another.

 Deleted Leaf Rows are not reused. Therefore indexes whose columns are
 subject to value change must be rebuilt periodically since they become
naturally fragmentated.

 An index is considered to be 'fragmentated' when more than 20% of its
Leaf
Rows space is
empty because of the implicit deletes caused by indexed columns value
changes.

 Fragmentated indexes degrade the performance of index range scan
operations.


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Richard Foote
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Cary Millsap
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).


RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-20 Thread Jared Still

Thanks for the info Cary.

Jared

On Mon, 2003-10-20 at 09:29, Cary Millsap wrote:
 Fyi, Oracle updated note 182699.1 last Friday. The inaccurate statements
 about index fragmentation have been removed.
 
 
 Cary Millsap
 Hotsos Enterprises, Ltd.
 http://www.hotsos.com
 
 Upcoming events:
 - Performance Diagnosis 101: 10/28 Phoenix, 11/19 Sydney
 - SQL Optimization 101: 12/8-12 Dallas
 - Hotsos Symposium 2004: March 7-10 Dallas
 - Visit www.hotsos.com for schedule details...
 
 
 -Original Message-
 Richard Foote
 Sent: Friday, October 17, 2003 6:29 AM
 To: Multiple recipients of list ORACLE-L
 Separate
 
 Hi Hemant,
 
 One word perfectly describes the Metalink article you highlighted:
 
 Crap ;)
 
 A nice example of  how Oracle Corp is the greatest myth generator of
 them
 all !! It's all rather sad and embarressing isn't.
 
 Thanks for the headsup. Anyone in a position to get the note removed ?
 
 Cheers
 
 Richard
 
 Quoting Metalink Note 182699.1 bde_rebuild.sql Validates and Rebuilds
 Fragmentated Indexes (8.0-9.0)
 
 Index fragmentation occurs when a key value changes, and the index row
 is
 deleted from one place (Leaf Block) and inserted into another.
 
  Deleted Leaf Rows are not reused. Therefore indexes whose columns are
  subject to value change must be rebuilt periodically since they become
 naturally fragmentated.
 
  An index is considered to be 'fragmentated' when more than 20% of its
 Leaf
 Rows space is
 empty because of the implicit deletes caused by indexed columns value
 changes.
 
  Fragmentated indexes degrade the performance of index range scan
 operations.
 
 
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.net
 -- 
 Author: Richard Foote
   INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- 858-538-5051 http://www.fatcity.com
 San Diego, California-- Mailing list and web hosting services
 -
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (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).
 
 -- 
 Please see the official ORACLE-L FAQ: http://www.orafaq.net
 -- 
 Author: Cary Millsap
   INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- 858-538-5051 http://www.fatcity.com
 San Diego, California-- Mailing list and web hosting services
 -
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (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).


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jared Still
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).


Re: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-17 Thread Richard Foote
Hi Hemant,

One word perfectly describes the Metalink article you highlighted:

Crap ;)

A nice example of  how Oracle Corp is the greatest myth generator of them
all !! It's all rather sad and embarressing isn't.

Thanks for the headsup. Anyone in a position to get the note removed ?

Cheers

Richard

Quoting Metalink Note 182699.1 bde_rebuild.sql Validates and Rebuilds
Fragmentated Indexes (8.0-9.0)

Index fragmentation occurs when a key value changes, and the index row is
deleted from one place (Leaf Block) and inserted into another.

 Deleted Leaf Rows are not reused. Therefore indexes whose columns are
 subject to value change must be rebuilt periodically since they become
naturally fragmentated.

 An index is considered to be 'fragmentated' when more than 20% of its Leaf
Rows space is
empty because of the implicit deletes caused by indexed columns value
changes.

 Fragmentated indexes degrade the performance of index range scan
operations.


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Richard Foote
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).


Re: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-17 Thread Jared . Still

My experience in contacting Oracle regarding modifying of notes on MetaLink 
has not been very satisfying. I did take the opportunity to voice my dissatisfaction
by using the poll at the top of the article to indicate that I would not recommend this
article to others.

Jared








Richard Foote [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
10/17/2003 04:29 AM
Please respond to ORACLE-L


To:Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
cc:
Subject:Re: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate


Hi Hemant,

One word perfectly describes the Metalink article you highlighted:

Crap ;)

A nice example of how Oracle Corp is the greatest myth generator of them
all !! It's all rather sad and embarressing isn't.

Thanks for the headsup. Anyone in a position to get the note removed ?

Cheers

Richard

Quoting Metalink Note 182699.1 bde_rebuild.sql Validates and Rebuilds
Fragmentated Indexes (8.0-9.0)

Index fragmentation occurs when a key value changes, and the index row is
deleted from one place (Leaf Block) and inserted into another.

 Deleted Leaf Rows are not reused. Therefore indexes whose columns are
 subject to value change must be rebuilt periodically since they become
naturally fragmentated.

 An index is considered to be 'fragmentated' when more than 20% of its Leaf
Rows space is
empty because of the implicit deletes caused by indexed columns value
changes.

 Fragmentated indexes degrade the performance of index range scan
operations.


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Richard Foote
 INET: [EMAIL PROTECTED]

Fat City Network Services  -- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).




Re: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-16 Thread Richard Foote



 On Wed, 2003-10-15 at 18:04, M Rafiq 
wrote:  Jared,Those tables are transit 
type of tables and depending on your volume of   data, there are lot 
of deletes and inserts all the time resuling index   
fragmentation(holes due to deletes) and space usage.
The rebuilding not only release the space but also reduces the index  
 fragmentation. If you don't have table truncation option for such tables 
  then it is much better to rebuid indexes on such tables at regular 
interval   to release space and for better performance.  


Hi Rafiq,

I haven't been receiving all the mail from this 
list so I don't know the full thread and it doesn't appear a mail I sent a few 
days ago regarding all this ever made it so I could be wasting my time again. 
But everytime I see comments as in the above, a voice in my head says "do 
something, do something". So I'll try again.

Having lots of deletes and inserts of course 
doesn't necessarily mean fragmentation. Theseso-called holes are fully 
re-usableand in the vast majority of cases results in no substantial 
issues. Having lots of deletes, inserts and updates rarely requires the index to 
be rebuilt.

Simple little demo for any newbies or those 
force-fed Oracle myths since child birth ...

Firstof all, create a simple table 
and index. I've intentionally left a value out "in the middle" of a range for 
extra effect.

SQL create table bowie_test (ziggy 
number);

Table created.

SQL insert into bowie_test values 
(1);

1 row created.

SQL insert into bowie_test values 
(2);

1 row created.

SQL insert into bowie_test values 
(3);

1 row created.

SQL insert into bowie_test values 
(4);

1 row created.

SQL insert into bowie_test values 
(6);

1 row created.

SQL insert into bowie_test values 
(7);

1 row created.

SQL insert into bowie_test values 
(8);

1 row created.

SQL insert into bowie_test values 
(9);

1 row created.

SQL insert into bowie_test values 
(10);

1 row created.

SQL insert into bowie_test values 
(100);

1 row created.

SQL commit;

Commit complete.

SQL create index bowie_test_idx on 
bowie_test(ziggy);

Index created.

Now analyze the index 
...

SQL analyze index bowie_test_idx validate 
structure;

Index analyzed.


and we see that everything is sweet with no 
"wasted" deleted space ...

SQL select lf_rows, del_lf_rows, 
del_lf_rows_len from index_stats;

 LF_ROWS DEL_LF_ROWS 
DEL_LF_ROWS_LEN-- --- 
--- 
10 
0 
0

We now delete a number of rows 
...

SQL delete bowie_test where ziggy in 
(2,3,4,6,7,8,9,10);

8 rows deleted.

SQL commit;

Commit complete.

And we see that of the 10 leaf rows, 8 are 
deleted. As Gollum would say "nasty wasted spaces it is, gollum 
..."

SQL select lf_rows, del_lf_rows, 
del_lf_rows_len from index_stats;

 LF_ROWS DEL_LF_ROWS 
DEL_LF_ROWS_LEN-- --- 
--- 
10 
8 
112

However, we now insert a new value (notice 
it's different from any previous value but obviously belongs in the same leaf 
node as the others) ...


SQL insert into bowie_test values 
(5);

1 row created.

SQL commit;

Commit complete.

SQL analyze index bowie_test_idx validate 
structure;

Index analyzed.

SQL select lf_rows, del_lf_rows, 
del_lf_rows_len from index_stats;

 LF_ROWS DEL_LF_ROWS 
DEL_LF_ROWS_LEN-- --- 
--- 
3 
0 
0
and we see that *all* the "wasted" deleted 
space within the leaf node has been freed and is available for reuse 
...

With few exceptions (the key is picking those rare 
cases), index rebuildsare redundant, wasteful and can actually be 
"detrimental" to performance. 

Cheers

Richard



RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-16 Thread Hately, Mike (LogicaCMG)
All of that is fair enough but the number of rows and the values you've
chosen fit the point you wished to prove. The value 5 conveniently fits
the range for an existing leaf block with empty space. 
 
The facts as I understand them are this :
Index space freed by deleted entries can be reused ( by subsequent
transactions ) so long as the indexed value 'belongs' in the leaf block
which has free space.
Index leaf blocks are only placed back on the free list when they are empty
of entries.
 
This means that given a constantly incrementing index value no free space
will be reused unless whole index blocks are emptied by deletes. This is
fine for working tables which are constantly filled and (totally) emptied
but it can lead to large indexes for tables which preserve small amounts os
data across the range of keys. Such monotonically increasing key values are
pretty common in my experience.
 
I agree though that index rebuilds are often necessary. For a while now
we've had useful commands like coalesce that could combine logically
adjacent, sparsely populated leaf blocks at far less cost than a rebuild. 
 
Regards,
Mike Hately
 

-Original Message-
Sent: 16 October 2003 14:29
To: Multiple recipients of list ORACLE-L


 On Wed, 2003-10-15 at 18:04, M Rafiq wrote:
  Jared,
  
  Those tables are transit type of tables and depending on your volume of 
  data, there are lot of deletes and inserts all the time resuling index 
  fragmentation(holes due to deletes) and space usage.
  
  The rebuilding not only release the space but also reduces the index 
  fragmentation. If you don't have table truncation option for such tables

  then it is much better to rebuid indexes on such tables at regular
interval 
  to release space and for better performance.
  
 
Hi Rafiq,
 
I haven't been receiving all the mail from this list so I don't know the
full thread and it doesn't appear a mail I sent a few days ago regarding all
this ever made it so I could be wasting my time again. But everytime I see
comments as in the above, a voice in my head says do something, do
something. So I'll try again.
 
Having lots of deletes and inserts of course doesn't necessarily mean
fragmentation. These so-called holes are fully re-usable and in the vast
majority of cases results in no substantial issues. Having lots of deletes,
inserts and updates rarely requires the index to be rebuilt.
 
Simple little demo for any newbies or those force-fed Oracle myths since
child birth ...
 
First of all, create a simple table and index. I've intentionally left a
value out in the middle of a range for extra effect. 

SQL create table bowie_test (ziggy number);
 
Table created.
 
SQL insert into bowie_test values (1);
 
1 row created.
 
SQL insert into bowie_test values (2);
 
1 row created.
 
SQL insert into bowie_test values (3);
 
1 row created.
 
SQL insert into bowie_test values (4);
 
1 row created.
 
SQL insert into bowie_test values (6);
 
1 row created.
 
SQL insert into bowie_test values (7);
 
1 row created.
 
SQL insert into bowie_test values (8);
 
1 row created.
 
SQL insert into bowie_test values (9);
 
1 row created.
 
SQL insert into bowie_test values (10);
 
1 row created.
 
SQL insert into bowie_test values (100);
 
1 row created.
 
SQL commit;
 
Commit complete.
 
SQL create index bowie_test_idx on bowie_test(ziggy);
 
Index created.
 
Now analyze the index ...
 
SQL analyze index bowie_test_idx validate structure;
 
Index analyzed.
 
and we see that everything is sweet with no wasted deleted space ...
 
SQL select lf_rows, del_lf_rows, del_lf_rows_len from index_stats;
 
   LF_ROWS DEL_LF_ROWS DEL_LF_ROWS_LEN
-- --- ---
10   0   0
 
We now delete a number of rows ...
 
SQL delete bowie_test where ziggy in (2,3,4,6,7,8,9,10);
 
8 rows deleted.
 
SQL commit;
 
Commit complete.
 
And we see that of the 10 leaf rows, 8 are deleted. As Gollum would say
nasty wasted spaces it is, gollum ...
 
SQL select lf_rows, del_lf_rows, del_lf_rows_len from index_stats;
 
   LF_ROWS DEL_LF_ROWS DEL_LF_ROWS_LEN
-- --- ---
10   8 112

 
However, we now insert a new value (notice it's different from any previous
value but obviously belongs in the same leaf node as the others) ...
 

SQL insert into bowie_test values (5);
 
1 row created.
 
SQL commit;
 
Commit complete.
 
SQL analyze index bowie_test_idx validate structure;
 
Index analyzed.
 
SQL select lf_rows, del_lf_rows, del_lf_rows_len from index_stats;
 
   LF_ROWS DEL_LF_ROWS DEL_LF_ROWS_LEN
-- --- ---
 3   0   0

and we see that *all* the wasted deleted space within the leaf node has
been freed and is available for reuse ...
 
With few exceptions (the key is picking those rare cases), index rebuilds
are redundant, wasteful and can actually be detrimental to performance. 
 
Cheers
 
Richard
 




RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-16 Thread Hately, Mike (LogicaCMG)
Correction. Paragraph 4 should begin, I agree though that index rebuilds
are often unnecessary.
 
Mike

-Original Message-
Sent: 16 October 2003 15:20
To: '[EMAIL PROTECTED]'


All of that is fair enough but the number of rows and the values you've
chosen fit the point you wished to prove. The value 5 conveniently fits
the range for an existing leaf block with empty space. 
 
The facts as I understand them are this :
Index space freed by deleted entries can be reused ( by subsequent
transactions ) so long as the indexed value 'belongs' in the leaf block
which has free space.
Index leaf blocks are only placed back on the free list when they are empty
of entries.
 
This means that given a constantly incrementing index value no free space
will be reused unless whole index blocks are emptied by deletes. This is
fine for working tables which are constantly filled and (totally) emptied
but it can lead to large indexes for tables which preserve small amounts os
data across the range of keys. Such monotonically increasing key values are
pretty common in my experience.
 
I agree though that index rebuilds are often necessary. For a while now
we've had useful commands like coalesce that could combine logically
adjacent, sparsely populated leaf blocks at far less cost than a rebuild. 
 
Regards,
Mike Hately
 

-Original Message-
Sent: 16 October 2003 14:29
To: Multiple recipients of list ORACLE-L


Hi Rafiq,
 
I haven't been receiving all the mail from this list so I don't know the
full thread and it doesn't appear a mail I sent a few days ago regarding all
this ever made it so I could be wasting my time again. But everytime I see
comments as in the above, a voice in my head says do something, do
something. So I'll try again.
 
Having lots of deletes and inserts of course doesn't necessarily mean
fragmentation. These so-called holes are fully re-usable and in the vast
majority of cases results in no substantial issues. Having lots of deletes,
inserts and updates rarely requires the index to be rebuilt.
 
Simple little demo for any newbies or those force-fed Oracle myths since
child birth ...
 
 
demo snipped on space grounds - Mike Hately
 
With few exceptions (the key is picking those rare cases), index rebuilds
are redundant, wasteful and can actually be detrimental to performance. 
 
Cheers
 
Richard
 




E mail Disclaimer

You agree that you have read and understood this disclaimer and you agree to be bound 
by its terms.

The information contained in this e-mail and any files transmitted with it (if any) 
are confidential and intended for the addressee only.  If you have received this  
e-mail in error please notify the originator.

This e-mail and any attachments have been scanned for certain viruses prior to sending 
but CE Electric UK Funding Company nor any of its associated companies from whom this 
e-mail originates shall be liable for any losses as a result of any viruses being 
passed on.

No warranty of any kind is given in respect of any information contained in this   
e-mail and you should be aware that that it might be incomplete, out of date or 
incorrect. It is therefore essential that you verify all such information with us 
before placing any reliance upon it.

CE Electric UK Funding Company
Lloyds Court
78 Grey Street
Newcastle upon Tyne
NE1 6AF
Registered in England and Wales: Number 3476201



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Hately, Mike (LogicaCMG)
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).


RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-16 Thread M Rafiq
Jared,

Unfortunately at this stage I cannot quantify in numbers as I have left that 
job 5 months back. But dealing with Oracle Financials 10.7 with version 
7.3.4, I observed it practically that this table and it is indexes (i think 
4 or 5 indexes) require special attention for performance reasons.

At my last employment that table was also used by customized application 
specially Manufactruring and stock locator application and heavy usage of 
inserts and deletes. If indexes were not rebuilt on that tablespace then I 
have seen that users were complaining about slowness of thier jobs. So I 
made it a maintenance routine to rebuild indexes on gl_interface table after 
monthly closing.

Apart from this, as you cannot change code in Oracle Financials(although I 
did) , you to deal with indexes either through rebuilding them at regular 
intervals (may be six moths or a year) or adding new indexes based on your 
observation of certain codes. One monthly job called ACCRUAL REBUILD 
RECONCILIATION was passing 36 hours and I have to add 6 indexes on 2 tables 
and time went down to 1 hour. In certain codes they were suppresing 
indexes(perfectly indexed columns) resulting 15 mintues to fetch rows and 
after correcting that code it took less than second.

Now another database of Order Entry System. When I joined I observed a lot 
of performance issues. After consulting with Development team,tracked all 
those tables with lot of regular deletes and inserts,
rebuilt all indexes and got back 5GB of tablespace and performance was at 
their peak.

All those application was based on RULE optimizer so we were not analyzing 
any table/indexes but based on  experience with those applications, I was 
tracking those tables with large deletes and inserts through application(not 
data load) and rebuilding indexes with regular interval to keep smooth  
performance.

In my opinion, we always need performance satisfaction of end user instead 
of numbers.

If you have any specific question, please let me know.

Regards
Rafiq












Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Date: Wed, 15 Oct 2003 22:04:24 -0800
The 'better performance' part is what I would like
to see some metrics on.
How much better?  Is it worth the trouble?

If your indexes continually build up to the same
size, what is being gained by saving some space
for a period of time?
Thanks,

Jared

On Wed, 2003-10-15 at 18:04, M Rafiq wrote:
 Jared,

 Those tables are transit type of tables and depending on your volume of
 data, there are lot of deletes and inserts all the time resuling index
 fragmentation(holes due to deletes) and space usage.

 The rebuilding not only release the space but also reduces the index
 fragmentation. If you don't have table truncation option for such tables
 then it is much better to rebuid indexes on such tables at regular 
interval
 to release space and for better performance.

 As regard quantification, you many release sufficient amount of space if
 your usage is higher. Here it was 7.3.4 database so no LMT involved.

 Regards
 Rafiq







 Reply-To: [EMAIL PROTECTED]
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Date: Wed, 15 Oct 2003 13:19:24 -0800

 Please explain why these indexes must be built.

 What benefits do you see from it?

 Are they quantifiable?

 Jared





 M Rafiq [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
   10/14/2003 03:49 PM
   Please respond to ORACLE-L


  To: Multiple recipients of list ORACLE-L 
[EMAIL PROTECTED]
  cc:
  Subject:RE: re Rebuilding Indexes in Oracle Apps -- was 
RE:
 RE: Separate


 John
 What about gl_interface table indexes? I think indexes on all *interface(
 tables must be rebuild on a  regular interval...I was building indexes on
 gl_interfaces and fnd_request* tables on monthly basis.

 Regards
 Rafiq



 Reply-To: [EMAIL PROTECTED]
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Date: Tue, 14 Oct 2003 13:34:24 -0800

 Hemant,

 This applies on 11i only. I would rebuild all indexes supporting the
 WF_ITEM_ACTIVITY_STATUSES and WF_ATTRIBUTE_VALUES tables. I have been
 working on some AOL table(space) problems in the background and noticed
 that
 in 11i by default, we are not be purging _all_ the WF data that we should
 be
 purging. I believe the current Purge routine purges activity rows whose
 persistence has expired and are marked 'TEMPORARY' and ignores those that
 are COMPLETE (see below). My contention is that it should be deleting old
 rows that are COMPLETEd... (Fyi, this is 12+ million rows...) Notes
 141853.1, 144806.1, 132254.1, 148705.1, 148678.1 may help.

 You could check this using the following SQLs

 select activity_status, count(*)
 from applsys.wf_item_activity_statuses
 group by activity_status;

 select item_type,activity_status,count(*)
 from
 applsys.wf_item_activity_statuses where activity_status='COMPLETE'
 group by item_type,activity_status

RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-16 Thread Jared . Still

Thanks for the info.

Too bad you can't get some metrics to show what was happening.

Yes, user satisfaction is the ultimate indicator of tuning success, but
there are also metrics to back it up, they just need to be collected 
before and after.

Thanks,

Jared








M Rafiq [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
10/16/2003 10:34 AM
Please respond to ORACLE-L


To:Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
cc:
Subject:RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate


Jared,

Unfortunately at this stage I cannot quantify in numbers as I have left that 
job 5 months back. But dealing with Oracle Financials 10.7 with version 
7.3.4, I observed it practically that this table and it is indexes (i think 
4 or 5 indexes) require special attention for performance reasons.

At my last employment that table was also used by customized application 
specially Manufactruring and stock locator application and heavy usage of 
inserts and deletes. If indexes were not rebuilt on that tablespace then I 
have seen that users were complaining about slowness of thier jobs. So I 
made it a maintenance routine to rebuild indexes on gl_interface table after 
monthly closing.

Apart from this, as you cannot change code in Oracle Financials(although I 
did) , you to deal with indexes either through rebuilding them at regular 
intervals (may be six moths or a year) or adding new indexes based on your 
observation of certain codes. One monthly job called ACCRUAL REBUILD 
RECONCILIATION was passing 36 hours and I have to add 6 indexes on 2 tables 
and time went down to 1 hour. In certain codes they were suppresing 
indexes(perfectly indexed columns) resulting 15 mintues to fetch rows and 
after correcting that code it took less than second.

Now another database of Order Entry System. When I joined I observed a lot 
of performance issues. After consulting with Development team,tracked all 
those tables with lot of regular deletes and inserts,
rebuilt all indexes and got back 5GB of tablespace and performance was at 
their peak.

All those application was based on RULE optimizer so we were not analyzing 
any table/indexes but based on experience with those applications, I was 
tracking those tables with large deletes and inserts through application(not 
data load) and rebuilding indexes with regular interval to keep smooth 
performance.

In my opinion, we always need performance satisfaction of end user instead 
of numbers.

If you have any specific question, please let me know.

Regards
Rafiq













Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Date: Wed, 15 Oct 2003 22:04:24 -0800

The 'better performance' part is what I would like
to see some metrics on.

How much better? Is it worth the trouble?

If your indexes continually build up to the same
size, what is being gained by saving some space
for a period of time?

Thanks,

Jared

On Wed, 2003-10-15 at 18:04, M Rafiq wrote:
  Jared,
 
  Those tables are transit type of tables and depending on your volume of
  data, there are lot of deletes and inserts all the time resuling index
  fragmentation(holes due to deletes) and space usage.
 
  The rebuilding not only release the space but also reduces the index
  fragmentation. If you don't have table truncation option for such tables
  then it is much better to rebuid indexes on such tables at regular 
interval
  to release space and for better performance.
 
  As regard quantification, you many release sufficient amount of space if
  your usage is higher. Here it was 7.3.4 database so no LMT involved.
 
  Regards
  Rafiq
 

 
 
 
 
 
  Reply-To: [EMAIL PROTECTED]
  To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
  Date: Wed, 15 Oct 2003 13:19:24 -0800
 
  Please explain why these indexes must be built.
 
  What benefits do you see from it?
 
  Are they quantifiable?
 
  Jared
 
 
 
 
 
  M Rafiq [EMAIL PROTECTED]
  Sent by: [EMAIL PROTECTED]
   10/14/2003 03:49 PM
   Please respond to ORACLE-L
 
 
  To:   Multiple recipients of list ORACLE-L 
[EMAIL PROTECTED]
  cc:
  Subject:RE: re Rebuilding Indexes in Oracle Apps -- was 
RE:
  RE: Separate
 
 
  John
  What about gl_interface table indexes? I think indexes on all *interface(
  tables must be rebuild on a regular interval...I was building indexes on
  gl_interfaces and fnd_request* tables on monthly basis.
 
  Regards
  Rafiq
 
 
 
  Reply-To: [EMAIL PROTECTED]
  To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
  Date: Tue, 14 Oct 2003 13:34:24 -0800
 
  Hemant,
 
  This applies on 11i only. I would rebuild all indexes supporting the
  WF_ITEM_ACTIVITY_STATUSES and WF_ATTRIBUTE_VALUES tables. I have been
  working on some AOL table(space) problems in the background and noticed
  that
  in 11i by default, we are not be purging _all_ the WF data that we should
  be
  purging. I believe the current Purge routine purges activity rows whose

RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-16 Thread M Rafiq
You are right. As you agreed our ultimate goal is user satisfaction and I 
believe in that, may be a old habit. I came into computer area because of 
our dissatisfaction(being enduser) with our IT shop otherwise professionaly 
I used to be a qualified professional  accountant playing with numbers.

Regards
Rafiq




Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Date: Thu, 16 Oct 2003 14:59:26 -0800
Thanks for the info.

Too bad you can't get some metrics to show what was happening.

Yes, user satisfaction is the ultimate indicator of tuning success, but
there are also metrics to back it up, they just need to be collected
before and after.
Thanks,

Jared





M Rafiq [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
 10/16/2003 10:34 AM
 Please respond to ORACLE-L
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
cc:
Subject:RE: re Rebuilding Indexes in Oracle Apps -- was RE: 
RE: Separate

Jared,

Unfortunately at this stage I cannot quantify in numbers as I have left
that
job 5 months back. But dealing with Oracle Financials 10.7 with version
7.3.4, I observed it practically that this table and it is indexes (i
think
4 or 5 indexes) require special attention for performance reasons.
At my last employment that table was also used by customized application
specially Manufactruring and stock locator application and heavy usage of
inserts and deletes. If indexes were not rebuilt on that tablespace then I
have seen that users were complaining about slowness of thier jobs. So I
made it a maintenance routine to rebuild indexes on gl_interface table
after
monthly closing.
Apart from this, as you cannot change code in Oracle Financials(although I

did) , you to deal with indexes either through rebuilding them at regular
intervals (may be six moths or a year) or adding new indexes based on your
observation of certain codes. One monthly job called ACCRUAL REBUILD
RECONCILIATION was passing 36 hours and I have to add 6 indexes on 2
tables
and time went down to 1 hour. In certain codes they were suppresing
indexes(perfectly indexed columns) resulting 15 mintues to fetch rows and
after correcting that code it took less than second.
Now another database of Order Entry System. When I joined I observed a lot

of performance issues. After consulting with Development team,tracked all
those tables with lot of regular deletes and inserts,
rebuilt all indexes and got back 5GB of tablespace and performance was at
their peak.
All those application was based on RULE optimizer so we were not analyzing

any table/indexes but based on  experience with those applications, I was
tracking those tables with large deletes and inserts through
application(not
data load) and rebuilding indexes with regular interval to keep smooth
performance.
In my opinion, we always need performance satisfaction of end user instead

of numbers.

If you have any specific question, please let me know.

Regards
Rafiq












Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Date: Wed, 15 Oct 2003 22:04:24 -0800
The 'better performance' part is what I would like
to see some metrics on.
How much better?  Is it worth the trouble?

If your indexes continually build up to the same
size, what is being gained by saving some space
for a period of time?
Thanks,

Jared

On Wed, 2003-10-15 at 18:04, M Rafiq wrote:
  Jared,
 
  Those tables are transit type of tables and depending on your volume of
  data, there are lot of deletes and inserts all the time resuling index
  fragmentation(holes due to deletes) and space usage.
 
  The rebuilding not only release the space but also reduces the index
  fragmentation. If you don't have table truncation option for such
tables
  then it is much better to rebuid indexes on such tables at regular
interval
  to release space and for better performance.
 
  As regard quantification, you many release sufficient amount of space
if
  your usage is higher. Here it was 7.3.4 database so no LMT involved.
 
  Regards
  Rafiq
 
 
 
 
 
 
 
  Reply-To: [EMAIL PROTECTED]
  To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
  Date: Wed, 15 Oct 2003 13:19:24 -0800
 
  Please explain why these indexes must be built.
 
  What benefits do you see from it?
 
  Are they quantifiable?
 
  Jared
 
 
 
 
 
  M Rafiq [EMAIL PROTECTED]
  Sent by: [EMAIL PROTECTED]
10/14/2003 03:49 PM
Please respond to ORACLE-L
 
 
   To: Multiple recipients of list ORACLE-L
[EMAIL PROTECTED]
   cc:
   Subject:RE: re Rebuilding Indexes in Oracle Apps --
was
RE:
  RE: Separate
 
 
  John
  What about gl_interface table indexes? I think indexes on all
*interface(
  tables must be rebuild on a  regular interval...I was building indexes
on
  gl_interfaces and fnd_request* tables on monthly basis.
 
  Regards
  Rafiq
 
 
 
  Reply-To: [EMAIL PROTECTED]
  To: Multiple recipients of list ORACLE-L [EMAIL

RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-15 Thread Jared . Still

Please explain why these indexes must be built.

What benefits do you see from it?

Are they quantifiable? 

Jared







M Rafiq [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
10/14/2003 03:49 PM
Please respond to ORACLE-L


To:Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
cc:
Subject:RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate


John
What about gl_interface table indexes? I think indexes on all *interface( 
tables must be rebuild on a regular interval...I was building indexes on 
gl_interfaces and fnd_request* tables on monthly basis.

Regards
Rafiq



Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Date: Tue, 14 Oct 2003 13:34:24 -0800

Hemant,

This applies on 11i only. I would rebuild all indexes supporting the
WF_ITEM_ACTIVITY_STATUSES and WF_ATTRIBUTE_VALUES tables. I have been
working on some AOL table(space) problems in the background and noticed that
in 11i by default, we are not be purging _all_ the WF data that we should be
purging. I believe the current Purge routine purges activity rows whose
persistence has expired and are marked 'TEMPORARY' and ignores those that
are COMPLETE (see below). My contention is that it should be deleting old
rows that are COMPLETEd... (Fyi, this is 12+ million rows...) Notes
141853.1, 144806.1, 132254.1, 148705.1, 148678.1 may help.

You could check this using the following SQLs

select activity_status, count(*)
from applsys.wf_item_activity_statuses
group by activity_status;

select item_type,activity_status,count(*)
from
applsys.wf_item_activity_statuses where activity_status='COMPLETE'
group by item_type,activity_status;

Once the 'correct' purge is complete, the 'holey' indexes will need to be
rebuilt and the WF_ tables copied/truncated/recopied to shrink the HWM to
reasonable levels.

Let me know what your install shows up.
John Kanagaraj
DB Soft Inc
Phone: 408-970-7002 (W)

Grace - Getting something we do NOT deserve
Mercy - NOT getting something we DO deserve
Click on 'http://www.needhim.org' for Grace and Mercy that is freely
available!

** The opinions and facts contained in this message are entirely mine and do
not reflect those of my employer or customers **

-Original Message-
Sent: Tuesday, October 14, 2003 8:39 AM
To: Multiple recipients of list ORACLE-L



John,

I rebuild the FND_CONCURRENT_REQUESTS indexes every four months [and the
table itself, occassionally].
This Saturday I will also be rebuilding some ALR indexes.
Which WorkFlow Indexes do you rebuild ?

Hemant

At 11:44 AM 13-10-03 -0800, you wrote:

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: John Kanagaraj
  INET: [EMAIL PROTECTED]

Fat City Network Services  -- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).

_
Concerned that messages may bounce because your Hotmail account has exceeded 
its 2MB storage limit? Get Hotmail Extra Storage! 
http://join.msn.com/?PAGE=features/es

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: M Rafiq
 INET: [EMAIL PROTECTED]

Fat City Network Services  -- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).




RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-15 Thread Khedr, Waleed



Not 
again :)
At 
least we have to justify our pay :)

Waleed


Any views or opinions presented in this email are solely 
those of the author and do not necessarily represent those of the 
company

  -Original Message-From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, October 15, 2003 
  5:19 PMTo: Multiple recipients of list ORACLE-LSubject: 
  RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: 
  SeparatePlease explain 
  why these indexes must be built. What benefits do you see from it? Are they quantifiable?  Jared 
  


  
  "M Rafiq" 
[EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 
10/14/2003 03:49 PM 
Please respond to ORACLE-L 
  To:   
 Multiple recipients of list ORACLE-L 
[EMAIL PROTECTED] cc:

 Subject:RE: re Rebuilding Indexes in 
Oracle Apps -- was RE: RE: 
  SeparateJohnWhat about gl_interface table indexes? I think indexes on all 
  *interface( tables must be rebuild on a regular interval...I was 
  building indexes on gl_interfaces and fnd_request* tables on monthly 
  basis.RegardsRafiqReply-To: 
  [EMAIL PROTECTED]To: Multiple recipients of list ORACLE-L 
  [EMAIL PROTECTED]Date: Tue, 14 Oct 2003 13:34:24 
  -0800Hemant,This applies on 11i only. I would rebuild all 
  indexes supporting theWF_ITEM_ACTIVITY_STATUSES and WF_ATTRIBUTE_VALUES 
  tables. I have beenworking on some AOL table(space) problems in the 
  background and noticed thatin 11i by default, we are not be purging _all_ 
  the WF data that we should bepurging. I believe the current Purge routine 
  purges activity rows whosepersistence has expired and are marked 
  'TEMPORARY' and ignores those thatare COMPLETE (see below). My contention 
  is that it should be deleting oldrows that are COMPLETEd... (Fyi, this is 
  12+ million rows...) Notes141853.1, 144806.1, 132254.1, 148705.1, 148678.1 
  may help.You could check this using the following SQLsselect 
  activity_status, count(*)from applsys.wf_item_activity_statusesgroup 
  by activity_status;select 
  item_type,activity_status,count(*)fromapplsys.wf_item_activity_statuses 
  where activity_status='COMPLETE'group by 
  item_type,activity_status;Once the 'correct' purge is complete, the 
  'holey' indexes will need to berebuilt and the WF_ tables 
  copied/truncated/recopied to shrink the HWM toreasonable 
  levels.Let me know what your install shows up.John KanagarajDB 
  Soft IncPhone: 408-970-7002 (W)Grace - Getting something we do NOT 
  deserveMercy - NOT getting something we DO deserveClick on 
  'http://www.needhim.org' for Grace and Mercy that is 
  freelyavailable!** The opinions and facts contained in this 
  message are entirely mine and donot reflect those of my employer or 
  customers **-Original Message-Sent: Tuesday, October 14, 
  2003 8:39 AMTo: Multiple recipients of list 
  ORACLE-LJohn,I rebuild the FND_CONCURRENT_REQUESTS 
  indexes every four months [and thetable itself, occassionally].This 
  Saturday I will also be rebuilding some ALR indexes.Which WorkFlow Indexes 
  do you rebuild ?HemantAt 11:44 AM 13-10-03 -0800, you 
  wrote:--Please see the official ORACLE-L FAQ: 
  http://www.orafaq.net--Author: John Kanagaraj INET: 
  [EMAIL PROTECTED]Fat City Network Services  -- 
  858-538-5051 http://www.fatcity.comSan Diego, California   
   -- Mailing list and web hosting 
  services-To 
  REMOVE yourself from this mailing list, send an E-Mail messageto: 
  [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and inthe message 
  BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing 
  list you want to be removed from). You mayalso send the HELP command 
  for other information (like subscribing)._Concerned 
  that messages may bounce because your Hotmail account has exceeded its 2MB 
  storage limit? Get Hotmail Extra Storage! 
  http://join.msn.com/?PAGE=features/es-- Please see the 
  official ORACLE-L FAQ: http://www.orafaq.net-- Author: M 
  RafiqINET: [EMAIL PROTECTED]Fat City Network Services 
   -- 858-538-5051 http://www.fatcity.comSan Diego, California 
 -- Mailing list and web hosting 
  services-To 
  REMOVE yourself from this mailing list, send an E-Mail messageto: 
  [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and inthe message 
  BODY, include a line containing: UNSUB ORACLE-L(or the name of mailing 
  list you want to be removed from). You mayalso send the HELP command 
  for other information (like 
subscribing).


RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-15 Thread John Kanagaraj
List,

The %INTERFACE% tables (usually) consist of rows that are temporary in
nature. The indexes supporting them are 'fragmented' (the term can be argued
I suppose). I did test this out on the GL_INTERFACE_N2 index -
ANALYZE/VALIDATE and record INDEX_STATS, Rebuild index, ANALYZE/VALIDATE and
record INDEX_STATS again. The figures are below, but just to highlight a
few:

HEIGHT (Index depth) dropped from 3 to 2; BLKS_GETS_PER_ACCESS (expected
number of CR reads to get to a row) dropped from 12 to 3; the PCT_USED
(percentage of space allocated that is used) increased from 38% to 99%...

HEIGHT  3   2
BLOCKS  44804432
LF_ROWS 362409  22552
LF_BLKS 423075
LF_ROWS_LEN 12531538578797
LF_BLK_LEN  79487780
BR_ROWS 422974
BR_BLKS 58  1
BR_ROWS_LEN 134043  1919
BR_BLK_LEN  80288028
DEL_LF_ROWS 339857  0
DEL_LF_ROWS_LEN 119527410
DISTINCT_KEYS   20869   9548
MOST_REPEATED_KEY   38594   8430
BTREE_SPACE 34085664591528
USED_SPACE  12665581580716
PCT_USED38  99
ROWS_PER_KEY17.3659016  2.36196062
BLKS_GETS_PER_ACCESS12.1829508  3.68098031
PRE_ROWS0   0
PRE_ROWS_LEN0   0

For a detailed explanation, look at the definition of INDEX_STATS. YMMV, but
you will probably get the most from Non-unique indexes... (as in this case).


John Kanagaraj
DB Soft Inc
Phone: 408-970-7002 (W)

Grace - Getting something we do NOT deserve
Mercy - NOT getting something we DO deserve
Click on 'http://www.needhim.org' for Grace and Mercy that is freely
available!

** The opinions and facts contained in this message are entirely mine and do
not reflect those of my employer or customers **
-Original Message-
Sent: Wednesday, October 15, 2003 2:19 PM
To: Multiple recipients of list ORACLE-L



Please explain why these indexes must be built. 

What benefits do you see from it? 

Are they quantifiable?   

Jared 



M Rafiq [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED] 
 10/14/2003 03:49 PM 
 Please respond to ORACLE-L 

To:Multiple recipients of list ORACLE-L
[EMAIL PROTECTED] 
cc: 
Subject:RE: re Rebuilding Indexes in Oracle Apps -- was RE:
RE: Separate



John
What about gl_interface table indexes? I think indexes on all *interface( 
tables must be rebuild on a  regular interval...I was building indexes on 
gl_interfaces and fnd_request* tables on monthly basis.

Regards
Rafiq



Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Date: Tue, 14 Oct 2003 13:34:24 -0800

Hemant,

This applies on 11i only. I would rebuild all indexes supporting the
WF_ITEM_ACTIVITY_STATUSES and WF_ATTRIBUTE_VALUES tables. I have been
working on some AOL table(space) problems in the background and noticed that
in 11i by default, we are not be purging _all_ the WF data that we should be
purging. I believe the current Purge routine purges activity rows whose
persistence has expired and are marked 'TEMPORARY' and ignores those that
are COMPLETE (see below). My contention is that it should be deleting old
rows that are COMPLETEd... (Fyi, this is 12+ million rows...) Notes
141853.1, 144806.1, 132254.1, 148705.1, 148678.1 may help.

You could check this using the following SQLs

select activity_status, count(*)
from applsys.wf_item_activity_statuses
group by activity_status;

select item_type,activity_status,count(*)
from
applsys.wf_item_activity_statuses where activity_status='COMPLETE'
group by item_type,activity_status;

Once the 'correct' purge is complete, the 'holey' indexes will need to be
rebuilt and the WF_ tables copied/truncated/recopied to shrink the HWM to
reasonable levels.

Let me know what your install shows up.
John Kanagaraj
DB Soft Inc
Phone: 408-970-7002 (W)

Grace - Getting something we do NOT deserve
Mercy - NOT getting something we DO deserve
Click on 'http://www.needhim.org' for Grace and Mercy that is freely
available!

** The opinions and facts contained in this message are entirely mine and do
not reflect those of my employer or customers **

-Original Message-
Sent: Tuesday, October 14, 2003 8:39 AM
To: Multiple recipients of list ORACLE-L



John,

I rebuild the FND_CONCURRENT_REQUESTS indexes every four months [and the
table itself, occassionally].
This Saturday I will also be rebuilding some ALR indexes.
Which WorkFlow Indexes do you rebuild ?

Hemant

At 11:44 AM 13-10-03 -0800, you wrote:

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: John Kanagaraj
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL

RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-15 Thread M Rafiq
Jared,

Those tables are transit type of tables and depending on your volume of 
data, there are lot of deletes and inserts all the time resuling index 
fragmentation(holes due to deletes) and space usage.

The rebuilding not only release the space but also reduces the index 
fragmentation. If you don't have table truncation option for such tables 
then it is much better to rebuid indexes on such tables at regular interval 
to release space and for better performance.

As regard quantification, you many release sufficient amount of space if 
your usage is higher. Here it was 7.3.4 database so no LMT involved.

Regards
Rafiq






Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Date: Wed, 15 Oct 2003 13:19:24 -0800
Please explain why these indexes must be built.

What benefits do you see from it?

Are they quantifiable?

Jared





M Rafiq [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
 10/14/2003 03:49 PM
 Please respond to ORACLE-L
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
cc:
Subject:RE: re Rebuilding Indexes in Oracle Apps -- was RE: 
RE: Separate

John
What about gl_interface table indexes? I think indexes on all *interface(
tables must be rebuild on a  regular interval...I was building indexes on
gl_interfaces and fnd_request* tables on monthly basis.
Regards
Rafiq


Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Date: Tue, 14 Oct 2003 13:34:24 -0800
Hemant,

This applies on 11i only. I would rebuild all indexes supporting the
WF_ITEM_ACTIVITY_STATUSES and WF_ATTRIBUTE_VALUES tables. I have been
working on some AOL table(space) problems in the background and noticed
that
in 11i by default, we are not be purging _all_ the WF data that we should
be
purging. I believe the current Purge routine purges activity rows whose
persistence has expired and are marked 'TEMPORARY' and ignores those that
are COMPLETE (see below). My contention is that it should be deleting old
rows that are COMPLETEd... (Fyi, this is 12+ million rows...) Notes
141853.1, 144806.1, 132254.1, 148705.1, 148678.1 may help.
You could check this using the following SQLs

select activity_status, count(*)
from applsys.wf_item_activity_statuses
group by activity_status;
select item_type,activity_status,count(*)
from
applsys.wf_item_activity_statuses where activity_status='COMPLETE'
group by item_type,activity_status;
Once the 'correct' purge is complete, the 'holey' indexes will need to be
rebuilt and the WF_ tables copied/truncated/recopied to shrink the HWM to
reasonable levels.
Let me know what your install shows up.
John Kanagaraj
DB Soft Inc
Phone: 408-970-7002 (W)
Grace - Getting something we do NOT deserve
Mercy - NOT getting something we DO deserve
Click on 'http://www.needhim.org' for Grace and Mercy that is freely
available!
** The opinions and facts contained in this message are entirely mine and
do
not reflect those of my employer or customers **
-Original Message-
Sent: Tuesday, October 14, 2003 8:39 AM
To: Multiple recipients of list ORACLE-L


John,

I rebuild the FND_CONCURRENT_REQUESTS indexes every four months [and the
table itself, occassionally].
This Saturday I will also be rebuilding some ALR indexes.
Which WorkFlow Indexes do you rebuild ?
Hemant

At 11:44 AM 13-10-03 -0800, you wrote:

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: John Kanagaraj
   INET: [EMAIL PROTECTED]
Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).
_
Concerned that messages may bounce because your Hotmail account has
exceeded
its 2MB storage limit? Get Hotmail Extra Storage!
http://join.msn.com/?PAGE=features/es
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: M Rafiq
  INET: [EMAIL PROTECTED]
Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).
_
Concerned that messages may bounce

RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-15 Thread M Rafiq
John
Thanks foe detailed explanation.
Regards


Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Date: Wed, 15 Oct 2003 14:34:47 -0800
List,

The %INTERFACE% tables (usually) consist of rows that are temporary in
nature. The indexes supporting them are 'fragmented' (the term can be argued
I suppose). I did test this out on the GL_INTERFACE_N2 index -
ANALYZE/VALIDATE and record INDEX_STATS, Rebuild index, ANALYZE/VALIDATE and
record INDEX_STATS again. The figures are below, but just to highlight a
few:
HEIGHT (Index depth) dropped from 3 to 2; BLKS_GETS_PER_ACCESS (expected
number of CR reads to get to a row) dropped from 12 to 3; the PCT_USED
(percentage of space allocated that is used) increased from 38% to 99%...
HEIGHT  3   2
BLOCKS  44804432
LF_ROWS 362409  22552
LF_BLKS 423075
LF_ROWS_LEN 12531538578797
LF_BLK_LEN  79487780
BR_ROWS 422974
BR_BLKS 58  1
BR_ROWS_LEN 134043  1919
BR_BLK_LEN  80288028
DEL_LF_ROWS 339857  0
DEL_LF_ROWS_LEN 119527410
DISTINCT_KEYS   20869   9548
MOST_REPEATED_KEY   38594   8430
BTREE_SPACE 34085664591528
USED_SPACE  12665581580716
PCT_USED38  99
ROWS_PER_KEY17.3659016  2.36196062
BLKS_GETS_PER_ACCESS12.1829508  3.68098031
PRE_ROWS0   0
PRE_ROWS_LEN0   0
For a detailed explanation, look at the definition of INDEX_STATS. YMMV, but
you will probably get the most from Non-unique indexes... (as in this case).
John Kanagaraj
DB Soft Inc
Phone: 408-970-7002 (W)
Grace - Getting something we do NOT deserve
Mercy - NOT getting something we DO deserve
Click on 'http://www.needhim.org' for Grace and Mercy that is freely
available!
** The opinions and facts contained in this message are entirely mine and do
not reflect those of my employer or customers **
-Original Message-
Sent: Wednesday, October 15, 2003 2:19 PM
To: Multiple recipients of list ORACLE-L


Please explain why these indexes must be built.

What benefits do you see from it?

Are they quantifiable?

Jared



M Rafiq [EMAIL PROTECTED]
Sent by: [EMAIL PROTECTED]
 10/14/2003 03:49 PM
 Please respond to ORACLE-L
To:Multiple recipients of list ORACLE-L
[EMAIL PROTECTED]
cc:
Subject:RE: re Rebuilding Indexes in Oracle Apps -- was RE:
RE: Separate


John
What about gl_interface table indexes? I think indexes on all *interface(
tables must be rebuild on a  regular interval...I was building indexes on
gl_interfaces and fnd_request* tables on monthly basis.
Regards
Rafiq


Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Date: Tue, 14 Oct 2003 13:34:24 -0800
Hemant,

This applies on 11i only. I would rebuild all indexes supporting the
WF_ITEM_ACTIVITY_STATUSES and WF_ATTRIBUTE_VALUES tables. I have been
working on some AOL table(space) problems in the background and noticed that
in 11i by default, we are not be purging _all_ the WF data that we should be
purging. I believe the current Purge routine purges activity rows whose
persistence has expired and are marked 'TEMPORARY' and ignores those that
are COMPLETE (see below). My contention is that it should be deleting old
rows that are COMPLETEd... (Fyi, this is 12+ million rows...) Notes
141853.1, 144806.1, 132254.1, 148705.1, 148678.1 may help.
You could check this using the following SQLs

select activity_status, count(*)
from applsys.wf_item_activity_statuses
group by activity_status;
select item_type,activity_status,count(*)
from
applsys.wf_item_activity_statuses where activity_status='COMPLETE'
group by item_type,activity_status;
Once the 'correct' purge is complete, the 'holey' indexes will need to be
rebuilt and the WF_ tables copied/truncated/recopied to shrink the HWM to
reasonable levels.
Let me know what your install shows up.
John Kanagaraj
DB Soft Inc
Phone: 408-970-7002 (W)
Grace - Getting something we do NOT deserve
Mercy - NOT getting something we DO deserve
Click on 'http://www.needhim.org' for Grace and Mercy that is freely
available!
** The opinions and facts contained in this message are entirely mine and do
not reflect those of my employer or customers **
-Original Message-
Sent: Tuesday, October 14, 2003 8:39 AM
To: Multiple recipients of list ORACLE-L


John,

I rebuild the FND_CONCURRENT_REQUESTS indexes every four months [and the
table itself, occassionally].
This Saturday I will also be rebuilding some ALR indexes.
Which WorkFlow Indexes do you rebuild ?
Hemant

At 11:44 AM 13-10-03 -0800, you wrote:

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: John Kanagaraj
  INET: [EMAIL PROTECTED]
Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services

RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-15 Thread Jared Still
The 'better performance' part is what I would like
to see some metrics on.

How much better?  Is it worth the trouble?

If your indexes continually build up to the same
size, what is being gained by saving some space
for a period of time?

Thanks,

Jared

On Wed, 2003-10-15 at 18:04, M Rafiq wrote:
 Jared,
 
 Those tables are transit type of tables and depending on your volume of 
 data, there are lot of deletes and inserts all the time resuling index 
 fragmentation(holes due to deletes) and space usage.
 
 The rebuilding not only release the space but also reduces the index 
 fragmentation. If you don't have table truncation option for such tables 
 then it is much better to rebuid indexes on such tables at regular interval 
 to release space and for better performance.
 
 As regard quantification, you many release sufficient amount of space if 
 your usage is higher. Here it was 7.3.4 database so no LMT involved.
 
 Regards
 Rafiq
 
 
 
 
 
 
 
 Reply-To: [EMAIL PROTECTED]
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Date: Wed, 15 Oct 2003 13:19:24 -0800
 
 Please explain why these indexes must be built.
 
 What benefits do you see from it?
 
 Are they quantifiable?
 
 Jared
 
 
 
 
 
 M Rafiq [EMAIL PROTECTED]
 Sent by: [EMAIL PROTECTED]
   10/14/2003 03:49 PM
   Please respond to ORACLE-L
 
 
  To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
  cc:
  Subject:RE: re Rebuilding Indexes in Oracle Apps -- was RE: 
 RE: Separate
 
 
 John
 What about gl_interface table indexes? I think indexes on all *interface(
 tables must be rebuild on a  regular interval...I was building indexes on
 gl_interfaces and fnd_request* tables on monthly basis.
 
 Regards
 Rafiq
 
 
 
 Reply-To: [EMAIL PROTECTED]
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
 Date: Tue, 14 Oct 2003 13:34:24 -0800
 
 Hemant,
 
 This applies on 11i only. I would rebuild all indexes supporting the
 WF_ITEM_ACTIVITY_STATUSES and WF_ATTRIBUTE_VALUES tables. I have been
 working on some AOL table(space) problems in the background and noticed
 that
 in 11i by default, we are not be purging _all_ the WF data that we should
 be
 purging. I believe the current Purge routine purges activity rows whose
 persistence has expired and are marked 'TEMPORARY' and ignores those that
 are COMPLETE (see below). My contention is that it should be deleting old
 rows that are COMPLETEd... (Fyi, this is 12+ million rows...) Notes
 141853.1, 144806.1, 132254.1, 148705.1, 148678.1 may help.
 
 You could check this using the following SQLs
 
 select activity_status, count(*)
 from applsys.wf_item_activity_statuses
 group by activity_status;
 
 select item_type,activity_status,count(*)
 from
 applsys.wf_item_activity_statuses where activity_status='COMPLETE'
 group by item_type,activity_status;
 
 Once the 'correct' purge is complete, the 'holey' indexes will need to be
 rebuilt and the WF_ tables copied/truncated/recopied to shrink the HWM to
 reasonable levels.
 
 Let me know what your install shows up.
 John Kanagaraj
 DB Soft Inc
 Phone: 408-970-7002 (W)
 
 Grace - Getting something we do NOT deserve
 Mercy - NOT getting something we DO deserve
 Click on 'http://www.needhim.org' for Grace and Mercy that is freely
 available!
 
 ** The opinions and facts contained in this message are entirely mine and
 do
 not reflect those of my employer or customers **
 
 -Original Message-
 Sent: Tuesday, October 14, 2003 8:39 AM
 To: Multiple recipients of list ORACLE-L
 
 
 
 John,
 
 I rebuild the FND_CONCURRENT_REQUESTS indexes every four months [and the
 table itself, occassionally].
 This Saturday I will also be rebuilding some ALR indexes.
 Which WorkFlow Indexes do you rebuild ?
 
 Hemant
 
 At 11:44 AM 13-10-03 -0800, you wrote:
 
 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.net
 --
 Author: John Kanagaraj
 INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- 858-538-5051 http://www.fatcity.com
 San Diego, California-- Mailing list and web hosting services
 -
 To REMOVE yourself from this mailing list, send an E-Mail message
 to: [EMAIL PROTECTED] (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).
 
 _
 Concerned that messages may bounce because your Hotmail account has
 exceeded
 its 2MB storage limit? Get Hotmail Extra Storage!
 http://join.msn.com/?PAGE=features/es
 
 --
 Please see the official ORACLE-L FAQ: http://www.orafaq.net
 --
 Author: M Rafiq
INET: [EMAIL PROTECTED]
 
 Fat City Network Services-- 858-538-5051 http://www.fatcity.com
 San Diego, California-- Mailing list and web hosting services

re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-14 Thread Hemant K Chitale


John,
I rebuild the FND_CONCURRENT_REQUESTS indexes every four months [and the
table itself, occassionally].
This Saturday I will also be rebuilding some ALR indexes.
Which WorkFlow Indexes do you rebuild ?
Hemant
At 11:44 AM 13-10-03 -0800, you wrote:
Jared,

Any indexes supporting a
In-Today; Gone-Tomorrow status table will require index
rebuilds. Most of them have monotonically increasing numbers which lends
itself to a 'holey' index... (I have a bunch of them with Oracle Apps
Concurrent Manager and Workflow tables)


John Kanagaraj
DB Soft Inc
Phone: 408-970-7002 (W)
Disappointment is inevitable, but Discouragement is optional!
** The opinions and facts contained in this message are entirely mine and
do not reflect those of my employer or customers **

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Monday, October 13, 2003 11:39 AM
To: Multiple recipients of list ORACLE-L
Subject: RE: RE: Separate Indexes and Data

hmmm... fodder for an article I've been contemplating.


Indexes: to rebuild or not to rebuild - that is the question 

There's no need to reclaim space, except in special circumstances. 

As Kirti pointed out once, a sequentially incrementing numeric key is 
possibly one of those circumstances. 

Not much point in rebuilding indexes in most cases. 

If anyone cares to submit test cases for validation of the need of an 
index rebuild, you may do so here. 

Give me some test fodder! 

Jared 


[EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED] 

10/13/2003 08:59 AM 
Please respond to ORACLE-L 
 
 To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED] 
 cc:  
 Subject: RE: RE: Separate Indexes and Data



I assume that what Rachel is referring to is the fact that indexes will
generally not release much space when the underlying rows are deleted. They
just keep growing, so if you have a large indexed table that frequently
deletes and inserts the indexes can grow to fairly ridiculous sizes over a
period of time. We just went through the exercise of rebuilding indexes on
a db supporting a 3rd party app and reclaimed about 70% of the allocated
index space.

Jay Miller
Sr. Oracle DBA
x68355


-Original Message-
Sent: Sunday, October 12, 2003 7:39 AM
To: Multiple recipients of list ORACLE-L


Hi Rachael,

You have me a little confused here.

What do you mean by We over allocate space ? To the index segments or to
the tablespace ?

Why the need to rebuild the indexes ? How are they using more space than
required ?

What do you mean that you adjust the pctfree so you can determine how small
you can resize them to ?

You seem to go to a lot of trouble, I'm just failing to see what it all
achieves ???

Cheers

Richard
- Original Message -
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 4:34 AM


 Nuh uh, not me... I have never used or experimented with 
 auto-allocate.

 I separate indexes and tables so that I can reclaim space by 
 rebuilding the indexes into smaller space.

 I've just completed writing the scripts for the following:

 we have a data warehouse, partitioned on the biggest table on date by 
 month. There are 10 or 11 indexes on this table. We overallocate space 
 when we create the new partition for the next month. Data is loaded 
 daily. The hosting company has an automated procedure to add space to 
 the datafile if the used space percentage is greater than some number 
 (we get charged each time they do this, and they never allocate enough 
 space so they do it over and over towards the end of the month).

 since the indexes are increasing on a daily basis, we overallocate the 
 space. The next month, I go out, determine the 
 partition/tablespace/datafiles that need to be resized (naming 
 standards rule in this case), rebuild the indexes into an interim 
 tablespace, rebuild them back to the original one with a smaller 
 pctfree and then determine how small I can resize them down to.

 If there were table data in these tablespaces, I'd be out of luck on 
 trying to reclaim space


 --- [EMAIL PROTECTED] wrote:
  the defrag paper was written back in 1998 I believe. Uniform extents 
  were a good solution pre-9i. We use them here on our 8i databases. I 
  stick with an uniform 5m extent size even though I have tables that 
  can fit into 128k extents, but feel that the overall time savings by 
  using 1 extent size makes up for this.
 
  unfortunately unlike most systems we cannot break up our tables into 
  different tablespaces. We use transportable tablespaces to batch 
  publish data to data marts. New tablespaces mean additional 
  transportable tablespaces and more places for stuff to go wrong.
 
  I saw some posts on dejanews recently from some pretty experienced 
  DBAs stating that there may be 'flaws' in auto-allocate leading to 
  poor extent sizes that leads to fragmentation. I believe Rachel 
  Carmichael made a post on here a few months back with the similiar 
  

RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-14 Thread John Kanagaraj
Hemant,

This applies on 11i only. I would rebuild all indexes supporting the
WF_ITEM_ACTIVITY_STATUSES and WF_ATTRIBUTE_VALUES tables. I have been
working on some AOL table(space) problems in the background and noticed that
in 11i by default, we are not be purging _all_ the WF data that we should be
purging. I believe the current Purge routine purges activity rows whose
persistence has expired and are marked 'TEMPORARY' and ignores those that
are COMPLETE (see below). My contention is that it should be deleting old
rows that are COMPLETEd... (Fyi, this is 12+ million rows...) Notes
141853.1, 144806.1, 132254.1, 148705.1, 148678.1 may help.

You could check this using the following SQLs

select activity_status, count(*) 
from applsys.wf_item_activity_statuses 
group by activity_status;

select item_type,activity_status,count(*) 
from 
applsys.wf_item_activity_statuses where activity_status='COMPLETE'
group by item_type,activity_status;

Once the 'correct' purge is complete, the 'holey' indexes will need to be
rebuilt and the WF_ tables copied/truncated/recopied to shrink the HWM to
reasonable levels.

Let me know what your install shows up.
John Kanagaraj
DB Soft Inc
Phone: 408-970-7002 (W)

Grace - Getting something we do NOT deserve
Mercy - NOT getting something we DO deserve
Click on 'http://www.needhim.org' for Grace and Mercy that is freely
available!

** The opinions and facts contained in this message are entirely mine and do
not reflect those of my employer or customers **

-Original Message-
Sent: Tuesday, October 14, 2003 8:39 AM
To: Multiple recipients of list ORACLE-L



John,

I rebuild the FND_CONCURRENT_REQUESTS indexes every four months [and the
table itself, occassionally].
This Saturday I will also be rebuilding some ALR indexes.
Which WorkFlow Indexes do you rebuild ?

Hemant

At 11:44 AM 13-10-03 -0800, you wrote:

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: John Kanagaraj
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).


RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-14 Thread M Rafiq
John
What about gl_interface table indexes? I think indexes on all *interface( 
tables must be rebuild on a  regular interval...I was building indexes on 
gl_interfaces and fnd_request* tables on monthly basis.

Regards
Rafiq


Reply-To: [EMAIL PROTECTED]
To: Multiple recipients of list ORACLE-L [EMAIL PROTECTED]
Date: Tue, 14 Oct 2003 13:34:24 -0800
Hemant,

This applies on 11i only. I would rebuild all indexes supporting the
WF_ITEM_ACTIVITY_STATUSES and WF_ATTRIBUTE_VALUES tables. I have been
working on some AOL table(space) problems in the background and noticed that
in 11i by default, we are not be purging _all_ the WF data that we should be
purging. I believe the current Purge routine purges activity rows whose
persistence has expired and are marked 'TEMPORARY' and ignores those that
are COMPLETE (see below). My contention is that it should be deleting old
rows that are COMPLETEd... (Fyi, this is 12+ million rows...) Notes
141853.1, 144806.1, 132254.1, 148705.1, 148678.1 may help.
You could check this using the following SQLs

select activity_status, count(*)
from applsys.wf_item_activity_statuses
group by activity_status;
select item_type,activity_status,count(*)
from
applsys.wf_item_activity_statuses where activity_status='COMPLETE'
group by item_type,activity_status;
Once the 'correct' purge is complete, the 'holey' indexes will need to be
rebuilt and the WF_ tables copied/truncated/recopied to shrink the HWM to
reasonable levels.
Let me know what your install shows up.
John Kanagaraj
DB Soft Inc
Phone: 408-970-7002 (W)
Grace - Getting something we do NOT deserve
Mercy - NOT getting something we DO deserve
Click on 'http://www.needhim.org' for Grace and Mercy that is freely
available!
** The opinions and facts contained in this message are entirely mine and do
not reflect those of my employer or customers **
-Original Message-
Sent: Tuesday, October 14, 2003 8:39 AM
To: Multiple recipients of list ORACLE-L


John,

I rebuild the FND_CONCURRENT_REQUESTS indexes every four months [and the
table itself, occassionally].
This Saturday I will also be rebuilding some ALR indexes.
Which WorkFlow Indexes do you rebuild ?
Hemant

At 11:44 AM 13-10-03 -0800, you wrote:

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: John Kanagaraj
  INET: [EMAIL PROTECTED]
Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).
_
Concerned that messages may bounce because your Hotmail account has exceeded 
its 2MB storage limit? Get Hotmail Extra Storage! 
http://join.msn.com/?PAGE=features/es

--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: M Rafiq
 INET: [EMAIL PROTECTED]
Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).


RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-14 Thread John Kanagaraj
Rafiq,

John
What about gl_interface table indexes? I think indexes on all 
*interface( 
tables must be rebuild on a  regular interval...I was building 
indexes on 
gl_interfaces and fnd_request* tables on monthly basis.

Indeed the interface tables suffer as well. I would suggest a TRUNCate of
these tables after processing monthend (or at an agreed time with the
users), so the index will be chopped as well

John Kanagaraj
DB Soft Inc
Phone: 408-970-7002 (W)

Disappointment is inevitable, but Discouragement is optional! 

** The opinions and facts contained in this message are entirely mine and do
not reflect those of my employer or customers **
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: John Kanagaraj
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).


RE: re Rebuilding Indexes in Oracle Apps -- was RE: RE: Separate

2003-10-14 Thread hernawan

Hi, I do rebuild index for table AP_INVOICES_ALL
but it seems that no effect on extents.

select owner, segment_name, tablespace_name, count(*), sum(bytes)
  2  from sys.dba_extents
  3  where segment_name like 'AP_INVOICES_N3' and tablespace_name='APX'
  4  group by owner, segment_name, tablespace_name
result :
AP AP_INVOICES_N3   APX 45   46202880

and then :
alter index AP.AP_INVOICES_N3
  2* rebuild compute statistics online nologging tablespace APX

but the extents still as above.
any advice?

regards

On Tue, 14 Oct 2003, John Kanagaraj wrote:

 Hemant,
 
 This applies on 11i only. I would rebuild all indexes supporting the
 WF_ITEM_ACTIVITY_STATUSES and WF_ATTRIBUTE_VALUES tables. I have been

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: hernawan
  INET: [EMAIL PROTECTED]

Fat City Network Services-- 858-538-5051 http://www.fatcity.com
San Diego, California-- Mailing list and web hosting services
-
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (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).