We help IT Professionals succeed at work.
Get Started

What is mean by ANALYZE command in oracle?

3,750 Views
Last Modified: 2012-05-06
Hi,
Wht is the purpose of ANALYZE command. if we ANALYZE the table/index wht happens to the object and how it improves the performance? Because why i am asking is, I have table which is contain fuction based index like UPPER(column_name). When i execute the below query, it is getting full table access.

select * from table_name where upper(column_name) = upper('ABC');

At the same time, when i analyze the table it is getting index based scan in the explain plan output.
ANALYZE TABLE table_name COMPUTE STATISTICS;

One more thing is when i execute DBMS_STATS package also the table is getting full table access. See my execute command below.
EXEC DBMS_STATS.gather_index_stats('schema_name', 'index_name', estimate_percent => 30);

Can anyone share with me the solution of this? Thanks in advance.
Comment
Watch Question
Billing Engineer
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2009
Commented:
This problem has been solved!
Unlock 2 Answers and 2 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE