Oracle 11g - force rule-based optimizer for a SQL ID

We have a provider application and cost based works very well for tens of thousands of queries but nothing that does not work.  He joined between two tables and use a select max.   When the internal table contains thousands of lines, is no longer using the index and works for a very long time, impact on performance.  It works fine using the rule-based optimizer.

While the seller will solve this problem, at the same time is possible to force a single specific ID of SQL to use a basic rule optimizer?  This aspect must be on the sides of the database that we cannot change the query itself.

Download the map you want in a non-produits or prod environment.

Use a sql profile to apply this plan to your prod environment.

https://OraStory.WordPress.com/2015/08/11/SQL-plan-management-choices/

Tags: Database

Similar Questions

  • Oracle 11g grid control software agent for SUSE 10.2 64-bit Linux.

    I have a hard time locating the agent software from the grid control, for 11g on Linux SUSE 10.2 64-bit. Does anyone know where it is? I checked the download for linux 64-bit software, nothing seems as the agent of the grid control. I searched metalink and these forum. Please let me know if you know where I can find. Thank you.

    Hello

    It is not the version 11g agent or SGD.
    I use
    Agent version: 10.2.0.4.0
    Version of the WHO: 10.2.0.4.0
    Protocol version: 10.2.0.4.0

    to take charge of our 11g db and I have no problem.

    Kind regards
    Tom
    http://OracleDBA.cz

  • 10.2.0.5 Oracle database link (Linux - x 86) for MS SQL Server 2012 (x 64)

    Please guys, I really need your help on this issue.

    I tried using freetds driver but when I use db link I get this error:

    ORA-28500: connection between ORACLE and a non-Oracle system has sent this message:

    [Generic connectivity using ODBC] [S1000] [9013] error General nvITrans_BeginT - rc = - 1. Please see the log file for more details.

    ORA-02063: preceding 2 lines MIXERI

    To cite that I can connect to the remote sql server through isql tool with no problem at all. I study a lot and I found no solution for this error, so to this end, I will try to find another alternative way.


    Is there another way to manage the communication link between the system of 2 DB db?

    Thank you

    Hello

    S erro coming from the ODBC side then you can try the following-

    1. change the listener.ora LD_LIBRARY_PATH for-

    (ENVS=LD_LIBRARY_PATH=/usr/lib:/usr/local/lib:/db/oracle/10.2.0/lib)

    stop and start the listener.

    2. don't you get the error even if you delete the entry-

    HS_FDS_SQLLEN_INTERPRETATION = 32

    3. get a debugging bridge route-

    -Comment the entry
    HS_FDS_TRACE_FILE_NAME = /db/oracle/10.2.0/hs/admin/MIKSERI.trc

    then the tracks go to the location by default with default names-

    /DB/Oracle/10.2.0/HS/log

    -set the level of the trace-

    HS_FDS_TRACE_LEVEL = DEBUG

    -start a new session of SQLPLUS, run select, close the session.

    -Download the trace from somewhere, it can be displayed by our care.

    It can also be an idea to install and use the 11.2.0.5 last DG4ODBC gateway that is certified with RDBMS 10.2.0.5 and available at My Oracle Support you.

    Patch 13390677: 11.2.0.4.0 PATCH SET FOR ORACLE DATABASE SERVER

    which must be installed in a new and separate ORACLE_HOME.

    Kind regards

    Mike

  • Oracle 11G install on Win 7 with PL/SQL Developer Help Needed

    Today is my first day with Oracle. I tried to install Ora11g since our network drive. I think that the installation went well. I also have installated PL/SQL Developer when I try to log in I got the following error see below.

    ---------------------------
    PL/SQL Developer - (not connected)
    ---------------------------
    Initialization error

    SQL * Net not properly installed



    OracleHomeKey: SOFTWARE\ORACLE

    OracleHomeDir:
    ---------------------------
    Ok

    After I did some research on the Internet I found this solution "go to tools > Preferences > options manually set 'Oracle Home" in the folder "Library OIC" and ORACLE_HOME to file oci.dll is located in ORACLE_HOME/bin/oci.dll.

    C:\app\user\product\11.2.0\Client_1\bin.dll < = I think it's my Oracle_Home
    C:\app\user\product\11.2.0\client_1\bin\oci.dll < = is my OCI library.

    When I apply a thse 2 ways I get the following error.

    Initialization error

    Could not load C:\app\user\product\11.2.0\client_1\bin.dll «»

    OCIDLL to C:\app\user\product\11.2.0\client_1\bin.dll
    LoadLibrary (C:\app\user\product\11.2.0\client_1\bin\.dll) returned 0

    Can someone help me with this? /

    PL indicate which version of Win 7 - you need professional or superior - home versions are not taken in charge/certified, then things may or may not work as expected.

    http://download.Oracle.com/docs/CD/E11882_01/install.112/e16773/reqs.htm#CHDHGGFE

    HTH
    Srini

  • changing mode optimizer for the given statement

    Hi master,

    I use oracle on windows 2003 server.actually R2 10 I want ot use CBO for my database.but when I generate explain plan for a statement he notes gives to it finish that

    PLAN_TABLE_OUTPUT
    -------------------------------------------------------------------------------

    26 - access("FE".") FEPAX "=" FNAUX. " ("' FNNUM")
    filter ("FE". "FEPAX"="FNAUX" "." " FNNUM')

    Note
    -----
    -used rule-based optimizer (consider the use of cbo)

    so, how can I know what optimizer mode is my database uses? I asked him
    SQL > show parameter optimizer_mode. SQL > show parameter optimizer_mode.

    VALUE OF TYPE NAME
    ------------------------------------ ----------- ------------------------------
    the string ALL_ROWS optimizer_mode


    the means used CBO.how are they?

    made oracle itself decid what optimizer mode should it use?

    can I use or mode other than the default, optimizer?

    Thanks and greetings
    VD

    It gives

    Vikrant,
    It may be possible that the query for which you've seen the plan, RBO suspicion is provided. That's why the query is recovering RBO and is visible in the foreground of the explain command.
    In order to change the mode for a query, you can very well use the hint in the query,
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14211/hintsref.htm#PFGRF503
    For example, to use ALL_ROWS, you can just put it in the query after selection.
    To change the session, you must change the setting, OPTIMIZER_MODE for the level of the session with alter session command.
    HTH
    Aman...

  • How can I create a list of choices for the search bit in Oracle 11g ADF fields?

    Hi Experts,

    Please inform how to add some selection list or drop downs on the pane search Oracle 11g ADF.

    I have a requirement to create a list of choices for the search store field. # Please notify.

    SS_SearchCriteriaPage1.png

    Thank you

    David Selvaraj

    You can create a view based on a static list object and attach it to your attribute as lov-driven model.

    Dario

  • Study for the DBA Oracle 9i Oracle 11g Vs

    Hi evreybody, I would like to ask you about some...
    I start studying for Oracle DBA Jr in to run them, we see Oracle 9i and in my house, I would like to install a few Db Oracle por get practice and don't really know if installing Oracle 9i or you recommend me to install Oracle 11 g, I don't really know the difrence so I ask you to give me some advice on. Ahhh another question. I think that its really better equipped to use Oracle Unix platafor, like Solaris or something like Red Hat. I will be very thanksfull you can advise me about it too.
    Ahh, which by the way is maybe better to get some VmWare Oracle por practice without the real software?

    Marco,

    Well, I started with version 8 and I can say that the old version was much better for learning than current ones. But today, 10 / 11g (and same 9i) have tons of goodies added to them. I guess that, much has been said by colleagues on 9i memebers so I won't again. But I'd take the first of 10g OCP examz, then do the upgrade to 11g with a review. This is based on what the first, he'll give you certifications on both versions. Now, this isn't really a revolutionary right, but still, it's very nice to have certifications on several tracks. Second and most relevant oneis that 11g is, if not completely, for the most part uses 10g as its base to the ground. It would be a better understanding approach, the mechanisms put in place in 10g and than to see their improvements and additions added to 11g. In the past, I can say that the new curricula of functionality are always a bit better as the track completes on the end of learning too, you will get a lot of info. But I understand that time, cost, these factors all come between so think of these as well as any other, decide on your track. One solution is to start from 10 and than go to 11g.

    Just my 2 cents.

    HTH
    Aman...

  • Where can I download Oracle 11g R2 for Windows 7 64 bit Client? Thanks in advance.

    Where can I download Oracle 11g R2 for Windows 7 64 bit Client? Thanks in advance.

    http://eDelivery.Oracle.com

  • a search tool similar to google search suggestions for forms of oracle 11g

    Nice day
    I was wondering if there is a tool/plugin that would be something like google for a field search suggestions show on oracle 11g. He looking for a column in the database. The thing is, I have a column where new fields should be added each year, where they do not exist. It's a little complicated and tedious to search if the field exists manually, a tool that would give suggestions when writing a keyword would be really useful.
    If this is not possible, I would really appreciate all the advice I could get on how to make it easier for the user to look for already existing data
    Thank you

    Published by: 974565 on January 21, 2013 01:21

    Unfortunately, I can't tell much more about this bean that I pulled out a long time ago, and my memory is not as good as it was ;-)
    I don't even know if this bean is able to insert a word just typed by the user...

    But, as all the material on the site of Java Bean is free, you are also free to find a Java developer who could improve the existing code.

    François

  • Oracle 11g for windows7 home Basic 64-bit version

    Where can I find server of oracle 11g for windows7 home Basic 64-bit version...

    Kapardhi wrote:
    Where can I find server of oracle 11g for windows7 home Basic 64-bit version...

    Certified Oracle 11 GR 2 on Windows 7 x 64 - editions, professional, business and full - http://docs.oracle.com/cd/E11882_01/install.112/e24283/toc.htm#BGBEEBAD

    You can download 11 GR 2 on http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html

    Thank you
    Hussein

  • Reg: Oracle 11g XE for Webcenter 11.1.1.6

    Dear Experts,

    I intend to install Oracle Webcenter 11.1.1.6 on my laptop that runs on a 4Gigs RAM. The pre-reqs guides and install say Oracle 11g 11.2.0.1 DB version, which would be quite heavy for my machine.
    As I need this installer only for learning purposes and practice, can you please suggest me if the version of Oracle 11 g XE (one light) would be enough?

    Thank you
    Srikanth.

    for your learning needs, simply go ahead with your system and Oracle XE 11g db configuration.

    You must consider that, before the UCR utility market, you must change the number of running processes and process the cursor to 500 and restart the Service of DB Oracle.

    change the system of setting process is 500 scope = spfile;.

    ALTER system set process_cursor = 500;

    and restart the db.

    Good luck for your learning! Enjoy learning Webcenter!

    Kind regards
    Hoque

  • Developer of form for oracle 11g (win)

    Hi all, I have worked on oracle 9i and used with the developer 6i. now, I am more civilized :) to oracle 11g (win32_11gR1_database_1013). It is installed properly. now, I need to do some development projects, as I did before. Please guide me what development tool will be ideal for this version of oracle installed and where to can download it. Thanks in advance.

    kashif_ashfaq wrote:
    This link does not work. There is change in the appearance of the oracle site. Please advise according to the new interface.

    Yes, it's a very confusing page. Here is the translation of this page:

    (1) If you want the version 10 gr 2 Developer of forms, find the line that reads "Oracle Developer Suite 10 g (10.1.2.0.2) (including forms and Designer)" and then click on the link "Windows". On the resulting page, accept the agreement and download the two files zip to developers. (I urge you also to read the installation instructions at http://download.oracle.com/docs/cd/B25016_08//doc/dl/core.htm.)

    (2) If you want the latest version, click the link that is provided in red and underlined. Scroll down to the part that shows the forms download and download the 4 discs for WIndows. ALSO, make sure that you have the following installed (most of which you get from the same page)

    * WebLogic Server
    * Deposit creation utility
    * Identity management
    * Wizard for the SSO metadata repository
    * Identity management 10 g 3
    * Oracle database

    (3) you can also get it yourself. Exploration is half the fun in Oracle (and a quite necessary skill). One way possible: follow the bouncing ball

    http://OTN.Oracle.com
    -> Products (main menu on the left): development tools (link)
    -> Traditional tools (Portal Central region): forms (link)
    -> Downloads (extra area on the right side): forms (link)

    When there, read* and follow the instructions carefully.

    In addition, you can other research tools. JDeveloper/ADF and Application Express come to mind.

  • Oracle 11g r1 license work for oracle 11g r2?

    Hello

    We have license of oracle 11g r1 then do we need to purchase a separate license to upgrade to 11g r2?

    Hello

    No, no need to buy a separate license to upgrade to 11g r2 just improved it.

    Amatu Allah.

  • How to use the JKS-based Keystore in Oracle 11g SOA

    I'm doing FTPS on remote server of third party (with UNIX operating system) using SOA 11 g adapter FTP. I installed and configured vsftpd and generated vsftpd.pem file on the remote server certificate.
    Follow the steps mentioned in http://download.oracle.com/docs/cd/E17904_01/integration.1111/e10231/adptr_file.htm#CIABDGCF

    In one step "Adjusting upward the FTP Oracle adapter" walletLocation is necessary, then I went through the steps mentioned in http://download.oracle.com/docs/cd/E17904_01/core.1111/e10105/wallets.htm#CHDGIJDC

    (Tried using both 1) JKS Keystore Management 2) portfolio management

    Impossible to find two of them in the Oracle 11g SOA em but the steps do not match.

    Can someone tell me how to use JKS Keystore or portfolio management?

    Thank you very much!!

    Concerning
    Yogesh

    Hi yogesh,

    I think that the portfolio can be created from the FMW console only if the HTTP server is installed and available. If there is no Oracle HTTP server, configure a specified in the.

    [http://download.oracle.com/docs/cd/E12839_01/doc.1111/e14260/toc.htm |] Oracle HTTP Server installation]

    Agress,
    Neeraj Sehgal

  • Implementation services for oracle 11g manual

    If I had to define oracle services to start manually is there a specific order in which oracle services must be turned on as oracleServiceORCL first, then oracleOradb11g_home2_TNSLISTENER? I set the services to start manually and when I SPEAR oracleServiceORCL remains at about ~ 47 MB of memory, TNS listener won't turn on and I can't use OEM.

    When the services are set to automatic, I can use OEM however my pc startup time is like 3 minutes :).


    Windows 7 Ultimate x 64, 4 GB
    Oracle 11g R2, enterprise edition

    is there a specific order in which oracle services should be lit as oracleServiceORCL first, then oracleOradb11g_home2_TNSLISTENER?

    YES, you should start LISTENER first and then the database Service.

    If this answers your question, please mark this answer as Correct and mark this question as answered.

    Thank you very much.

Maybe you are looking for