Not using the specified OPTIMIZER_MODE

Hi,
We set the OPTIMIZER_MODE on our 10g db as FIRST_ROWS_100. However there are a couple of queries from application are using the optimizer mode ALL_ROWS instead. If we run those queries alone, directly in TOAD or SQLPLUS the explain plan shows they are using FIRST_ROWS_100. And that is how we want them to use.
Why the optimizer chooses to use ALL_ROWS?
How to force it to use FIRST_ROWS_100? Note the "troubled" queries are executed dynamically from an application.
Thanks for all suggestions.

That would be the expected result, if i understand your last post. If the optimizer knows that only twenty rows are going to be returned from the query then it might use that information to modify drive the execution plan and choose to ignore the hint.
For example, imagine that a query might return about 10,000 rows. A FIRST_ROWS hint might prompt the use of an index instead of a full table scan in order to find the first rows quickly, even though a higher cost is incurred that way. However, if you put a restriction on the query that says "return only the first 20 of the rows" then that part of the query might drive a change to use indexes rather than a FTS, in which case your "first 100 rows" hint becomes redundant and is discarded.
This is 100% speculation on my part, but you might test the theory (since you already might have data + queries that are sensitive to this situation) by examining the optimizer's plans for executing these queries with and without different combinations of FIRST_ROWS hints and ROWNUM predicates. See if the presence of the ROWNUM predicate and the FIRST_ROWS hint modify the plan in the same way when used independently of each other.

Similar Messages

  • New MySites does not use the specified permissions

    I've changed the MySite Settings in Central Admin so that only my AD group called "DOMAIN\All employees" is added to the Read Permission Level setting. I've removed "All" and "All Windows".
    Now users create MySites, and at first the permissions seems right. When I check top level permission on new mysite, only the user and the group "DOMAIN\All employees" is present in the list.
    The problem is that the folder "Shared with everyone" and the lists "Social" and "Microfeed" does not get the correct permissions. When I check the permissions (since they have unique permissions) I can see that it is the claim
    "All" that has access, not my "DOMAIN\All employees" group.
    This means that the documents added to the "Shared with everyone" is available for all users, not only my employees. The same is for content in the social lists, the elements are visible in search results for all users.
    Does anyone know how I can change the default permissions of the folder and the two lists that does not inherit permissions from the root web of the mysite?
    Regards ElinK
    ElinK

    Hi
    ElinK,
    There is no out of the box way to accomplish this with SharePoint
    As you had said, one way is that we can use the code to change the MySite list permission for the existed MySite.
    Another way is that we can create MySite programmatically, break inheritance and add unique permission to List.
    There are some articles for your reference.
    http://social.technet.microsoft.com/wiki/contents/articles/18788.sharepoint-2013-programmatically-create-mysites-for-all-users-of-a-group.aspx
    http://blog.sharepointclick.com/2013/04/programatically-breaking-inheritance.html
    http://www.thespgeek.com/2011/08/assigning-sharepoint-list-item-level.html
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • "Could not authenticate the specified user" error in HFM 9.2.1

    Hi,
    I'm installing Hyperion 9.2.1, and I have installed and configured shared service and hfm successfully, but when I failed to create hfm application.
    The reproduce step is:
    1. login http://hostname/hfm/Home/LaunchPage.asp, with admin/password
    2. click a cluster, and click "create applcation", it failed with error:
    Could not authenticate the specified user. %0
    Error Reference Number: {184D6C1E-94C5-4722-93B0-15D88871485B}
    And error in the log file is:
    ERROR Authentication not found user appqa-vm05\admin 。
    com.hyperion.hfm.security.CASSecurityException: not found user appqa-vm05\admin。
    at com.hyperion.hfm.security.Authentication.AuthenticateUserInternal(Unknown Source)
    at com.hyperion.hfm.security.Authentication.AuthenticateUserAndGetInfo(Unknown Source)
    Have you ever met this issue?
    Thanks,
    Xinying

    Hi J,
    Thanks for your response.
    <<1. The user with you are logging in HFM is used for configuring HFM
    My OS is windows 2003 server, I installed and ran configurator of shared service and hfm with the OS user "administrator".
    And I can login shared service with "administrator", but I met issue when creating hfm application. Also can login hfm" with admin/password" , but has same issue for creating application. Seems user is not checked when loging hfm.
    <<2. This user is able to log on to Shared Services and is provisioned for creating HFM application
    I can login shared service with user "admin/password".
    But when clicking "provision" for user "admin", I can only find "shared service" role, no any hfm role.
    user "administrator"
    <<3. This user is used in Server and web configuration of HFM
    In server and web configuration, I set the DCOM domain user as: hostname\administrator
    In my setup, two users are used,
    1st one is OS user: administrator
    2nd user is: admin ( seems it is the default user after installation and configuration of Shared service?)
    Thanks,
    Xinying

  • The file access permissions do not allow the specified action

    I had an issue while transferring file from source to target..i am able successfully transfer the file to target and later i should move the file to another folder using IO operations.
    it failed at invoke.following are the error
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    -<part name="summary">
    <summary>Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'SynchRead' failed due to: The IO operation failed. The IO operation failed. The "OPER[NOOP][S->R,T->R]" IO operation for "xxxxxxxxxxxxxxxxxx/  xxxxxx.txt" failed. Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    </summary> 
    </part>
    -<part name="detail">
    <detail>550 xxxxxxxxxxxxxxxxxxxxxxxxx: The file access permissions do not allow the specified action.
    </detail> 
    </part>
    -<part name="code">
    <code>550
    </code> 

    >
    Prasanna Shanmugasundaram wrote:
    > Hi,
    > I have the File to JDBC scenario. The file is extracted in AL11 folder of the Sending (BW) system.
    > The folder is FTP enabled and the Unix admin says he has given full authorization to both the folder and ftp user.
    > But in the File CC I get the following error "Could not process due to error: com.sap.aii.adapter.file.ftp.FTPEx: 550 TSMSACAIX5350.tar.gz: The file access permissions do not allow the specified action."
    >
    > Can some one advice what is wrong. Im pretty much sure it has to be a problem with the UNIX permission. But the unix admin person says he has given a full permission.
    > I need to know what permissions needs to be given??  Is there different permissions for application level and OS level??
    >
    > Pls advice
    >
    > Thanks
    > Prasanna
    In CC you set ON the delete mode, after processing file? Maybe, the file have read only permission....

  • Error --can not load the specified XML or schema source

    HI All
    I am facing a problem while creating a xml maps connection. i am using ms excel 2007 and xcelcious 2008 engage. when i am trying to create a xml maps connection and give my url then open then give my user id and password its says  can not load the specified XML or schema source..  
    my url is working fine when i open it through internet explorer. 
    anything i  miss somewhere?
    please help.
    Regards
    Amiya

    Hi Guys
    This is solved i removed <?xml version="1.0" ?>  from top and buttom
    then it worked fine.
    Regards
    Amiya

  • Message Name: Could not find the specified responsibility error

    Hi
    I checked the project settings and i have the correct responsibility and dbc file. I am not using a tutorial.
    oracle.apps.fnd.framework.OAException: Application: ICX, Message Name: Could not find the specified responsibility.
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:158)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at runregion.jspService(runregion.jsp:96)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
         at java.lang.Thread.run(Thread.java:534)

    user525275,
    All the possible reasons and solutions for this issue are discussed in many old threads. Better do some search.
    --Shiv                                                                                                                                                                                                                                                                                   

  • Excel 2010 not using the default print settings

    Currently got an issue with Excel 2010 not using the default print settings for a couple of users on our network,
    basically when pressing cntrl P or selecting the print option from the file menu the printer settings are different to the print settings selected in the devices and printers menu, we have checked the print drivers etc but this has still not resolved the
    issue, all other office programs are fine and also other users are reporting this issue more and more with different printers,
    tried restarting print spooler service and re-installing office but this has come to no avail,
    any ideas would be much appreciated!

    Hi,
    This issue occurs because the Page Setup settings that you specify in your file override the settings that you specify in the printer driver properties.
    To work around this issue, do not specify the paper size, page orientation, or page margins in the printer driver properties. Instead, specify these settings in your workbook.
    To specify these settings, follow these steps:
    1.Start Excel, and then open the workbook you want to change.
    2.In Microsoft Office Excel 2010, click the sheet that you want to print, and then click the Page Layout tab. In the Page Setup group, click Page Setup to open the Page Setup dialog box.
    3.Click the Page tab.
    4.Under Paper size, click the paper size that you want.
    5. Click Options button and in Printing Shortcuts tab, in the Paper source area, perform one of the following steps:  ◦If the printer can automatically select the correct paper tray to use, click Default tray in the First page list, and then click Default
    tray in the Other pages list.
    Default tray is the default setting in both of these lists.
    ◦If the printer cannot automatically select the correct paper tray to use, you may have to select the paper tray that contains the paper size that you selected in step 4.
    To do this, click the appropriate paper tray in the First page list and in the Other pages list.
    6.If you want to change the page orientation or its page margins, click the Finishing tab.
    7.Select the options that you want.
    8.Click OK.
    9.Repeat steps 2 to 8 for each sheet of your workbook for which you want to specify settings.
    Jaynet Zhang
    TechNet Community Support

  • How to I get a link with a "Mail to" address to open up a Compose window in my Yahoo mail, rather than in the Mail progrom on my Mac. I do not use the Mac Mail program.

    How to I get a link with a "Mail to" address to open up a Compose window in my Yahoo mail, rather than in the Mail progrom on my Mac. I do not use the Mac Mail program.
    == This happened ==
    Not sure how often
    == always

    Thank you, "the-edmeister" -- You render a great service, one that lifts my spirits.
    Your answer also taught me to be a little more persistent, as I had started looking at Preferences, and just didn't notice the icons (including Applications) at the top of that window that would have led me to my answer.
    Dave

  • The application does not use the  screen and run in the background

    Hi
    I have downloaded a package of j2me Midlet
    from [link] here [link]
    and try to reuse the code
    but I get the following error when running the code:-
    The application does not use the screen and run in the background
    I think the error into one of these two classes
    package main;
    import javax.microedition.midlet.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.media.Manager;
    import javax.microedition.media.MediaException;
    import javax.microedition.media.Player;
    import java.io.IOException;
    import java.io.InputStream;
    public class MainMidlet extends MIDlet implements CommandListener {
        private SSGameCanvas gameCanvas ;
        private Command exitCommand ;
        private Player player = null;
        public void startApp() {
      try {
           //   create new game thread
              gameCanvas = new SSGameCanvas();
              gameCanvas.start(); // start game thread
              exitCommand = new Command("Exit",Command.EXIT,1);
              gameCanvas.addCommand(exitCommand);
              gameCanvas.setCommandListener(this);
                Display.getDisplay(this).setCurrent(gameCanvas);
       catch (java.io.IOException e)
                e.printStackTrace();
            try {
                // start sounds
                InputStream in = getClass().getResourceAsStream("/resource/startfly.wav");
                player = Manager.createPlayer(in,"audio/x-wav");
                player.setLoopCount(1);
                player.start();
            catch (MediaException ex)
                ex.printStackTrace();
             catch (IOException ex)
                ex.printStackTrace();
        public void pauseApp() {
        public void destroyApp(boolean unconditional) {
            if (player != null) {
                player.close();
            System.gc();
      public void commandAction(Command command, Displayable displayable) {
           if (command == exitCommand)
                 destroyApp(true);
                 notifyDestroyed();
    package main;
    import java.io.IOException;
    import javax.microedition.lcdui.*;
    import javax.microedition.lcdui.game.*;
    public class SSGameCanvas extends GameCanvas implements Runnable {
        protected GameManager gameManager;
        protected boolean running;
        private int tick=0;
        private static int WIDTH;
        private static int HEIGHT;
        private int mDelay = 20;
        Form mainForm;
        Display display;
        //private int MaxTime;
        public SSGameCanvas() throws IOException{
            super(true);
            gameManager = new GameManager(5,5,getHeight()-10,getWidth()-10,this);
        public void start() {
                this.running = true;
                Thread t = new Thread(this);
                t.start();
        public void stop() {
            running = false;
        public void render(Graphics g) {
            WIDTH = getWidth();
            HEIGHT = getHeight();
            // Clear the Canvas.
            g.setColor(0, 0, 50);
            g.fillRect(0,0,WIDTH-1,HEIGHT-1);
            // draw border
            g.setColor(200,0,0);
            g.drawRect(0,0,WIDTH-1,HEIGHT-1);
            // draw game canvas
            gameManager.paint(g);
        public void run() {
            while (running) {
                // draw graphics
                render(getGraphics());
                // advance to next graphics
                advance(tick++);
                // display
                flushGraphics();
                try { Thread.sleep(mDelay); }
                catch (InterruptedException ie) {}
        public void advance(int ticks) {
            // advance to next game canvas
            gameManager.advance(ticks);
            this.paint(getGraphics());
    }Edited by: VANPERSIE on Jul 10, 2012 12:26 PM

    Hi Andi,
    Thanks for your reply.
    Yes, I have waited for a while and the result doesn't change.
    The Porblem here is the application is seen started in visual administrator.Only restart brings up the page back.
    Can you please suggest anything.
    Thanks and regards
    Nagaraj

  • In my numeric key pad I can not use the (.) dot because it has a (,) and it is not working in calculations.  What I can do?

    In my numeric key pad I can not use the decimal dot (.) because it has a (,) and this not work with decimal calculations.  What I can do?  Help ………

    IT NOT WORK IN MEXICO.  THANKS A LOT.  BEST REGARDS.  MANUEL LOPEZ
    El 6/2/2015, a las 16:50, Apple Support Communities Updates <[email protected]> escribió:
    You received a reply
    SGIII has replied to your question. You can view the full discussion in Apple Support Communities.
    In my numeric key pad I can not use the (.) dot because it has a (,) and it is not working in calculations.  What I can do?
    Correct Answer Helpful Answer
    Use the buttons above to tell SGIII and the rest of the community if this reply solved your question or helped you get closer to finding a solution.
    To reply to SGIII, go to the discussion in Apple Support Communities.
    You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile.
    TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM. Cupertino, CA 95014.
    All Rights Reserved | Privacy Policy | Terms of Use | Apple Support

  • How to print pdf file not using the the adobe reader ?

    hello,
    i used the adobe sdk to open a pdf file in read and modify it serveral times and each time save it to another directory,and now i need to write a program to print the pdf file in this directory.when print the file,i want to continue my work also,so who i tell me how to solve this problem?
    thanks.

    The SDK is only a collection of documentation and headers that show you how to interact with and automate Adobe Acrobat and to some extent Adobe Reader. You need a copy of Acrobat or Reader installed on the system in order to use any of the SDK functions. You cannot "print not using the Adobe Reader", unless you have Adobe Acrobat installed on the system instead of Reader.

  • I have installed firefox 8.0.1. When I start firefox up it says I have the latest version, but simultaneously there is a warning saying that I do not use the latest version?.

    When I click the firefox icon it tells me that I have firefox 8.0.1.Under is written Firefox-is-up-to-date (shadow line) It also mentions that I use the release-update channel.
    When i start firefox there is a warning that I do not use the latest version

    This - http://www.google.com/firefox - is the old Firefox Start Page used by the Firefox 3.6 and earlier versions of Firefox, I don't think it is being maintained by Google.
    Starting with the Firefox 4 version, Firefox is using a "local" Start Page with the address of '''about:home'''. It looks similar to the old Start Page, but it isn't exactly the same.

  • I have a jetpack, and when I try to "connect" to my ipad or phone, it keeps telling me I am not using the correct password.  I have tried everything.  I even changed the password, nothing is working.  Both are 4G, my ipad is an Air and my phone is a Iphon

    I have a jetpack, and when I try to "connect" to my ipad or phone, it keeps telling me I am not using the correct password.  I have tried everything.  I even changed the password, nothing is working.  Both are 4G, my ipad is an Air and my phone is a Iphone 5.  I can get connected to other wifi on these features but not with my jetpack.  Please help, I need to use this feature soon.  Thank you so much

    Chances are you mis-typed a character in the Wifi password and the devices saved that information.  Now whenever you try to connect the device refers to the wrong password and the Jetpack does not accept your connection.  Tell your devices to forget the wireless connection and start over.
    Once you enter the proper WiFi credentials the Jetpack will allow you to connect.

  • HT201209 iTunes will not use the redeemed gift cards on my account, I have a $30 credit and when I try to purchase a song it goes right to my credit card on file. Why does this keep happening

    iTunes will not use the redeemed gift cards on my account, I have a $30 credit and when I try to purchase a song it goes right to my credit card on file. Why does this keep happening???

    Any time you've changed anything in your billing, it does this once to very things.

  • Is there any way to have an ipad wifi 3G but not use the 3G (therefore avoiding the extra data plan costs) and just use the wifi?

    i am looking to buy an ipad 2 or the new ipad (preferably 32gb) but dont want to buy the 3G version as i have unlimited data usage in my mobile phone plan, i know the wifi only ipad is generally cheaper, but i was wondering if there was a way to buy the ipad with 3G capabilities but not use the 3G and avoid the cost of paying the extra unnecessary data plan? (I know this is a really weird question but i have the opportunity to buy a 3G ipad and was curious of the possibility? any help would be greatly appreciated. cheers

    Yes to your questions.
    You can download a complete iPad User Guide here: http://manuals.info.apple.com/en/ipad_user_guide.pdf
    If you want an iPad 2 32GB it will have to be a refurb model. The only new iPas 2 is 16GB.
    What are all the differences between the iPad 3rd Gen and the iPad 2? Is the iPad 2 worth the cost savings?
    http://everymac.com/systems/apple/ipad/ipad-faq/differences-between-ipad-3rd-gen -2012-ipad-2-2011.html
    What are all the differences between the iPad 3rd Gen models? Which should I buy?
    http://everymac.com/systems/apple/ipad/ipad-faq/differences-between-ipad-3rd-gen -early-2012-models.html
    Should I Buy a New iPad? Or an iPad 2?
    http://www.maclife.com/article/blogs/should_i_buy_new_ipad_or_ipad_2
    iPad 3 vs iPad 2 vs iPad 1- Feature comparisons with iOS 5
    http://ipadhelp.com/ipad-help/ipad-3-vs-ipad-2/
    iPad Q&A
    http://www.everymac.com/systems/apple/ipad/ipad-faq/differences-between-ipad-3rd -gen-early-2012-models.html
    A Few Questions (and Answers) About the New iPad
    http://pogue.blogs.nytimes.com/2012/03/15/a-few-questions-and-answers-about-the-   new-ipad/?ref=personaltechemail&nl=technology&emc=edit_ct_20120315
    New iPad: A Polishing of the Old
    http://www.nytimes.com/2012/03/15/technology/personaltech/the-new-ipad-is-much-t he-same-only-better.html?nl=technology&emc=edit_ct_20120315
    iPad 1, 2 and New Specifications
    http://www.everymac.com/systems/apple/ipad/index-ipad-specs.html
    16GB vs 32GB vs 64GB: Which new iPad storage capacity should you get?
    http://www.imore.com/2012/03/08/16gb-32gb-64gb-ipad-capacity/
    How much content will fit on my iPod or iPhone?
    http://support.apple.com/kb/HT1867
    If you think you may get an iPad 2:
    Refurbished iPad Prices
    http://store.apple.com/us/browse/home/specialdeals/ipad
    New 16GB iPad 2 Prices
    http://store.apple.com/us/browse/home/shop_ipad/family/ipad/select_ipad2
    When iOS 6 comes out in the fall, the iPad 3 will get Siri, but the iPad 2 won't.
     Cheers, Tom

Maybe you are looking for

  • Creating a pdf from a word doc and the image and footer will not show

    I am trying to create a pdf from a word doc that has an image and footer. Neither will show in the pdf. Also getting this message "Adobe Acrobat Updater has not been able to check for updates recently. Check online to see if solutions are available f

  • WRT350N: External Drive Set-Up

    I've been trying like heck to get a 500G Mybook hooked up to the router properly.  I plug the Mybook into the usb port of the router.  I create a share and the whole thing. From my laptop (XP) I map the drive to a letter and can read and write to the

  • Lightroom 5.6 , CC 2014, image not open in CC

    Hi, I have updated with the cloud LR and CC but now when i try to open an image from LR into CC 2014, the image isn't loaded. It is working if i open the image from LR into CC 2014 as a smart object. Could anyone tell me what to do ? Thanks in advanc

  • Cannot startX on Oracle database template

    Hello, I've downloaded Oracle Database 11.1.0.6 for x86_64 (64 bit) with Oracle Linux 5.2 and successfully imported it to Oracle VM But I cannot start X windows using startx, it showed that some drivers are not installed Please advice me on this case

  • Getting logged in user id in EJB

    Hi All,      I have a session bean which will be exposed as webservice and will be consumed in webdynpro. Both by EJB and webdynpro are running on the same WAS . Is it possible to retrive the logged in portal user id in the EJB insted of webdynpro .