How to Force the Good Plan present in dba_hist_sql_plan for an SQL_ID

Hi Folks
Here i have a question on how to fix the query execution plan for which we are facing the problem. The current execution plan of the SQL ID is bad , but the execution plan in dba_hist_sql_plan or v$sql_plan is showing good one's.
So how to force the plan_hash_value present in dba_hist_sql_plan or v$sql_plan to the current sql. Where in we cannot try using any kind of hints in the SQL so my question here , is there any way to update manually to update the plan_hash_value for the SQL_ID so that it can use the execution plan which we want to force.
Regards,
Phani.

But my question is i have the good plan for the SQL_ID which is now running with the bad plan ( I am able to see the good plan in dba_hist_sql_plan view ) , my challenge here is how to force >the SQL_ID to take good plan PLAN_SQL_HASH_VALUE. Once the query is parsed and in memory I'm not aware of any way of changing the plan :(
A day later a similar situation came up with one of our clients. I'm still not aware of any way to manually change the execution plan of an already parsed SQL but suspect histograms and/or bind peeking may be a way to explain this phenemenon
Edited by: riedelme on Jun 18, 2010 6:13 AM

Similar Messages

  • How to force the Netscape Browser to open the "Open or Save" dialog box?

    Hi, I tried to force the browser to open the "Open or Save" dailog box for downloading a file.
    response.setContentType(context.getMimeType(file.getName()));
    response.setHeader("Content-Disposition", "attachment; filename=\"" + file.getName() + "\"");
    This works fine with IE for all file types( Even though he prompts twice to Open the file directly). but Netscape opens the file directly in the browser with showing any dialog box for text and html files. Anyone knows how to force the netscape in this case or for any file type? Any help will be appreciated.
    Thanks

    any one has the solution for this issue ? I tried the search and I didnt find any answer.
    when your trying to open a pdf file as attachment is seperate window, it works well in IE but in netscape it opens up in the same browser, it doesnt open a seperate window
    res.setContentType( "application/pdf" );
    res.setHeader("Content-Disposition","attachment; filename=\"" + cofcFileName+"\"");

  • How to force a execution plan

    Hello ,
    I am working on oracle 11g R2 on AIX.
    One query was performing good around 20 sec. but suddenly it took more then 15 min.
    We check that the sql executoin plan changes , it showing that order of operation changed like order of using indexes is different.
    Now the new plan is not good.
    we want to force the old plan of sql to use in future.
    I read about sql plan management , it shows a manual method to create baseline and evolve the all plan. In one texample we found that
    first query execution plan was created using with out index and then with index So, second plan was good and accepted.
    But in this case we do not need to change any thing ,query is performing bad may be becasue changes order of operation ..
    One other way to use hint , but for this we need to change sqls , which is not possiable in production now.
    The issue is
    For this we need to run the sql again and oracle may not create plan like old one.So we will not be having old good plan to accept.
    All 2 execution plan are already in cache .
    I am looking for a way using that we can set sql plan hash value ( of good plan) or any other id of that sql plan to force to use that plan only.
    any idea how to do it ..

    Stored Outlines are deprecated.
    OP:
    To fix a specific plan you have two choices:
    1. SQL Plan Baselines - assuming the "good" plan is in AWR still then the steps are along the lines of load old plan from AWR into sql tuning set using DBMS_SQLTUNE.SELECT_WORKLOAD_REPOSITORY and DBMS_SQLTUNE.LOAD_SQLSET then load plans from sqlset into sql plan baseline using DBMS_SPM.LOAD_PLANS_FROM_SQLSET.
    2. Using SQL Profiles to fix the outline hints - so similar to a stored outline but using the sql profile mechanism - using the coe_xfr_sql_profile.sql script, part of an approach in Oracle support doc id 215187.1
    But +1 for Nikolay's recommendation of understanding whether there is a root cause to this problem instability (plan instability being "normal", but flip flopping between "good" and "bad" being a problem). Cardinality feedback is an obvious possible influence, different peeked binds another, stat changes, etc.

  • How to force the "Bluetooth Communicat​ions Port" to be one of COM1 to COM8 ports?

    Dear Lenovo Community, Happy Holidays to you all and wish you a great happy new year. Recently purchased a Bluetooth OBDII device and have difficulty making it to work with its provided software on my T61 (running original XP Home). My short story and question/problem is that I can open "My Bluetooth Places" and pair with the OBDII device as an "OBDII SPP Dev", but my T61 assigns serial port COM19 to it. The OBDII software which came with the device only can let user set to one of the COM1 to COM8 ports and in the properties of Bluetooth pairing, there is no way that I can select which COM port to use. I looked at the Device Manager and I do see these COM port assignments: COM4,5,6,7: Sierra Wireless (the HSDA modem in the laptop which I have never used BTW) COM 9,10,11,12,13,14,15,16,17: Bluetooth Serial Port COM 18, 19: Bluetooth Communications Port and I don't see anything for COM1,2,3, and 8 My question is how to force the computer/OS to assign one of the COM1 to COM8 ports to my device upon pairing? Can I disable the Sierra Wireless model from the COM ports list and hope this will happen? Thanks for your help and inputs beforehand. Regards, AL

    Hi, AL_K
    Have you attempted to change the port number in device manager itself? If you navigate to Device Manager and open the list of Ports, you can right-click on the device you wish to assign a different port number. After right-clicking, click Properties. There should be a tab called Port Settings. In here, you should find a setting to manually assign a port number.
    Good luck, and let me know how it goes,
    Adam
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it.

  • How to force the Netscape browser to use Java Plug-in 1.3.0_02?

    For Analyzer 6.2.1, how to force the Netscape browser to use Java Plug-in 1.3.0_02?

    Change the classid in the object tag here is some info.This applies to JRE's 1.3.1 and greater.How do I know what Class ID to use for a specific JRE?CAFEEFAC-0013-0001-0004-ABCDEFFEDCBACAFEEFAC = This tells the browser to force a specific JRE0013-0001-0004 = JRE version number 1.3.1_04 (1.3.1_08 would be 0013-0001-0008)ABCDEFFEDCBA = Just needs to be there.1.3.0_02 = E19F9331-3110-11d4-991C-005004D3B3DB, it seems like they did not implement the standard until v.1.3.1Any good JRE Version = 8AD9C840-044E-11D1-B3E9-00805F499D93, this class id will just look for any good JRE.http://java.sun.com/j2se/1.4.1/docs/guide/plugin/developer_guide/version.html

  • How to create the folder in presentation server through pop-up(

    Hi Experts,
    Can u give me the solution , how to create the folder in presentation server through pop-up(means dynamically, after executing the program , pop-up has to come to create the folderand path)
    regards
    ram.

    Use the methods -> DIRECTORY_BROWSE & DIRECTORY_CREATE of the class CL_GUI_FRONTEND_SERVICES
    DATA: path TYPE string,
          rc TYPE i,
    dir_name TYPE string value 'HI'.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_BROWSE
        CHANGING
          SELECTED_FOLDER      = path
      IF SY-SUBRC <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    concatenate path '\' dir_name into path.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>DIRECTORY_CREATE
        EXPORTING
          DIRECTORY                = path
        CHANGING
          RC                       = rc
      IF SY-SUBRC <> 0.
    *   MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *              WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Edited by: Kartik Tarla on Sep 23, 2009 5:54 PM

  • How to get the files in presentation server while uploading?

    how to get the files in presentation server while uploading?
    give me the function module name

    Hi,
    PARAMETERS:  P_FILE LIKE RLGRAP-FILENAME DEFAULT C_PRES.  "Prsnt Srvr
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          DEF_PATH         = P_FILE
          MASK             = ',..'
          MODE             = '0 '
          TITLE            = 'Choose File'
        IMPORTING
          FILENAME         = P_FILE
        EXCEPTIONS
          INV_WINSYS       = 1
          NO_BATCH         = 2
          SELECTION_CANCEL = 3
          SELECTION_ERROR  = 4
          OTHERS           = 5.

  • Can I use the same plan that I have for my iphone 4s with my new ipad? or do I have to buy a new data plan for my new ipad?  I would love to use my new ipad away from home but not sure how to use it?

    Can I use the same plan that I have for my iphone 4s with my new ipad? or do I have to buy a new data plan for my new ipad?  I would love to use my new ipad away from home but not sure how to use it?  I am on Telus mobility with my iphone 4s.

    See the answer on the same question you asked a few minutes ago.

  • How to get the floor plan in Webdynpro component ?

    Hi,
    How to get the floor plan in Webdynpro component ?
    Best Regards,
    Tripathi

    Hi,
    Just copy the templates from Webdynpro Component by choosing OIF or GAF or QAF template.
    Regards,
    Bansidahr

  • Can any body explain the process of "how to sell the goods under loan"

    hi,
    sap gurus,
    can any body explain the process of "how to sell the goods under loan"
    and its further process.
    regards,
    balaji.t
    09990019711

    Hi,
    I didnt get your question fully, but
    Please refer the folowing link
    http://help.sap.com/saphelp_banking463/helpdata/en/09/7cba34e465b73ee10000009b38f83b/frameset.htm
    Thanks,
    Raja

  • How to delete the cache from Presentation Services(Web UI)

    Hi,
    How to delete the cache from Presentation Services(Web UI) and from rpd also.

    Hi,
    For Presentation services cache refer : http://gerardnico.com/wiki/dat/obiee/presentation_service_cache
    For RPD Cache :
    Admin tool(rpd) > Manage > Cache > Action > Purge
    or check following links
    http://gerardnico.com/wiki/dat/obiee/event_table
    http://oraclebi.blog.com/automating-cache-purging-without-using-obiee-scheduler/
    cheers
    Aravind

  • How to choose the good Network Interface on a server ?

    Hi all,
    On server you have generally more than one ip address so ...How to choose the good Network Interface on a server for the NoSQL Node ?
    Thank you for all
    C.Pruvost.

    Hi Charles I only consider storage nodes and their replicated nodes.
    Actually I show an error in the logs saying that one of my storage node use a loopback address. On my laptop I have a network interface and a loopback address (disabled)...when starting sn1 I show that the port 5000 is only linked to the ip address 0.0.0.0 so it is not the good ip address..although i use for configuring :
    java -jar ..\lib\kvstore-2.0.23.jar makebootconfig -root root1 -port 5000 -admin 5001 -host ipaddress_of_my_laptop -harange 5010,5020
    and after
    java -jar ..\lib\kvstore-2.0.23.jar start -root root1
    If you have a sample tutorial that explains how simulate on the same laptop an Oracle NoSQL architecture running on 3 disctinct servers please give us this information.
    Thank you for all.
    Christophe.
    PS : error message
    Failures: Task 1 ERROR at 2013-01-15 07:23:19 UTC: DeploySN sn3(pruv
    ost-pc:5200): 1/DeploySN failed.: Register: Cannot mix loopback and non-loopback
    addresses in the same store. The store value is not configured to use loopback
    addresses but storage node pruvost-pc:5200 is a loopback address. (11.2.2.0.23)
    : Register: Cannot mix loopback and non-loopback addresses in the same store. T
    he store value is not configured to use loopback addresses but storage node pruv
    ost-pc:5200 is a loopback address. (11.2.2.0.23) java.lang.IllegalStateException
    : Register: Cannot mix loopback and non-loopback addresses in the same store. T
    he store value is not configured to use loopback addresses but storage node pruv
    ost-pc:5200 is a loopback address.
    at oracle.kv.impl.sna.StorageNodeAgent.register(StorageNodeAgent.java:15
    48)
    at oracle.kv.impl.sna.StorageNodeAgentImpl$2.execute(StorageNodeAgentImp
    l.java:194)
    at oracle.kv.impl.sna.StorageNodeAgentImpl$2.execute(StorageNodeAgentImp
    l.java:188)
    at oracle.kv.impl.fault.ProcessFaultHandler.execute(ProcessFaultHandler.
    java:90)
    at oracle.kv.impl.sna.StorageNodeAgentImpl.register(StorageNodeAgentImpl
    .java:186)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    Edited by: chpruvos on Jan 14, 2013 11:24 PM
    And my ipconfig
    Windows IP Configuration
    Wireless LAN adapter Wireless Network Connection 2:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Ethernet adapter Local Area Connection 3:
    Connection-specific DNS Suffix . :
    IPv4 Address. . . . . . . . . . . : 172.20.10.2
    Subnet Mask . . . . . . . . . . . : 255.255.255.240
    Default Gateway . . . . . . . . . : 172.20.10.1
    Ethernet adapter Local Area Connection* 24:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Wireless LAN adapter Wireless Network Connection:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Ethernet adapter Local Area Connection:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    and
    C:\Users\cpruvost>ping pruvost-pc
    Pinging PRUVOST-PC.fr.oracle.com [172.20.10.2] with 32 bytes of data:
    Reply from 172.20.10.2: bytes=32 time<1ms TTL=128
    Reply from 172.20.10.2: bytes=32 time<1ms TTL=128
    Reply from 172.20.10.2: bytes=32 time<1ms TTL=128
    Reply from 172.20.10.2: bytes=32 time<1ms TTL=128
    Ping statistics for 172.20.10.2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
    Edited by: chpruvos on Jan 14, 2013 11:25 PM

  • How to create an explain plan with rowsource statistics for a complex query that include multiple table joins ?

    1. How to create an explain plan with rowsource statistics for a complex query that include multiple table joins ?
    When multiple tables are involved , and the actual number of rows returned is more than what the explain plan tells. How can I find out what change is needed  in the stat plan  ?
    2. Does rowsource statistics gives some kind of  understanding of Extended stats ?

    You can get Row Source Statistics only *after* the SQL has been executed.  An Explain Plan midway cannot give you row source statistics.
    To get row source statistics either set STATISTICS_LEVEL='ALL'  in the session that executes theSQL OR use the Hint "gather_plan_statistics"  in the SQL being executed.
    Then use dbms_xplan.display_cursor
    Hemant K Chitale

  • How to track the history of supplier sites used for tax reporting (1099)

    Hi,
    Oracle financials doesn't allow two supplier sites setup as tax reportable sites (Unless one is inactive). Suppose if the supplier uses site1 for the year 2009 and site 2 for 2010 and now there is site3 setup as tax reportable. All three sites were setup in 2009 and all three sites are active. Supplier chosen different sites for each year as their tax reportable site.
    How do we know which site oracle used to send 1099 for 2009 & 2010? How to track the history of supplier sites used for tax reporting (1099) in previous years?
    Thanks in advance.
    Regards,
    Ram

    Would the begin_date, end_date and status columns on HZ_PARTY_SITES_USES be any good? Our R12 installations is too new to have accumulated much data yet, but I would look in those columns first.

  • How to disable the validity of a particular Role for 100 users, in a single

    Hi
    How to disable the validity of a particular Role
    which is assigned to 100 users. (disabling the role of change the validity of the role )
    at present am doing manually, by entering into each user and changing the validity of the role
    Thanks.

    > How to disable the validity of a particular Role for 100 users, in a single ...
    ... shot?
    Assign a reference user to the 100+ users and create events in the factory calendar which assigns and removes the role from the reference user only.
    The downside is that it is not scalable for many of the same concepts at the same time, because a dialog user can at one logon time only have one reference user assigned to them.
    Cheers,
    Julius

Maybe you are looking for

  • ITunes 7.3.1 (3) - odd burn issues after update

    I'm using the latest version of iTunes running OS X 10.4.9 When I try to burn a disc, I get the following error... The attempt to burn a disc failed. The device failed to calibrate the laser power level for this media. Before I upgraded, I could burn

  • Why does my illustrator CC crash when I save my files?

    I own/manage a print/design company. We have 4 PC's running the Adobe Suite. We have recently all had issues when saving files in AI. When files begin to save the program freezes for up to 30-45 seconds, if we click anywhere during that time a window

  • URL format for direct call to a subpage

    What is the proper URL format to call a subpage rather than the main page? I know that the format for a page is http://<host:port>/pls/<DAD>/url/page/<pagename>, but how do you call a subpage? Also, if this type of information is documented, where sh

  • Stickies won't launch

    Hello, My Stickies app in Leopard 10.5.8 won't launch after i updated from 10.5.7 or I suspect after an iPhone sync using iTunes. The "You cannot open the app Stickies because it is not supported on this architecture" message pops. I am totally in th

  • Ipad shut down in middle of an app and wont turn back on or charge. what can i do?

    While using my ipad watching a video on youtube, it just shut down and went black. i have tried to charge it and it doesnt even show that it is connected. Ive tried turning it on from different buttons and still nothing. Does anyone have an idea of w