Get the SQL execution plan that is currently running in 9i

Hello

Apologies for the magnitude of this issue, but I was wondering if someone could help me to the more accurate/efficient way to get a piece of running Oracle 9i SQL execution plan.

in 10g and 11g of course dbms_xplan.display_cursor (sql_id) can be used.

How can this be achieved in 9i, currently I am just get the SQL_TEXT and then executing a plan to explain ("EXPLAIN PLAN for.") - I think that this is not neccesserally the same plan to explain that will be used for the sql code that runs if

Any help would be appreciated.

Thank you

The plan exists after analysis difficult.
Statistics of actual execution will require a completed.
That is why sql followed in real time is so great in 11g.
In 9i, difficult.

Tags: Database

Similar Questions

  • Need help to get the actual execution plan

    I need to get the actual execution plan of a query and its actual cost.
    If I understand correctly explaining the plan gives only the estimated according to my plan. Can someone help me please?

    I'm doing this:

    SQL> select OBJECT_NAME,DATA_OBJECT_ID,STATUS from dba_objects where owner='SANTU';
    
    OBJECT_NAME
                                                     DATA_OBJECT_ID STATUS
    --------------------------------------------------------------------------------
    ------------------------------------------------ -------------- -------
    TST_REDEF
                                                              73444 VALID
    REDEF_PK
                                                              73447 VALID
    
    SQL> select sql_id,sql_text from v$sqlarea where sql_text like '%DATA_OBJECT_ID,STATUS from dba_objects%';
    
    SQL_ID
    -------------
    SQL_TEXT
    --------------------------------------------------------------------------------
    gbvnfhs59t98f
    select sql_id,sql_text from v$sqlarea where sql_text like '%DATA_OBJECT_ID,STATUS from dba_objects%'
    
    bxdyf6ph2g3ay
    select OBJECT_NAME,DATA_OBJECT_ID,STATUS from dba_objects where owner='SANTU'
    
    SQL> select * from table(dbms_xplan.display_cursor('bxdyf6ph2g3ay'));
    
    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------
    SQL_ID  bxdyf6ph2g3ay, child number 0
    -------------------------------------
    select OBJECT_NAME,DATA_OBJECT_ID,STATUS from dba_objects where
    owner='SANTU'
    
    Plan hash value: 2160718650
    
    ------------------------------------------------------------------------------------------------
    | Id  | Operation                        | Name        | Rows  | Bytes | Cost (%CPU)| Time     |
    ------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                 |             |       |       |    47 (100)|          |
    |   1 |  VIEW                            | DBA_OBJECTS |  1638 |   161K|    47 (3)| 00:00:01 |
    |   2 |   UNION-ALL                      |             |       |       |    |          |
    |*  3 |    FILTER                        |             |       |       |    |          |
    |*  4 |     HASH JOIN                    |             |  1830 |   209K|    46 (3)| 00:00:01 |
    |   5 |      INDEX FULL SCAN             | I_USER2     |    88 |  1936 |     1 (0)| 00:00:01 |
    |   6 |      NESTED LOOPS                |             |  1830 |   169K|    45 (3)| 00:00:01 |
    |   7 |       TABLE ACCESS BY INDEX ROWID| USER$       |     1 |    18 |     1 (0)| 00:00:01 |
    |*  8 |        INDEX UNIQUE SCAN         | I_USER1     |     1 |       |     0 (0)|          |
    |*  9 |       TABLE ACCESS FULL          | OBJ$        |  1830 |   137K|    44 (3)| 00:00:01 |
    |* 10 |     TABLE ACCESS BY INDEX ROWID  | IND$        |     1 |     8 |     2 (0)| 00:00:01 |
    |* 11 |      INDEX UNIQUE SCAN           | I_IND1      |     1 |       |     1 (0)| 00:00:01 |
    |  12 |     NESTED LOOPS                 |             |     1 |    29 |     2 (0)| 00:00:01 |
    |* 13 |      INDEX FULL SCAN             | I_USER2     |     1 |    20 |     1 (0)| 00:00:01 |
    |* 14 |      INDEX RANGE SCAN            | I_OBJ4      |     1 |     9 |     1 (0)| 00:00:01 |
    |  15 |    NESTED LOOPS                  |             |     1 |    97 |     1 (0)| 00:00:01 |
    |  16 |     TABLE ACCESS BY INDEX ROWID  | USER$       |     1 |    18 |     1 (0)| 00:00:01 |
    |* 17 |      INDEX UNIQUE SCAN           | I_USER1     |     1 |       |     0 (0)|          |
    |* 18 |     INDEX RANGE SCAN             | I_LINK1     |     1 |    79 |     0 (0)|          |
    ------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
       3 - filter(((("O"."TYPE#"<>1 AND "O"."TYPE#"<>10) OR ("O"."TYPE#"=1 AND =1))
    AND
                  (("O"."TYPE#"<>4 AND "O"."TYPE#"<>5 AND "O"."TYPE#"<>7 AND "O"."TYPE#"<>8 AND
                  "O"."TYPE#"<>9 AND "O"."TYPE#"<>10 AND "O"."TYPE#"<>11 AND "O"."TYPE#"<>12 AND
                  "O"."TYPE#"<>13 AND "O"."TYPE#"<>14 AND "O"."TYPE#"<>22 AND "O"."TYPE#"<>87 AND
                  "O"."TYPE#"<>88) OR BITAND("U"."SPARE1",16)=0 OR (INTERNAL_FUNCTION("O"."TYPE#") AND
                  ((SYS_CONTEXT('userenv','current_edition_name')='ORA$BASE' AND "U"."TYPE#"<>2) OR
                  ("U"."TYPE#"=2 AND "U"."SPARE2"=TO_NUMBER(SYS_CONTEXT('userenv','current_edition_id')))
                  OR  IS NOT NULL)))))
       4 - access("O"."OWNER#"="U"."USER#")
       8 - access("U"."NAME"='SANTU')
       9 - filter(("O"."NAME"<>'_NEXT_OBJECT' AND "O"."NAME"<>'_default_auditing_opt
    ions_'
                  AND "O"."LINKNAME" IS NULL AND BITAND("O"."FLAGS",128)=0 AND "O"."
    SPARE3"="U"."USER#"))
      10 - filter(("I"."TYPE#"=1 OR "I"."TYPE#"=2 OR "I"."TYPE#"=3 OR "I"."TYPE#"=4
    OR
                  "I"."TYPE#"=6 OR "I"."TYPE#"=7 OR "I"."TYPE#"=9))
      11 - access("I"."OBJ#"=:B1)
      13 - access("U2"."TYPE#"=2 AND "U2"."SPARE2"=TO_NUMBER(SYS_CONTEXT('userenv','
    current_
                  edition_id')))
           filter(("U2"."TYPE#"=2 AND "U2"."SPARE2"=TO_NUMBER(SYS_CONTEXT('userenv',
    'current
                  _edition_id'))))
      14 - access("O2"."DATAOBJ#"=:B1 AND "O2"."TYPE#"=88 AND "O2"."OWNER#"="U2"."US
    ER#")
      17 - access("U"."NAME"='SANTU')
      18 - access("L"."OWNER#"="U"."USER#")
    
    57 rows selected.
    
    SQL>
    

    Execution plans

    Kind regards
    S.K.

  • Y at - it an easy way to get the sql code that is sent in the query UPDATE

    I have a request to UPDATE abbreviated for readability. Is there an easy way to get the sql code that is sent? I use get this info for sql select in the display of debugging in cfeclipse but not for the UPDATE.

    < cfquery debug = "" name = "q" datasource = "#datasource #" > "



    UPDATE [BookingSystem]. [dbo]. [tbTrades]
    SET
    [Status] = #MATCHED_STATUS #.
    WHERE

    clientID = < cfqueryparam value = "" #arguments.clientID # "cfsqltype ="cf_sql_integer"> AND"

    < / cfquery >

    It might pay to read the docs for - http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_p-q_17.html#1102316 - focusing on the RESULT parameter.

    Read also about debugging in CF: http://livedocs.adobe.com/coldfusion/8/htmldocs/Debug_01.html

    --

    Adam

  • How to get the query execution time without running...?

    Hello

    I had one condition... as follows...
    I had 3 sql statements. I need to run only sql what runtime is very less.

    Can someone help me, how to get the time query and run this query without using explain plan... ?

    Thank you
    Rajesh

    I can't think in any way at all to get the query execution time without running the query.

    You might get an estimate ( approximation ) If you are using explain plan.

    But you have governed to explain plan for a reason, so I can't help you.
    Why you do not want to use don't explain plan?

  • How to understand the implementation of the plan in oracle I mean if I see two implementation plans for a single sql_id plans 2 How to determine the best execution plan? Links and answers are much appreciated. Thank you

    How to understand the implementation of the plan in oracle I mean if I see two implementation plans for a single sql_id plans 2 How to determine the best execution plan? Links and answers are much appreciated. Thank you

    How to understand the implementation of the plan in oracle I mean if I see two implementation plans for a single sql_id plans 2 How to determine the best execution plan? Links and answers are much appreciated. Thank you

    After two execution plans that have the same sql_id, so we can see what you're talking about.

    See "Oracle Explain Explain Plan optimizer" by Maria Colgan of the Oracle optimizer group

    http://www.Oracle.com/technetwork/database/bi-Datawarehousing/TWP-explain-the-explain-plan-052011-393674.PDF

    Examine the various aspects of a selectivity to parallel execution plan

    performance and understand what information you should be brilliant

    the plan can be overwhelming even for the most experienced DBA. This document

    offers a detailed explanation on each of the aspects of the execution plan and a

    Overview of what caused the CBO to make the decision, he did.

  • I have a Mac Book Pro and I am trying to install the ambient light and I get the error message (205) that my firewall is turned on and is not. My computer is not compatible, or I'm just not doing something right.

    I have a Mac Book Pro and I am trying to install the ambient light and I get the error message (205) that my firewall is turned on and is not. My computer is not compatible, or I'm just not doing something right.

    Please specify the version of Mac OS for reference. just in case if the procedure below did not work.

    N ° 1)

    1) click the icon of the Apple menu and select System Preferences, and then click Network.

    (2) choose the network that is currently connected to the internet can you Ethernet or Airport (Wireless).

    (3) then click on the Advanced button, then click proxies.

    (4) slot 'Select a Proxy Server to configure' uncheck all the boxes proxy, then uncheck "Use FTP Passive Mode (PASV)".

    (5) then click on the Apply Now button.

    Then try to reinstall Adobe Creative cloud,

    Always the same?

    (1) right click on the Finder on dock icon and select the option "Go - To Folder."
    (2) you will get a text box, type in below mentioned command and then press 'return '.

    / etc

    (3) it opens the etc folder, please search for the file named ""host " and copy the same office screen.it"

    (4) double click on the Hosts file, it will open it with TextEdit.

    Let me know if you see any Adobe related as entries in the Hosts file 127.0.0.1 activate.adobe.com... etc?







    ------------------------------------------------------------------------------------------ -

    No entry to Adobe? You can follow the procedure below:

    -----------------------------------------------------------------------------------------

    Please follow the steps below:

    N ° 1)

    Click on the Finder and search options listed next to icon located Apple in the upper left of the screen and click on the "Go" menu button and select 'utilities '.

    (Applications > Utiliites)

    Look for a CC Adobe and Adobe Application Manager folder under utility window and trash both folders.



    Step 2)

    Click on the link below and download & run the cleaning of Adobe tool:

    Select the option "Adobe Application Manager for Mac OS X 10.6" and then click on "Clean up selected."

    https://helpx.Adobe.com/content/help/en/Creative-Suite/KB/CS5-cleaner-tool-installation-PR oblems/_jcr_content/hand-Sea/accordion_container_1/accordion-nominal/accordion-point-1/agreement I on-item-par/procedure/proc_par/step_3/step_par/download/file.res/AdobeCreativeCloudCleane r Tool.zip


    Step 3)

    (1) right-click on the icon in the Finder, then select 'Go - To' folder.
    (2) you will get a text box, type in the following command and then press the 'return '. (Don't miss ~ symbol)

    ~/Library

    (3) then navigate to Application Support > Adobe

    Open file Adobe and trash folders named AAMUpdater and OOBE.

    Step 4)

    (1) right-click on the icon in the Finder, then select 'Go - To' folder.
    (2) you will get a text box, type in the following command and then press the 'return '.

    / Library

    (3) then navigate to Application Support > Adobe

    Open file Adobe and trash folders named AAMUpdater, Adobe Application Manager and OOBE.


    Step 5)



    Click on the link below and open Photoshop Elements download link.

    Do not close the page, just keep it open.

    Download Photoshop Elements products | 10, 11, 12, 13

    Click on the link and download file DMG cloud creative Installer directly below and install Adobe Creative Cloud app:

    http://trials2.Adobe.com/AdobeProducts/KCCC/1/OSX10/ACCCx3_0_0_74.dmg

  • I am looking to buy a 'new' ipod classic. IPod Superstore claims get the new Apple iPod that Apple is still making them for 5 years, but only to sell them to a few suppliers for resale. Is this possible?

    I am looking to buy a 'new' ipod classic. IPod Superstore claims get the new Apple iPod that Apple is still making them for 5 years, but only to sell them to a few suppliers for resale. Is this possible?

    Probably not still making them, but Apple political is to the service of produced at least five years after they is no longer manufactured and sold

    "Owners of iPhone, iPad, iPod or Mac products can get the services and Apple parts or service providers from Apple for 5 years after that the product is longer manufactured,' which is

    Vintage and obsolete products - Apple Support

    With the iPod, 'maintenance' means often giving you a replacement to pay the off-guarantee fee, which is $ 299 for the last classic model of the iPod, according to this document

    Pricing of the Service - The Apple iPod Support

    So Apple probably has a stock that's enough to last up to five years after 2014 (when the last classic model of the iPod has been abandoned).  This provider is unlikely to be an authorized dealer, as well as the iPod has not perhaps be covered by the standard warranty of one year.  That's why it comes in a regular white box, not a retail box.  It's supposed to be a replacement of maintenance for the iPod classic (latest model) owners.  It can be 'used', but it is still old.  Parts like LCD, HDD and the age of the battery by sitting in a warehouse.

  • I installed KB263380 KB2572073 and KB2518864 three times with success; However, I get the yellow shield saying that I need to update to Windows XP

    I installed KB263380 KB2572073 and KB2518864 three times with success; However, I get the yellow shield saying that I need to update to Windows XP

    I ran the Mr Fixit for this problem, and briefly, the yellow shield disappeared, I thought that it worked.  But as soon as I clicked the solution worked and Mr. Fixit was gone, the yellow shield came back and said that I have to update these once again.

    Thanks for the article.  The icon stopped appearing after the third time I've updated from Windows.  Someone must have solved the problem to Microsoft.  I did nothing except reboot several times.  Finally, the Update icon went in itself.

  • I get the blue screen error that says CONFIG_LIST_ failed

    I get the blue screen error that says CONFIG_LIST_ failed with the error stop

    0 x 00000073 (0xc000017D, 0 x 0, 00000001 00000001, 0xF90EEBB8)

    and no FAILURE, but also last Config mode. are not able to enter either. PS my CD rom drive has been inoperative for a long time so can't use reinstall disk

    and available good PC has no floppy. Can I use a flash drive to copy all the files needed XP recommended installation. disc?

    Hi philadel37,

    Unfortunately, you can not use the flash drive to restore system files or to solve this problem.

    You will need to use the Windows XP installation disk to perform a repair of Windows XP installation.

    See the article for more information about the Windows XP repair installation.

    How to fix a computer that does not start

    http://Windows.Microsoft.com/en-us/Windows-XP/help/Setup/how-to-fix-computer-that-will-not-start

  • Unable to get the preview of images that are cut and pasted from desktop folder to external hard drive.

    Original title: I imported the photos of my card SD by cutting and pasting etil worked very well but when I did the same thing to the table and stuck in the external hard drive, I can't not open images as it is said no preview.

    Only this particular file does not open and you please help u to get the photos can save that a link is missing and I don't know what.

    Hi Gregory Trinidade,

    You can try to create a folder in the C: drive and copy the images on the desktop folder C: drive.  After copy in C: drive then try again copy on external hard drive and see if it works well or not.

    Make sure that you have access to the C: drive. Also instead of cut photos copy in another location.

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I can not load a CD rom. I get the error message is that the CD rom is 16-bit and my Vista 64 Bit.__What are solutions to make this readable CD Rom in my system.

    I can not load a CD rom.  I get the error message is that the CD rom is 16 bits and my Vista 64-bit.
    What are the solutions to make this readable CD Rom in my system.

    It seems that if the CD is read correctly, but if I interpret your message right, you have problems to install the software.  And if the facts are that it is a product of 16 - bit and Vista is a 64-bit operating system, you won't be able to install it.  Support for older, 16-bit software was removed from Vista and Windows 7.  You would need to consider using a product such as Microsoft's Virtual PC or VirtualBox from Sun Microsystems virtualization to run - and if it were a game, same virtualization may not work.

    'Herb Ellicott City' has written in the new message: * e-mail address is removed from the privacy... *

    I can not load a CD rom.  I get the error message is that the CD rom is 16 bits and my Vista 64-bit.
    What are the solutions to make this readable CD Rom in my system.

  • When trying to install Micro Cookbook 5.5 program get this message "this version is not compatible with the version of windows that you are running."

    Original title: MIcro Cookbook 5.5 install problems on Windows 7

    When I try to install a recipe program I get this message.  This version is not compatible with the version of windows that you are running.  Check the system information of computers to see if you need a x 86 (32 bit) or a or x 64 (64-bit) version of this software and then contact the editor.  I knew how to do this job of file transfer to the 32 bits of the 64 folder, but it won't let me install the program.  This software is no longer made.  The program is Micro Cookbook 5.5

    Do not transfer you files x 86 or x 64, that simply do not work and other issues.

    The program is designed for Windows 9, and if you have a version of win7 64 bit and the origonal is a 16-bit program, which she may very well, it will not install or run on 64-bit PC, so err msg you see.

    If the installation of the drive try this, locate the setup.exe, rt click & Select compatibility and select Windows 9 *.

  • Get the SQL statement error programmatically

    Hello

    error SQL in the FORMS, you can display the erroneous SQL statement pressing (shift) (Ctrl) E on the screen. Is there a way to get the text of the SQL statement in a PL/SQL function for logging purposes?

    I get the error using SQLERRM, it's not a problem. But how can I get the SQL text of the statement?

    Thanks and regards,

    Sascha

    Sascha,

    You should be able to use the: SYSTEM. System LAST_QUERY variable forms.

    Craig...

  • For the third time, after re-installing Photoshop components 13, I tried to update, but every time I get the U44M1I200 error code that can help me?

    For the third time, after re-installing Photoshop components 13, I tried to update, but every time I get the U44M1I200 error code that can help me?

    U44... Update error http://forums.adobe.com/thread/1289956 can help

  • When you try to download adobe acrobat, I get the error message indicating that he met a unexpected faliure

    When you try to download adobe acrobat, I get the error message indicating that he met an unexpected failure. Any suggestions?

    Hello

    Please try to download the software from the URL here download Acrobat products | Standard, Pro | DC, XI, X and let us know how it goes.

    ^ Ani

Maybe you are looking for

  • Back to Yosemite

    See you soon,. I need bolt to El Capitan., but the version of Yosemite that I have access to (10.10.5) is only an update, not the 1st version and cannot be opened.  Need a version 1 "bootable".  Where and how can I get? BOE

  • NB305-N600 Fn F6 and F7 work (brightness) but wrong way autour?

    Hi all I recently bought this netbook for my aunt and I spent the last two days trying to understand this issue I'm having. PROBLEM: When you press the function key + F6 / F7 brightness does the opposite of the button. for example, the brightness by

  • How to convert data from XY graph for type ' signal in "for measurement functions

    Hi all, I have a driver file that generates the screenshot XY graph.  I want to measure the period, using the measurement functions in the LabVIEW palette.  Can someone tell me how to convert this type of signal "in".  The X (time) and Y (power) are

  • Windows error Runner

    Whenever I start my computer, I get a runner error that says "invalid backweb application id 3528733" nobody knows what it is or how I can get rid of him?

  • Vista Windows keeps rebooting

    My guard restart computer and go to windows error recovery, I have no disk how can I fix this it also restarts when I select anything as last known configuration of SafeMode etc please help