Home » RDBMS Server » Performance Tuning » index ignored problem
index ignored problem [message #135768] |
Fri, 02 September 2005 08:17  |
mjschwenger
Messages: 137 Registered: July 2005 Location: US
|
Senior Member |
|
|
I have the strangest thing happening in one of my Oracle 10.1.0.4, Aix5.2 servers. Whe the app is running all queries make full table scan although the statistics has been just run and there are plenty of records (over 30,000) in almost each table, and good indexing for all of them. I run the 1046 trace on the application session and I can see the extensive waits for each quesry due to full table scans. I tried to troubleshoot the situation and start tracing each query alone with execution plan in SQLPlus and TOAD. No matter which quesry I run in both, I get different exec plan and all the time using the proper indexing - of course, the time is 100 time less. So, when the app runs it, it doesn't use the index, when I run it from either TOAD/SQLPLUS it does...
What could be the problem and how I'm suppose to troubleshoot this situation?
Thanks a lot for the help. mj
|
|
|
|
|
|
|
Re: index ignored problem [message #135829 is a reply to message #135825] |
Fri, 02 September 2005 14:29  |
mjschwenger
Messages: 137 Registered: July 2005 Location: US
|
Senior Member |
|
|
Both DBs are absolutely the same - hardware, Oracle, application running, indexing statistics run. I made a fail copy form the bad server and run statistics. The number of records...
the same app running on the same machine... Did compare the 2 DBs - same.
still doing the same... On one of the machines I have index usage from client tools and full table scans when the statememtns is issued from the app. On the other all uses indexes.
It should be a changes in the init params...
Comparing them now
Thanks,mj
|
|
|
Goto Forum:
Current Time: Fri May 02 15:41:21 CDT 2025
|