"Tables are not using indexes"-Please help

We have a new database , version
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Productio
NLSRTL Version 10.2.0.1.0 - Production
We have created Indexes for the tables and analysed the table. Problem is , non of the tables are using indexes. Explain paln for the sql queries are showing full table scan.
Kindly let me know any parameter I have to change or is there any setttings needed on database level?
Thanks in advance.
Regards,
Chotu

What is your optimizer mode?
Another question why you want to use indexes? Use of indexes depends,
Here is a simple example
test@>ed
Wrote file afiedt.buf
  1  explain plan for
  2  select c.cname from mytable c, mytable1 m
  3* where c.cname=m.cname
test@>/
Explained.
test@>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
PLAN_TABLE_OUTPUT
Plan hash value: 2460944079
| Id  | Operation         | Name         | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT  |              |     8 |    64 |     1   (0)| 00:00:01 |
|   1 |  NESTED LOOPS     |              |     8 |    64 |     1   (0)| 00:00:01 |
|   2 |   INDEX FULL SCAN | C_MYTAB_IDX  |     8 |    32 |     1   (0)| 00:00:01 |
|*  3 |   INDEX RANGE SCAN| C_MYTAB1_IDX |     1 |     4 |     0   (0)| 00:00:01 |
Predicate Information (identified by operation id):
   3 - access("C"."CNAME"="M"."CNAME")
15 rows selected.
test@>explain plan for
  2  select * from mytable;
Explained.
test@>SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());
PLAN_TABLE_OUTPUT
Plan hash value: 1229213413
| Id  | Operation         | Name    | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT  |         |     8 |    32 |     3   (0)| 00:00:01 |
|   1 |  TABLE ACCESS FULL| MYTABLE |     8 |    32 |     3   (0)| 00:00:01 |
8 rows selected.As you see MYTABLE has an index but it not always uses that index it depends on the need.
sql queries are showing full table scan this is a not a curse. So unless you are having some problem. You should not change queries only because to avoid full table scans, there is no rule that indexes should always be used in every case.
Adith

Similar Messages

  • I have a Excel file which has lots of PDFs embed as a link.  When i converting to PDF the embed links are not working. Please help to slove this issue.

    I have a Excel file which has lots of PDFs embed as a link.  When i converting to PDF the embed links are not working. Please help to slove this issue.e

    I am also looking alternative way using inDesign to create the embed link as like as excel. is there any possible? Thanks for you reply

  • How can i open my imac with mountain lion in 32 bit. With the Mountain Lion, some important softwares are not functioning. Please help !

    How can i open my iMac with mountain lion in 32 bit. With the Mountain Lion, some important softwares are not functioning. Please help !

    Thx for yr reply. maybe i don't express myself very well. i know ML is 64 bit system. and it does not open up my VPN connection (the VPN connection i am talking here is Cisco and it is only in 32 bits) . i was wondering is there a way my macbook air 11 inch first generation can turn back into its original operation system, so that i can use the VPN connection. THX

  • The spell check for arabic language in pages v 5.2 are Not working ! please Help !

    The spell check for arabic language in pages v 5.2 in mavericks are Not working ! please Help !

    MANKWT wrote:
    No i Did Not !
    Perhaps you can find an Arabic dictionary for OpenOffice.  That may also work with OS X.
    http://m10lmac.blogspot.com/2011/06/extra-spell-checking-dictionaries-for.html

  • I got my Iphone 3gs unlocked, but Navigation and Compass are not working. Please help if anybody had faced this problem and got it resolved.

    I got my Iphone 3gs unlocked, but Navigation and Compass are not working. Please help if anybody had faced this problem and got it resolved.

    Only the carrier that the iPhone was locked to can unlock. There you go, hacking void any support from this forum.

  • My iMessages are not working! Please help?!

    My iMessages are not working? And I am receiving text messages over 48 hours late! There are some messages which I know have been sent and still have not received! I have called Vodafone and they have told me iMessages have nothing to do with them and that they have had several calls to do with this!
    I just want to be able to use my phone!
    Please help!

    OOk now try this if you want. First off turn off iMessage in your settings, messages. Follow by turning off FaceTime in settings, FaceTime.  Now once you have iMessage and FaceTime OFF. In settings got to general , reset, and reset network settings. This will reset your wifi also if you have it enabled so if you did you will have to input your password again. Then follow up by turning on iMessage and turning on FaceTime. Good luck. This seemed to work for some users.

  • Update databse from internal table statement not using index

    Hi Guys,
    We are updating a databse table from a file. The file has a couple of fields which have data different from what the database has (non-primary fields :). We upload the file data into an internal table and then update the database table from internal table. At a time, internal table is supposed to have 10,000 records. I did SQL trace and found that the update statement is not making use of the databse index.
    Should not the update statement here be using the table index (for primary key)?
    Regards,
    Munish

    ... as often there are recommendations in this forum which makes me wonder, how people overestimate their knowledge!!!
    Updates and Deletes do of course use indexes, as can be seen in the SQL Trace (use explain).
    Inserts don't use indexes, because in many databases inserts are just done somewhere, But also with the INSERT, the primary key is the constraint for the uniqueness condition, duplicate keys are not allowed.
    Coming to the original question, what is you actually coding for the update?
    What is the table, which fields are in the internal table and what are the indexes?
    Siegfried

  • MacBook speakers and headphones are not working! Please help.

    MacBook OS X 10.6.8
    2009 model
    I was watching a movie and my MacBook randomly shutdown by itself. I turned it back on and had no more problems, so I restarted the movie. The audio was not working in my headphones. So I tried the internal speakers and there was still no sound. I did a quick google search which led me to trying various options and finally called Apple Support on the phone.
    I've tried resetting my PRAM but it only showed an alternating screen between grey and black. Nothing happened. I also reset SMC but that didn't work either. I have checked everything in system preferences, Audio MIDI, etc. and it all appears to be correct.
    While on the phone we found that when I plug headphones or an external speaker in, it does not show up on the "output" menu under System Preferences > Sound.
    I do NOT have the money to go to a computer store and the nearest Apple Store is 2 hours away. I desperately need help because most of the work I do involves having to be able to listen to sound. Please help if you can. I'm not ignorant when it comes to computers but I'm no genius. If you have any ideas, please be specific. Your help is very appreciated.
    PS. When a speaker is plugged in at first, I hear a little crackling from it. The same happens to what sounds like internal speakers if I start a video.

    Hi,
    Please use the following instructions to check and fix:
       http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01912228&cc=ad&dlc=en&lc=en&jumpid=reg_r1002_us...
    Good luck.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • My ipod touch 4g camera and sleep button are not working? PLEASE HELP

    So i hadnt used my ipod for about a week and when i used it again it wouldnt turn on. I plugged it in to a wall charger and after a couple minutes the apple logo came up. It turned on but then it didnt say it was charging, the sleep/wake button wasnt working, and the camera wasnt working. it eventually started charging but if you press the sleep button nothing happens and when you open the camera, the shutter stays closed. It was working completely well the last time i had used it. PLEASE HELP What should i do??

    First try a Reset  ( No Data will be Lost )
    Press and hold the Sleep/Wake button and the Home button at the same time for at least Ten seconds... (But can take Longer)... until the Apple logo appears. Release the Buttons
    If no joy... Try a Restore...
    1: Connect the device to Your computer and open iTunes.
    2: If the device appears in iTunes, select and click Restore on the Summary pane.
    Restoring  >  http://support.apple.com/kb/HT1414
    Make sure you have the Current Version of iTunes Installed on your computer
    iTunes free download from www.itunes.com/download
    3: If Unable to Restore, try using the Steps in this article to force the device into Recovery Mode.
    Note on Recovery Mode.
    You may need to try this More than Once... Be sure to Follow ALL the Steps...
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most Recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • HT4972 the apps weve downloaded are not working.  please help,  extremely frustrated with our ipod 4

    the apps we have downloaded are not working,  please help,  extremely frustrated with our ipod 4

    See my previous reply for for the apps closing.
    For the wifi problem:
    Does the iOS device connect to other networks?
    Does the iOS device see the network?
    Any error messages?
    Do other devices now connect?
    Did the iOS device connect OK before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on your router
    .- Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network       
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

  • My Laptop speakers are not plugged in, please help.

    I randomly stoped getting sound from my laptop at all.  It tells me in the screen where you can set your defult speakers that my speakers and headphones are not plugged in, so i used windows 7's find and fix audio playback problems, it did its check and also told me that my speakers are not plugged in.  Is it possable they got unpluged somehow, and if so how do i plug them back in, they are enternal speakers i dont have access to there plugs.
    Would greatly appreceat any and all help, thank you

    It worked right after I pushed power and home button. But the sound is gone again. When I open music there is no slider for volume. The mute switch is not on, so I'm not sure what is wrong. Would u have anymore suggestions.
    Thank you

  • TS1381 Keys "Q to O"(q,w,e,r,t,y,u,i,o) are not working? Please help!

    Hi,
    Hoping someone can help me.
    As the title says... Keys Q to O are not working. I have removed the letter casing from a couple to check for dirt etc but no evidence and the buttons are also working fine.
    Any ideas or help would be very much appreciated!
    Cheers.

    Just taken another look at your posting history and found you have indeed tried a post of your own.   From what I can see, your problem should be covered by point 9 from Pedro's reply which was quite thorough.    If the letters are highlighted it would mean the keyboard is not the problem.
    But if not, it would appear the keyboard may be suspect.   A small spillage when the machine was not running and then allowed to dry is a thought; a faulty circuit inside is another.   Note how the failing letters are all in sequence and not occurring haphazardly.
    Have you tried it on another Mac or tried someone else's keyboard on your Mac

  • PavillionG​7-2315nr windows 7(64 bit) USB serial control or usb ports are not working. Please help!

    Hi I downgraded the laptop from windows 8 to windows 7 64 bit. Two of my USB ports are not working and cant find the right drivers for it. Can you please direct me, where I can download and update the drivers? Thanks in advance.
    Shawe

    Hi:
    Download and instal both of these drivers and reboot.
    http://h20565.www2.hp.com/hpsc/swd/public/detail?s​p4ts.oid=5229463&swItemId=ob_125616_1&swEnvOid=405​...
    http://h20565.www2.hp.com/hpsc/swd/public/detail?s​p4ts.oid=5229463&swItemId=ob_123787_1&swEnvOid=405​...

  • Several websites are not working. Please Help.

    Over the last couple of months, several regularly used websites (ebay, myspace, itunes main page) have stopped loading and give me an unable to find server page. When I log out of my normal user id and log in as a different user id, every website works fine in safari, but I obviously don't have any of my regularly used files. Has anyone else had this problem? How can I fix it? It has happened gradually over a period of time, where all of a sudden a website I regularly access will not load. Any help is appreciated.

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    Another possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox

  • I updated my mac os x mountain lion to v10.8.5 and my internal speakers and even connected earphones are not working. Please help

    i updated my OS on macbook pro 13inch from mountain lion v10.8.4 to mountain lion v10.8.5 and when i played songs on itunes there was no sound from the speakers, when i plugged in my earphones there was still no sound. i restarted my mac a few times but still it did not help. I need to get my speakers started soon. Please help

    Have you tried a PRAM reset?
    http://support.apple.com/kb/ht1379
    Ciao.

Maybe you are looking for

  • Run time error while running a webdynpro - urgent

    Hi Guys I am getting the following error while running the webdynpro. My Default view is a INPUT_VIEW. please see below runtime error Regards, Rahul =========================================================== The following error text was processed in

  • Iphoto issue: images not showing up

    When importing photos to my iPhoto 9.6 to my iMac OS X Yosemite 10.10.1, and even some preexisting photos, from my iPhone 4Sthe pictures do not show up.  Instead a black box appears but the image cannot be viewed.  Why is this?  Someone told me it ha

  • Can we create a local database in SQl developer 3.1

    Hi i am trying to create a local database that i can run in my machine. Which username and password should i use.Do i need it , where to get it. Thanks

  • After first time installation, system did not restart, just hanged.

    Hello I am new to ur world of mac. I tried to install os x 10.4 on an intel pc. All went excellent. But at the end when it said to restart, it just hanged there and did not restart. I used the reset button, but it didn't boot error message was "B0 er

  • EJB Refs ( coded name and JNDI name )

    Hi I am just starting to develop EJBs . I can't get to work the EJB refs as expected . In a session bean I have a lookup for an Entity bean . Both beans are in separate JAR files , but in the same ear . The lookup from session bean to entity bean onl