What is more optimal in Oracle 11G? Drop Recreate Indexes or just dbms_stats.gather.
Please advice.
Thanks,
Ram
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think 2 of the suggestions helped me to get a better understanding of what needs to be done.
why rebuilding indexes? If doing this on schedule, maybe consider this first:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:6601312252730
– tbone
Dropping and recreating indexes won’t do that (and might make things worse, see tbone’s link); unless you’re talking about dropping, loading and then recreating. Gathering statistics will only help if the problem is that the existing statistics are stale or inaccurate and the explain plan(s) indicate it’s not working as expected. You need to explain what you’re doing and what problem you’re seeing – Alex Poole