How to change access path for 'where' clause by using HINTS?

I searched a loooot of posts and haven't found a solution for my case. I don't even know whether it is possible or not. Is it possible to change the sequence of Oracle "Predicate Information"?
Here is my SQL and Oracle's execution plan.
  SELECT Max(logId) AS logId FROM online_users_t
  WHERE online_users_date >= to_date('2011-09-19 10:00:00') - 3.2 AND online_users_date <= to_date('2011-09-19 10:00:00') AND online_users_result in (1, -1)
  GROUP BY online_users_user
| Id  | Operation                    | Name               | Rows  | Bytes | Cost (%CPU)| Time     |
|   0 | SELECT STATEMENT             |                    | 24800 |   629K|  1336   (1)| 00:00:17 |
|   1 |  HASH GROUP BY               |                    | 24800 |   629K|  1336   (1)| 00:00:17 |
|*  2 |   TABLE ACCESS BY INDEX ROWID| ONLINE_USERS_T     | 38833 |   985K|  1334   (1)| 00:00:17 |
|*  3 |    INDEX RANGE SCAN          | ONLINE_USERS_T_IDX |   116K|       |   313   (1)| 00:00:04 |
Predicate Information (identified by operation id):
   2 - filter("ONLINE_USERS_RESULT"=(-1) OR "ONLINE_USERS_RESULT"=1)
   3 - access("ONLINE_USERS_DATE">=TO_DATE(' 2011-09-16 05:12:00', 'syyyy-mm-dd
              hh24:mi:ss') AND "ONLINE_USERS_DATE"<=TO_DATE(' 2011-09-19 10:00:00', 'syyyy-mm-dd
              hh24:mi:ss'))I have 2 conditions in my 'where' clause, one is date range and the other is 'online_users_result in (1, -1)'. It seems that Oracle filter the table by using 'online_users_result in (1, -1)' first, then access it through date range.
What I want to do is firstly filtering the table by using date range followed by other things. How can I do it?
Any clue or help would be highly appreciated.
Thanks in advance.

It seems that Oracle filter the table by using 'online_users_result in (1, -1)' first, then access it through date range. No it's not.
What I want to do is firstly filtering the table by using date range followed by other things. How can I do it?That's precisely what it's doing now.
It is using the T_IDX index to quickly find all rows that satisfy the range predicate on the date column.
And then filter those rows to only retrieve the ones that satisfy the other predicate (... in (1,-1)).

Similar Messages

  • How to change printer preferences for HP envy 4500 using Google Chromebook HP pavilion 14

    I want to know how to change printer preferences for HP envy 4500 using Google Chromebook HP pavilion 14?
    This question was solved.
    View Solution.

     Hi chefcorbin,
    Welcome to the HP Support forums.  I understand that you would like to learn how to change the printer preferences using your Chromebook.
    I have included a link to Google support on printing a page with Chrome and it lists the print settings that you can adjust.
    Google Chrome Help - Print a Page
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • How to change the path for a file download? Sometimes, I want to save a file in a specific folder in my hard disc and I don't know how to do it. Thanks.

    There is a default folder for the download of files from the internet ("Descargas" or "Downloads"). But, what can I do if I wish to save the file in another location of the hard disk?
    Thank you.

    Use about:config and filter on browser.download, you'll see them
    '''More information on configuration variables''' available in
    [http://kb.mozillazine.org/About:config_entries about:config (entries)] and for users not familiar with the process there is [http://kb.mozillazine.org/About:config about:config (How to change)]

  • How to change the path for dms repository in navigation iview

    Hi all,
    We integrate DMS in KM. With the documentexplorer iview we can navigate through the folders structure. So far so good.
    But for the end-user it will be easer if they can startright  from point X in the folder structure. Like dmsrm/aaa/bbb/..../X
    It's not possible to change the iview path property to dmsrm/aaa/bbb/..../X, preview shows the message  'Item nof found
    The item you are attempting to access is not available. Check that the name or link is correct. You might also check whether the associated repository is currently accessible'. For all the folders (except the root folder dmsrm) there is no acces link tab, so the ID, explorer URL and webdav URL are unknown. How to find out what the ID is?
    Thanks in advance,
    Vo

    Try going to Options > Global Preferences > Paths tab, you will see the User Settings.
    Nestor
    National Instruments

  • How to change Script path for Reserved.ReportViewerWebControl.axd when working behind reverse proxy?

    Hi,
    My application works behind a reverse proxy which has polices for secure and unsecure areas of the application. Architecture and Infra team is not willing to allow any root level policies in any case
    When report viewer control is rendered on the page, it is adding a reference to the http handler Reserved.ReportViewerWebControl.axd in the script tag and the URL is at the root level. Unfortunately like other AjaxControlToolkit web resources I cannot modify
    the URL to refer to the local script using ScriptManager.
    Do we have any other property / means by which I can get this altered.
    It is so unfortunate that the Microsoft.ReportViewer.WebForms assembly resources like scripts etc are not exposed as webresource at the assembly level and there is no way to modify this.
    Does anyone has any solution to this?
    Appreciate your help
    Thanks in advance
    Badal

    Hi Badal,
    Thank you for your question.
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Thanks,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • How to change the path for Home and Work in SQL Developer

    Hi,
    I am new to Oracle SQL Developer. Everytime when I open a file, it will default to the install directory. It is hurtingmy hand because I have to click back to the folder where I put my sql statements.
    Is there any way to set the Home or Work button to point to the location I like? or add anther button to point to my folder? I just don't want to click 5 to 10 times to open a file.

    SQL Developer (the SQL Developer forum) might be a better place to ask

  • Change the path for attachments after changing a server

    Hello experts,
    I have a requirement which I cannot solve...
    By a customer a server which was used for saving the attachments is no longer active. The customer has now a file server. So in SAP we have changed the path information under Administration > System Initialisation > General Setting in the Path tab from the old server to the file server like this:
    Old path:              
    oldServer\ALLGEMEIN\SAP\DOKUMENT_TEXT\
    New Server:        
    newServer\ALLGEMEIN\SAP\DOKUMENT_TEXT\
    But now I have the problem that all the path information in the UDFs from type LINK and also in all attachment fields like in activities, where the customer has put in a file are still standing on the old status.
    We have allready copied all attachzments from the old server to the new one in the same structure as in the old server).
    Now I have to change in all fields, which are from type LINK (this concerns by the customer only item master date, BP master data and activities) the path information.
    That means I have to paste the string in all the fields 'oldServer' whith 'newServer'.
    Has anybody an idea how I could do this???
    Best regards,
    Vural

    Hi Vural,
    We are facing same kind of issue with our landscape, how did you changed the path for attachments.
    Tcode = IH01
    Worked with user and tried to change the path for few attachments from \\old_server\GROUPS\ to \\new_server\GROUPS\ (storage server) and its worked, but as per user there are lot of files exist in server, they wants to upgrade the path for all files automatically from old_server to new_server.
    Regards,
    Rishi

  • How to change default approval for ResourceAuthorizerApproval ?

    Hi,
    I'am new in OIM and I follow documentation where I found some predefined workflows. I'd like to use them.
    Could you tell me, step by step, how to change default approval for ResourceAuthorizerApproval (only for my new defined resource).
    I'm using OIM 11g and Design Console 11.1.1.3.0.2.0

    Ok, I made new tamplate (copy of existing one), there I changed Template Level Approval Process and set allowed resources. It seems to be ok :)
    If there are other solutions please share with me
    Thanks
    M.

  • How to change the path of sysprep files that were copied to reference computer when i capture the image from reference.

    Dears ,,
    how to change the path that sysprep were copied to reference computer when i capture the image from reference.
    Should i modify some codes in LTIAPPLY.wsf? how to modify it?
    Thanks.

    Sysprep and capture has *Three* steps.
    1. Run sysprep on the local machine (easy).
    2. Copy WinPE down to the local machine so we can reboot into winpe for capture.
    3. Capture the drive in an *offline* state from within WinPE.
    What is most likely happening is that you are having problems with step #2. 100MB is *WAY* too small to copy down WinPE. By default MDT will make this System partition much bigger, 499MB. IF you install Windows 7 from the default media. IT will only create
    a 100MB partition.
    By default MDT 2012 Update 1 and greater *should* recover to a fallback drive with the OS on it, however if you are running older versions that might not happen correctly.
    If you are still having problems, copy your BDD.log file to a public share like OneDrive and copy the link here.
    Keith Garner - keithga.wordpress.com

  • How to change the path of the Transport

    HI all!
    I had the system of portal dev,qas,prd,I want to made the export folder of the dev point to the import folder of the qas.But how to change the path of the transport ?I change the file of the D:\usr\sap\dev\SYS\global\pcd\pcdStartup.properties,But it not useful.I think my type is not correct.Plz tell me the key.thanks very much!!!
    D:\usr\sap\dev\SYS\global\pcd\pcdStartup.properties,I changed:
    Transport Application
    Root directory for exporting transport packages
    #Pcd.TransportApplication.ExportRootDir=
    qas\Import
    Root directory for importing transport packages
    #Pcd.TransportApplication.ImportRootDir=${Pcd.Share}/Import
    Directory for temporary transport files
    #Pcd.TransportApplication.TempDir      =${Pcd.Temp}/transport
    Edited by: joecui on Nov 12, 2008 8:15 AM
    Edited by: joecui on Nov 12, 2008 8:16 AM

    Did you try to remove the "#" character before every line you changed?
    Save the file...
    Reload/Refresh it in the Portal...
    Try if that helps you.
    Cheers,
    Benjamin

  • How to change the path of MPLS

    How to change the path of MPLS core from one PE to the other PE with redundancy link? The IGP is OSPF and running MBGP among PE routers.

    Hi there,
    Load-balancing is applicable in MPLS as follows:
    If multiple equal-cost paths exist for an IPv4 prefix, the Cisco IOS can load-balance labeled packets. If labeled packets are load-balanced, they can have the same outgoing labels, but they can also be different. The outgoing labels are the same if the two links are between a pair of routers and both links belong to the platform label space. If multiple next-hop LSRs exist, the outgoing label for each path is usually different, because the next-hop LSRs assign labels independently.
    If a prefix is reachable via a mix of labeled and unlabeled (IP) paths, Cisco IOS does not consider the unlabeled paths for load-balancing labeled packets. (The load balancing is done only between labeled paths. This means that if an IP (unlabeled) and a labeled path have the same cost, only the labeled path is used to forward the packets.)
    HTH,
    Mohammed Mahmoud.

  • How to change price total for "Change Unit Cost Estimate Screen" for KKE1 Tcode ?

    There is a requirement of bringing the Material Price in KKE1 while entering the Item Catogory M ( M for Material) from the Gross Price in the condition type (P001) that is entered in the Purchase order.Currently systems brings the material value from MAP(Moving average Price) in the Material Master data.
    I have looked into the user exit 1) EXIT_SAPLKKEC_001 2) EXIT_SAPLKKEC_002  available in this T code KKE1.When I put break-point in these user-exit,it is not going in debugging mode while fetching the price value in Price total column  for "Change Unit Cost Estimate" screen in KKE1.
    How will change pricing condition for material in KKE1?
    I want to change price condition for material  as marked in red as shown in the screen-shot.
      Where will write the code such that I will bring Price Total based on material number as shown in the image?

    Hi Ram,
    I think you can do the same in thei manner.
    Go to program SAPMV45A.
    use menu GOTO -
    > Text Elements----
    >Text Symbols
    Here make change of Text-002 Sold-To Party as saleable .
    Regards,
    Pravin

  • How to change access point name

    Need to know how to change access point name for straight talk on iPhone 4

    There are several other threads here about doing this, or you can look up the "sim swap" method, documented here: http://www.jgmedia.biz/how-to-get-data-and-mms-working-on-straight-talk-iphone-4 -and-iphone-4s-on-ios-6-updated-sim-swap-method/. This does require temporary access to a T-Mobile or Simple Mobile SIM/Micro-SIM card.

  • How to change caller id for facetime on Iphone 5?

    How to change caller id for Facetime on Iphone 5? I cannot find anywhere I can make the change in Setting.

    if it's your caller id, go to settings>facetime
    you can be reached for calls at>>> choose where you'd like to be reached at.
    that should change where your calls go to

  • How to change download path when using webutil_file_transfer.DB_TO_CLIENT

    I am trying to change the path when downloading a file using the download_db procedure (webutil_file_transfer.db_to_client).
    Thanks,
    Terry

    Is the procedure DB_TO_CLIENT built in oracle?
    I also want to download video files from Oracle to client and save to d:\video, How can I do?
    Appreciate for your any words.
    If you know, Plz email to:
    [email protected]

Maybe you are looking for

  • Continuous play of music videos

    Is there a way to watch music videos on a continuous loop? Like songs? I think at the moment we have to choose the videos that we want to watch each time instead of them just moving onto the next one? Would be great if that could be changed

  • I just downloaded massage therapy notebook, and it will not open on my notebook? help!

    i have a macbook pro and a iphone. i would like to use massage therapy notebook on my mac and i dont know how to open it or install it on my mac.

  • Flash line chart change line style.

    Hi guys, I am migrating charts in my application from SVG to Flash. For line charts in Flash, is there a way to change line style from solid to dashed or dotted? Thanks in advance.

  • How to use the ExtendedLogListener?

    I follow the instruction below but it did not work. http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/standard_components/index.html?t=Fuego/Msg/ExtendedLogListener/ExtendedLogListener_component.html The serverLogListener works fine, however. h

  • Unable to use sample clock digital filter - PCI6602

    I can't seem to get digital filtering of the sample clock to work on my PCI6602. I'm using DAQmx 7.4, with one of the counters configured for buffered-edge counting. Whenever I try to configure digital filtering on the sample clock (coming in on pfi1