Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

global index - Table stats

Posted on 2014-03-06
3
Medium Priority
?
551 Views
Last Modified: 2014-04-08
When you happen index to table that has global index, what happens to table stats.. do we have to analyze the table
0
Comment
Question by:d27m11y
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 2000 total points
ID: 39911304
Are you adding an global index to a partitioned table?

I don't believe the specific table stats are affected.  Possibly if you specify "COMPUTE STATISTICS" on the crate index statement


It should be simple enough to test:
create a table.
compute statistics.
look at the last_analyzed column for the table
wait a minute or three.
add you index
look at the last_analyzed column for the table
0
 

Author Comment

by:d27m11y
ID: 39911356
when is analyze table compute statistics rebuild indexes used
0
 
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 39911368
Analyze table is deprecated and really shouldn't be used any more.

The DBMS_STATS package is the new way of doing things.

Anyway, the online documentation will tell you what all is performed with the various options the commands offer.

Again, set up a quick test and see the commands in action.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question