Interpreting Predicate  and Filter information from the explain plan

Can somebody help in understanding how does the predicate and filter operation effects the execution plan.or how can I conclude the predicate or filter operation chosen by optimizer is not optimized.

User445775,
The paraphrase that I provided in my previous post was from page 74 of "Cost-Based Oracle Fundamentals".
How to word the explanation...
Assume that you have a database table which contains all of the phone numbers and addresses for people in a state. A query is executed to find user445775 in the city named "Redmond". Assume that the query looks like this:
SELECT
  PHONE
FROM
  PHONE_NUMBERS
WHERE
  CITY = 'Redmond'
  AND FULL_NAME = 'user445775';Assume that there are no indexes on the table. The DBMS_XPLAN would show two filter predicates applied during a full tablescan - this probably indicates an inefficient access path, especially if there are a very small percentage of people matching the WHERE clause restrictions on the table.
Now, assume that an index is created on the CITY column. The DBMS_XPLAN would show an access predicate applied to the index on the CITY column, and a filter predicate on the table access by index for the FULL_NAME. We eliminated a large number of possible rows by applying the access predicate to jump directly to the rows with the city of interest, and then filtered out those names which were not 'user445775'. This is not terribly efficient, especially if there are a large number of people in 'Redmond' that need to be filtered out.
Now, assume that we drop the index on the CITY column and create an index on the FULL_NAME column. The DBMS_XPLAN would show an access predicate applied to the index on the FULL_NAME column, and a filter predicate on the table access by index for the CITY column. This could be a fairly efficient plan if there are only a couple rows in the table with FULL_NAME of 'user445775', as few rows will be discarded after the index access to find those with CITY = 'Redmond'.
Now, assume that we drop the index on the FULL_NAME column and create a composite index on CITY,FULL_NAME. The DBMS_XPLAN would show an access predicate applied to the index on the CITY and FULL_NAME columns and there would not be a filter predicate on the table access by index - in this case, we will not discard any rows once retrieved by the index access.
Page 211 of "Troubleshooting Oracle Performance" also shows a clear explanation of access and filter predicates.
Think of access predicates (on indexes at least) as throwing out rows before they are retrieved from disk (or memory), and filter predicates as throwing out rows after they are retrieved from disk (or memory).
Charles Hooper
IT Manager/Oracle DBA
K&M Machine-Fabricating, Inc.

Similar Messages

  • Rude and misleading information from the "vendor center".

    I am amazed that Verizon Wireless thinks so little of me, as to let THIS contractor answer questions on their behalf.  I have had a very poor success rate when calling Verizon on the weekends.  Now when I call, first and foremost, my question is, "Are you a Verizon Employee or a contractor/vendor"?  If they say, "contractor", I say, thank you... I will call back.
    I have been told equipment is compatable with my plan... it wasn't. 
    I have been hung up on for asking if I was speaking to a Verizon employee.
    I have been lied to about whether or not they were a Verizon employee. 
    I just spoke to an agent who said Verizon is closed on the weekends and the Vendor Center answers all calls on the weekend.  I told him, that can't be, I just spoke to a Representative who identified herself as a Verizon Wireless employee and not a vendor or a contractor.  He asked for her name and when I told him, he said, "she works here at the vendor center". 
    So, now, I am at a loss... I can no longer trust that I am talking to an actual Verizon Wireless Employee (which to me is "night and day" different). 
    I do not, normally, post my thoughts online but today I was so fustrated that I thought, I need to do this.  And hopefully, if enough of us "need to do this", things can get back to normal...

    who ever said that vzw is closed and that vendors take the calls on weekends does not know what they are talking about. verizon AND vendor call centers take calls 7 days a week. that being said, vendor and direct call centers receive the same training, and have access to the same information. i worked in a vendor call center for vzw for 3 years, and i have been told just as much incorrect information by a direct verizon employee that has not used his/her resources to give a correct answer, as i have a vendor center. there is no difference.
    I can honestly say there is NO difference between getting a direct vs vendor center. as for hanging up, we do not hang up on customers, we wouldn't if we wanted to, the call is recorded and we would just get ourselves in trouble(direct or vendor, same thing).
    I have seen direct centers sell a person a phone saying it will do something it can't, or that a feature wont change, but it does. i have seen vendors do the same thing.
    what you are saying here, would be the same as being in the hospital and having two nurses work with you. one works for the hospital, and the other works for an agency, but has been serving that same hospital for 5 years. and when you find out, you refuse to work with the agency nurse. she knows just as much as the hospital employee does, follows the same rules, and went to the same schools...

  • TO_CHAR function and Node Cost in the explain plan

    I have a join as below in the sql -
    TO_CHAR(A_COL) = B_COL
    A_COL = Integer and B_COL is Varchar
    So when I ran the sql with TO_CHAR the node cost was huge. But when I run the sql wihtout TO_CHAR which is A_COL = B_COL, the node_cost dropped a lot.
    On testing both got the same results, do you know how Oracle handles this internally when I do not use the TO_CHAR?
    THe SQL without the TO_CHAR runs faster as well. Please let me know.

    Q) Why are you comparing an integer (number) column to a varchar column?
    Without the TO_CHAR Oracle will utilise any idexes on that column if possible and will then be forced to do an implicit conversion of one of the columns to the other datatype in order to do the comparison.
    With a TO_CHAR, oracle will not use a standard index and will have to full table scan the base table. To work around this you can create a function based index on the column
    e.g.
    create index idx_char_a_col on mytable (to_char(a_col));

  • How to get the user and groups information from http header

    Hi All,
    In my current scneario, we are using Siteminder for SSO setup.. And in this process, after authentication and authorization, they are going to append the user information and group information of the user into a HTTP header and it will be sent back to our presentation services.. We have to extract the user information and group information from the http header.
    My HTTP header will look like as follows..
    SM_USER XYZ
    SM_USERDN CN=Firstname\, Lastname\, xyz, OU=GPO-Low Level Security,OU=Domain Users,OU=BU FDT,
    SM_USERGROUPS CN=GG-CA-SiteminderAdmins, OU=Global,OU=Domain Groups, DC=com^CN=GG-ServiceDeskAdmin-TCCORPCEFS
    And also if anyone explain me the overall working of SSO in detail like how presentation services will make a connection to BI server( I guess using Impersonator User), and also how our BI server will read the URL from presentation services and the over all working flow in our OBIEE..
    Thanks a lot....

    Please use the search! this topic has come up lots of times already.

  • How to proceed further once the explain plan and trace files are generated?

    Hi Friends,
    I need to improve the performance of on of the views that i am working on.
    As suggested in the thread - http://forums.oracle.com/forums/thread.jspa?threadID=863295&tstart=0 , i gave generated the explain plan and the trace file.
    From the explain plan, we can see the expensive operations for the query.
    Can any one please tell, how to proceed further from here on i.e. how to make this expensive operations less expensive?
    For ex: FULL TABLE SCAN might be an expensive operation when the table has indexes.In such cases, how can we avoid such operations to make query faster?
    Regards,
    Sreekanth Munagala.

    Hi Veena,
    An earlier post by you regarding P45 is as below
    Starter report P45(3) / P46 efiling for UK
    from my understanding though i have not worked on GB Payroll you have said that you deleted IT 65 details of leaver,however there must be clusters generated in system from where the earlier data needs to be deleted and may be that is why you are facing the issue.
    In Indian payroll when we execute text file for efiling of tax after challan mapping all the data compiles and sits in PCL cluster and therefore we are unable to generate form 16 with proper output,here we delete the clusters and rerun again the mappings and then check form 16.
    Hope this might help you,Experts have suggested you earlier also,they may correct me for this.
    Salil

  • How to know date and time information from Trace File defaultTrace.X.trc?

    Hi, all.
      i'm using EP 6.0 SP9 patch 1.
      As you know, default trace is written in the <SID>\JC00\j2ee\cluster\server0\log\defaultTrace.X.trc.
      By using the default trace formatter, it shows like the following sample messages.
    #1.5#0011110E7B2000590000000100000A100003EC71562E6EBC#1104396451585#com.sap.jms.server.ServerClientAdapter##com.sap.jms.server.ServerClientAdapter#Guest#18####716257115a3f11d9b73b0011110e7b20#SAPEngine_Application_Thread[impl:3]_23##0#0#Error#1#/Applications/JMS#Plain###JMS internal error at ServerClientAdapter! JMS Service is not started!#
      My questions are
      1. how do we retrieve the date and time information from the above message? It seems that this message has date and time info because LogViewer shows the date and time based on the above message.
      2. how do we change the above date format to easier one
    like "YYYY:MM:DD:hh:mm:ss"? i know that it can be configured from the Visual Admin --> Services --> Log Configurator but i don't know the exact place for the trace file.
      Thanks.

    Hi Sejoon,
    I use the standalone Logviewer to read the log files. Works great.
    "If you have an SAP Web Application Server Java 6.20 or below you may also get a standalone_logviewer.zip file at the SAP Service Marketplace at service.sap.com/download &#8594; SAP NetWeaver &#8594; Release ‘04. In this case JDK version 1.3 or higher must be installed on the system. The java version must be same on the server and the client.
    In the SAP Web AS Java 6.30 installation a folder named logviewer_standalone can be found under: <path Of J2EE installation>/<SysID>/JC<nr>/j2ee/admin/logviewer_standalone. Verify that the batch file logviewer.bat is installed in the directory logviewer-standalone.
    (source -> http://help.sap.com/saphelp_nw04/helpdata/en/e4/540c404a435509e10000000a1550b0/frameset.htm)
    Best wishes,
    Noel

  • Updated to firefox 4.0. since then my computer is very slow accessing the internet, websites and getting information from within a website.

    Over a week ago I updated my computer to Firefox 4.0. Since then my computer is very slow accessing the internet, websites and getting information from within a website. Also, a tool bar has shown up for YAHOO which I did not request. The old detailed tool bar for Firefox has disappeared. All that now shows for Firefox is the area to enter website urls and an area to enter topic for a Google Search.
    Many times I have to exit Firefox and re-enter it later to access the internet.
    Please advice what I need to do to get back to the speed I had with the older version of Firefox.
    Thank You,
    Dennis

    Over a week ago I updated my computer to Firefox 4.0. Since then my computer is very slow accessing the internet, websites and getting information from within a website. Also, a tool bar has shown up for YAHOO which I did not request. The old detailed tool bar for Firefox has disappeared. All that now shows for Firefox is the area to enter website urls and an area to enter topic for a Google Search.
    Many times I have to exit Firefox and re-enter it later to access the internet.
    Please advice what I need to do to get back to the speed I had with the older version of Firefox.
    Thank You,
    Dennis

  • I created an new apple id and want to change my billing information from the old id to the new id. How do i do that, as i have been trying it like always and it keeps saying that i have to contact apple support? I have an iphone 5S.

    I created an new apple id and want to change my billing information from the old id to the new id. How do i do that, as i have been trying it like always and it keeps saying that i have to contact apple support? I have an iphone 5S.

    Good day BenithaK,
    Once you have changed your Apple ID, you need to set it up for use in the various systems such as iTunes, the App Store, etc so it can be used as intended. This article shows how to do that -
    Apple ID: What to do after you change your Apple ID - Apple Support
    To change your iTunes billing information for either Apple ID account, follow the directions in this article -
    iTunes 12 for Mac: Manage your iTunes Store account
    Thanks for using Apple Support Communities.
    Safe computing,
    Brett L 

  • I want to be format my hard disk, but want to take a backup copy of information from the Firefox and passwords and book marks so retrieved after formatThank you

    I want to be format my hard disk, but want to take a backup copy of information from the Firefox and passwords and book marks so retrieved after format
    Thank you

    For backing up bookmarks, see [[Backing up and restoring bookmarks]]
    If you want to back up passwords, you need to use an extension such as Password Exporter. This is located at https://addons.mozilla.org/en-US/firefox/addon/2848/ .

  • I would like to cut and paste information from a word file onto a pdf file, as well as draw lines onto the pdf file.  How can I accomplish that task?  Is there software I can purchase?

    I would like to cut and paste information from a word file onto a pdf file, as well as draw lines onto the pdf file.  How can I accomplish that task?  Is there software I can purchase?

    Hi jgallu7382,
    The latter is easily accomplished using the Drawing Markup tools, which are available in both the free Adobe Reader, and in Acrobat. Copying/pasting text into the PDF is something that you could do using the editing tools that are available only in Acrobat. Note, however, that Acrobat isn't intended to be a text-editing application, so editing there won't be as robust as in an application designed specifically for that purpose. (It's also worth mentioning that you won't be able to alter a PDF if it has document permissions applied that would prevent you from doing so.)
    I hope that answers your questions.
    Best,
    Sara

  • Could anyone tell me if it is possible to import the information from the Palm Pilot agenda and address book to some programs of the Iphone and Iphone?

    Could anyone tell me if it is possible to import the information from the Palm Pilot agenda and address book to some programs of the Iphone and Iphone?

    Look to your right under "More Like This" for related discussions. ----------------->

  • I used to be able to copy or drag and drop links from the address window. Now with the update, only the address is copied or dragged not the link. (Says something about not giving site information). I want to be able to drag and drop or copy links.

    Question
    I used to be able to copy or drag and drop links from the address window. Now with the update, only the address is copied or dragged not the link. (Says something about not giving site information). I want to be able to drag and drop or copy links.

    To be more precise, you can setup a JComponent or JPanel on top of your JavaFX nodes that has a TransferHandler that can convert the (AWT/Swing) images dragged to the app to JavaFX image and then insert it into the underlying node.
    As for the file chooser itselft: ListView and the JavaFX composer can allow you to create one quite easily. TreeView can aslso be used to a lesser extend (still a big buggy). For both of these, there are small bugs in the Cell API that may (or may not) prevent from displaying a proper thumbnail in the cells.
    You can also use a regular JFileChooser if you do not mind the dialog box having a different LnF from the rest of your application.

  • I have applied the icloud on my sisters id accidently. How can I no w remove this information and set up my own Icloud on another computer with out loosing either of our information from the phone

    I have applied the icloud on my sisters id accidently. How can I no w remove this information and set up my own Icloud on another computer with out loosing either of our information from the phone.

    Please read before going through with this procedure.
    If you really want your contact back and you did not do another iCloud backap since you deleted some of your contacts, you can do a hard reboot on both devices with iClouded contacts by holding down the home and lock buttons on each of them for 10 seconds ignoring the slide to turn off thing. Make sure you have iCloud contact services off before doing so. You can then go through the whole set up process until you get up to the backup part. You then press to restore from an iCloud backup (make sure you choose the right backup for the right phone). If you didn't make an iCloud backup before the contact incident, you will have to use your two-month-old iTunes backups. Each phone should have their contacts the way they were from your last backup. You then go into Settings>iCloud>and turn off contacts. You then can choose if you want to keep your current contacts or not. Turn this off on both phones just incase you add another iCloud device to the mix later on. Now your contact lists are no longer linked (Caution: side effect may include lack of edit button). You may now add and delete contacts as you please without it happening on your other phone.
    Thank you for choosing Apple.

  • If you decide to move up to an iPad with greater storage, is there a way to transfer all of your apps and information from the old to the new.

    If you decide to move up to an iPad with greater storage, is there any way to transfer all of your apps and information from the old to the new.

    Transferring from old to new
    http://support.apple.com/kb/HT2109

  • Why can the explain plan be different from 2 exact set of structures

    hi,
    i have from a view some base tables let's say A , B, C & D
    this query is running very slow . so from the same database , i created tables A1 , B1, C1,& D1 from the above tables.
    i created some new indexes on A1 to D1 tables and the results returned to me is fast.
    i did an exlain plan
    so i drop the indexes on the original A to D table and created the new indexes as per A1 to D1 and analyzed them. and i also did an explain plan
    but the query is still running slow and also the explain plan is different to the one from A1 to D1 (the one that running fast)
    pls help me to understand how/why can this happen ?
    tks & rdgs

    hi,
    precisely i could have been providing insufficient information but i am too inexperienced to be able to give you the required information and i am also not very sure where i could get the info so that you all can advise me further.
    but this is from the user_tables , the only difference i see is that
    under LOGGING table A to E is 'YES'
    TABLE_NAME     TABLESPACE_NAME     PCT_FREE     LOGGING     BACKED_UP     NUM_ROWS     BLOCKS     CACHE     TABLE_LOCK     PARTITIONED
    A1          OWNER1          10          NO          N     37332          883         N     ENABLED     NO
    B1          OWNER1          10          NO          N     43458          861         N     ENABLED     NO
    C1          OWNER1          10          NO          N     823828          7826         N     ENABLED     NO
    D1          OWNER1          10          NO          N     881176          14646         N     ENABLED     NO
    E1          OWNER1          10          NO          N     18868          223         N     ENABLED     NO
    A          OWNER1          10          YES          N     37040          880         N     ENABLED     NO
    B          OWNER1          10          YES          N     43386          880         N     ENABLED     NO
    C          OWNER1          10          YES          N     823820          7684         N     ENABLED     NO
    D          OWNER1          50          YES          N     880948          26624         N     ENABLED     NO
    E          OWNER1          10          YES          N     18690          244         N     ENABLED     NOtks & rdgs

Maybe you are looking for

  • Sims 2?

    I went into CompUSA the other day and the guy basically talked me out of buying the Sims 2 because he said it wouldn't work well with my laptop (something about the video card and the RAM?). I was wondering if anyone has had a problem running the gam

  • Delivery quantity changed while delivery was being picked .

    Hi Friends . I have  a big problem, because the delivery quantity changes while the delivery was being picked. This is the positively the 3rd time that we have seen this, possibly the 4th, recently. Delivery was created this morning for 800pc. Batch

  • Why aren't my albums viewable from the finder/pictures/iphoto library ?

    When I want to import a photo to a website and I choose the picture file on my hard drive then the iphoto library none of the albums that I have created in iphoto are visible. The only organization is chronological and I have no idea where to find my

  • Third party sales processing issue

    Hi, I have a batche managed materail which i am processing for the first time with Third party sales. I have created deklivery for the material . but when i am creating the Billing docuemnt , system is asking for Goods issue. As there is no stock in

  • Duplication of business scenarios / process

    Dear Friends,     I am using Sol Man 4.0 for SAP ECC 5.0 implementation. The client has identified 67 different business scenarios (Like Cotton Milling , Fibre Processing & Fibre Dyeing). So all these 67 different scenarios need to be manually keyed