Show SQL running


Is there a way in SQL Developer the opportunity to view the current SQL that is running, but has not been submitted through SQL Developer?

I started a long process via another application that fills 25-30 tables and then uses these results to remove data from other tables.

In Enterprise Manager, I could see SQL statements "Long Running" and evaluate the process of my task.

Is there a comparable function in SQL Developer?

Thank you

Murray Sobol

Tools > monitor Sessions

Tags: Database

Similar Questions

  • Rename tables and columns in sql running that accessing these columns in the table.

    Hello

    Using oracle 11.2.0.3

    We want to rename columns, tables and work just a sql scripts for this.

    If sqls who have access to those running long tables/columns for example reports what is happening

    Existing sql running, will work perfectly in that picked up sql before table/colum rename or will they crash if tables/columns renamed during them.

    scripts wil take a few seconds to run maximum

    Thank you

    The only other activity that would go on select is against these tables/columns. No etl isnert/update/delete etc wil, which happened during the name change.

    Only possible activities are report instructions srunning select.

    Tried to run a long selection and rename that select while that was going on and got no error on the test system.

    This is because certain statements does not place locks on tables or lines, so even if a session is reading data, another session can make some ddl (or dml) manipulation.

    In this situation (with only selects, no other dml queries), renaming can be done, but the question remains, what the application code?

    If it refers to old column names after name change operation, is no good.

  • When utlpwdmg.sql runs?

    Issues related to the:

    1. when utlpwdmg.sql run? (Other than when a DBA running it manually)

    -When a user changes his own PWD?

    -What is when a DBA change PWD of a users?

    -When a user has a profile assigned a password check signs in function?

    -Sometimes?

    2. can you put password several functions in utlpwdmg.sql to check and apply different functions for different profiles? If so, only this function runs when a user tries to change their PWD?

    3. that is in it altered statements placed at the bottom of utlpwdmg.sql to modify the implementation of password in dba_profiles. When those work?

    If there is a manual that describes all this well, I will happily read. I can't find this information anywhere.

    Thank you

    David

    ponderdj wrote:

    Thank you rp0428 and thank you all for being so kind and patient with me to answer MY questions despite MY confusion.

    So, if you'll notice in my last response I reference utlpwdmg.sql all more. It is was explained to me that this is just an example of script and that is all. I'm sure that you can customize and run save functions that is held at the breast.

    Since it is a script provided by oracle, I would be opposed to personalization.  Instead, I (and have) create my own.  There is nothing magical about the name "utlpwdmg.sql".

    but it doesn't matter. I would like to ask a few other questions that have not been answered, then. I see that the example of utlpwdmg.sql function starts with 'CREATE function OR REPLACE... ", so:

    1. When a password already created and assigned check function is called, where it runs since then? (He of course did not form in utlpwdmg.sql, that I had been thinking about before) Is the function which is held in a different file, which is held in a table somewhere, loaded into a global variable or kept in memory differently?

    He occupied the same place any defined function is required.  When the CREATE FUNCTION statement is executed, the function is compiled and the compiled code stored in internal oracle structures.  When the function is called (in this case, as part of the code that changes the password), it is loaded in the shared pool for execution.

    1. If I inherit a DB of someone else and you want to inspect the password assigned currently check the operation, how can I get it?

      1. I'm assuming step 1 inspect the dba_profiles.limit WHERE the dba_profiles.resource_name AS 'password_verify_function '. This will give me the name of the function currently enforced, correct?

    SQL > select profile, resource_name, limit

    2 of dba_profiles

    3 where resource_name = "PASSWORD_VERIFY_FUNCTION";

    1. Now that I have the name of the function that is currently enforced, how can I get its content for inspection?

    SELECT DBMS_METADATA. GET_DDL('FUNCTION','MYPWFUNC','SYS') FROM dual;

    Thanks again,

    David

    Another concept, you need to keep in mind is that there is nothing inherently specific about these "password check functions".  Note that in the CREATE FUNCTION statement in the sample, it is simply CREATE FUNCTION.  It is not CHECK FUNCTION to CREATE of the PASSWORDS.  Point you create the function, it's just a function.  Fundamentally not different than any other function, you can create.  Oracle does not care what you are intending that it be used for.  And the PASSWORD_VERIFY_FUNCTION of the profile property named simply no matter what function you want to be called when a password is changed or created.  In the end, this feature must really do anything at all with a password.  Oracle does not really.  Of course, it is not sensible for this function to anything other that verify that a password respects the rules of the company, but at the level of the database, Oracle is not really give a flying figure.

    I would suggest that you spend a good time with the manual of Concepts to content

  • MSCOBJCL.sql runs for a long time everything by applying the patch 6678700 for 12.1.1 upgrade

    DB: 11.2.0.3.0

    OS: IBM AIX 64 bit 6.1 power system

    Hi all

    MSCOBJCL.sql runs for time while using a patch 6678700 12.1.1 put level. We are the upgrade of 11.5.10.2.0 to 12.1.1

    Could someone please share why the script takes so long to run?

    Thanks for your time

    Best regards, a1_win

    Thanks Asif

  • SQL running slow

    Hi experts,

    Suite sql running slow (average time elapsed 18 seconds), for me to ok research execution plan

    do you see problems in the execution plan, all wy we can leaving under sql


    Hash value of plan: 1838138027

    ---------------------------------------------------------------------------------------------------------------
    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |
    ---------------------------------------------------------------------------------------------------------------
    | 0 | UPDATE STATEMENT. 22 (100) |

    PLAN_TABLE_OUTPUT
    --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    | 1. UPDATE | EXTERNAL_ID_ACCT_MAP |
    | 2. TABLE ACCESS BY INDEX ROWID | EXTERNAL_ID_ACCT_MAP | 258. 7224 | 22 (0) | 00:00:01 |
    | 3. INDEX RANGE SCAN | EXTRNL_D_CCT_MP_XCST_CCT_MP_KY | 258. 1 (0) | 00:00:01 |
    ---------------------------------------------------------------------------------------------------------------



    Thank you
    REDA

    Published by: 956212 on August 31, 2012 16:57

    Published by: 956212 on August 31, 2012 16:57

    See [url https://forums.oracle.com/forums/thread.jspa?threadID=863295] how do I post a sql tuning request.

    do you see problems in the execution plan, all wy we can leaving under sql

    Please also provide the SQL section and predicates as well--that may indicate problems such as implicit data type conversion.

    Bottom line - if the estimates in the SQL statement are reasonably correct, there is a very good chance that it is a good plan (given indices and the available paths).
    See http://www.centrexcc.com/Tuning%20by%20Cardinality%20Feedback.pdf

  • OBIEE - SQL Expression filter does not at all - shows SQL but no result

    IM at my wits end for this

    I have a report where I use a filter with a simple SQL expression
    cast ( timestampadd(SQL_TSI_YEAR, -1, Cast(Cast(DATE '@{pv_as_of_date}{2013-04-01}' AS CHAR) AS TIMESTAMP) ) as DATE)
    If an end user can enter a date and it is passed into the filter through a variable

    pv_as_of_date

    This is set by default to 2013-04-01

    I want to subtract 1 year to make the final result

    2012-04-01

    When I run the report I see two problems

    (1) for displaying the filter at the bottom, I see the complete SQL code. This should not show that the returned date? In this case the filter should not show 2012-04-01?

    (2) the filter does not yet that is my biggest problem

    I tested the code above in a column and I KNOW the date is returned as expected

    But when I use the same SQL code in the filter then it does not work

    Am I missing some special button somewhere to allow SQL expressions?

    Any help hugely appreciated

    I don't see anything wrong in the expression, but when you might have questions

    Criteria over time. "' Academic year Desc" column-> filter-> Advanced-> convert it to SQL
    and use this expression.

  • Shows SQL ID, OEM, but says: * SQL text not available *.

    I'm a bit confused on this and was hoping that someone can help you.

    I use DBConsole to an Oracle 11.2 (on Solaris 10) database.

    I see really high momentary ' * + tips + * ' in an activity greater than about 20 to 30 minute intervals.
    When I try to understand which SQL is causing the Spike, I drag the section shaded the area containing the Spike and look at all the SQL statements during this period.
    I first try to look the SQL statements by highlighting, or by clicking on the entries in the column of ID of SQL in SQL from the top (bottom left of the page).
    Then I copy and paste the statements in my sqlplus session and see if it causes any sort of spike that I followed in another window OEM looking at key activities.
    Usually, I don't not even a blip on the radar, so I'm not find the SQL statement that causes the spikes.
    Sometimes, however, when I hover over an ID of SQL, it does not show the SQL statement and instead of it shows just the words: [SQL ID].

    Then, I run a report of ASH for the 5 minute window of the shaded area containing the Spike.
    When I look at the "full list of SQL text" ASH report, I found an entry or the Scriptures have to say: * SQL text not available *.

    So then I try to select sql_text from v$ sqlarea where sql_id = «...» "(whatever this sql_id is), and I get no rows found.
    for example,.
    SQL> select sql_text from v$sqlarea where sql_id = '99mjdv0hkh5km';
    
    no rows selected
    In fact, when I try other sql_id, I don't get them either and I guess that's because they are already old v $ sqlarea.
    If I check the v$ sqlarea for up-to-date notifications, they work fine.
    So, the first thing, what controls the duration of v$ sqlarea (pool size)?

    Then I chose to DBA_HIST_ACTIVE_SESS_HISTORY and it displays the information related to the ID of SQL, but of course, it does not show the sql text.
      1* select * from DBA_HIST_ACTIVE_SESS_HISTORY where sql_id = '99mjdv0hkh5km'
    SQL> /
    
    ---------------------------------------------------------------------------------------------------------------------------------------------------
         19242 1311231241               1   68759345
    21-MAR-13 07.24.50.524 AM                                                          394            2337 FOREGROUND
            16         65 99mjdv0hkh5km Y                0          3
    SELECT                                                                         6.2052E+18 99mjdv0hkh5km
                       3          2792326754                4
    TABLE ACCESS
    FULL                                                                16777216 21-MAR-2013 07:24
    Note above FULL TABLE SCAN. That's what I'm trying to dig into who I think is the culprit causing the spikes.

    If your application uses literals, SQL is simply disappeared from sqlarea until you know.

    Although it will certainly be when it is running, then maybe you should look at the right time :)

    the alternative is a 10046 trace to capture the SQL...

  • Access privilege to show command run in privilege level 3 user

    I have a Dell 6248 switch. I created some users with privilege level 3. Now, I want to give users permission to the "show run" command.

    Can anyone help me how can we provide access to "'show run ' order to these users?"

    Kind regards
    Mukesh Kumar
    Network engineer
    Spooster COMPUTER services

    The PowerConnect OS doesn't have the function to specify a privilege level and assign what allows to have access to this level. The privilege levels are pre set on 0 1 read access and full access 15 block.

  • Catproc.SQL and Catalog.sql run by mistake in the production database while the database is running.

    Hello

    DB version: 10.2.0.4.0 cluster db. EA

    Version of the OS: Win server 2008

    by mistake one of our dba ran CATPROC.sql and CATALOG.sql scripts in our live production rac database.

    After that issues rose and developers face invalid objects. We erased our users manually main invalid objects and it looks like everything is working well for the moment.

    BUT when I checked object invalid status, he showed me some 600 disabled objects. I'm afraid in the future will come from unacceptable errors.

    What should do? any suggestions? are we in danger? What are workarounds.

    Thank you

    You must connect a SR with Oracle's Support.

    Hemant K Collette

  • 5 Lightroom does not start but shows that run in the Task Manager?

    Hello

    I use Lightroom 5.7 (64-bit) on a Win7 machine and it worked perfectly until a few days ago. Now for reasons unknown to me, it will now not start correctly. According to the Task Manager, run, but nothing appears on the screen. It shows as a running process with about 15 020 k. If I try and interrupt the process he won't stop until I've tried 4 or 5 times.

    I tried to rename the file to preview force it to build a new file and optimize the database and he ran once, said he was checking the catalog and then came back to the same behavior.

    If I can get it started I can return to a backup of database.

    Help appreciated.

    Peter

    Thanks for the comments.

    It turns out that Lightroom is not guilty.  The hard drive containing the catalog was not, and although tests seem to show like OK it was made only reading / writing at a fraction of the correct speed. If Lightroom was very time consuming to read it's own catalog.  It tooks 48 hours to exemplary concert 1 of data off the drive.

  • Plan shows SQL execution Hrs 999:59:59 Sec.

    Dear masters,

    My development team announced today that the query below takes more time. When I check the plan for my shok show Hrs 999:59:59 Sec.

    Kindly help me for this query setting.

    I use the oracle 10.2.0.3 version.
    SELECT  
     S_INVLOC.NAME , S_ORDER.ACCNT_ID , S_ORDER.APPR_BY_EMP_ID , S_ORDER.BL_CON_ID , S_ORDER.BL_OU_ID , S_ORDER.CARRIER_CD , S_ORDER.CONTACT_ID , S_ORDER.CURCY_CD , S_ORDER.TAX_EXEMPT_FLG ,
     S_ORDER.REQ_SHIP_DT , S_ORDER.SHIP_ADDR_ID , S_ORDER.SHIP_CON_ID , S_ORDER.SHIP_METH_CD , S_ORDER.SHIP_OU_ID , S_ORDER.STATUS_CD , S_ORDER.TAX_EXEMPT_NUM , S_ORDER.TAX_EXEMPT_REASON ,
     S_ORDER.OPTY_ID , S_ORDER.BU_ID PR_VIS_ORG_ID , S_ORDER.PROMO_ID , S_ORDER.PRI_LST_ID , S_ORDER.AGREE_ID AGREEMENT_ID , S_ORDER.ENTLMNT_ID ENTITLEMENT_ID , S_ORDER.SR_ID ,
     S_ORDER.BILLABLE_FLG , S_ORDER_ITEM.ROW_ID , S_ORDER_ITEM.ORDER_ID , S_ORDER_ITEM.LN_NUM , S_ORDER_ITEM.PROD_ID , S_ORDER_ITEM.ADJ_UNIT_PRI , S_ORDER_ITEM.BASE_UNIT_PRI ,
     S_ORDER_ITEM.CARRIER_CD CARRIER_CD1 , S_ORDER_ITEM.EXTD_QTY , S_ORDER_ITEM.QTY_SHIPPED , S_ORDER_ITEM.REQ_SHIP_DT REQ_SHIP_DT1 , S_ORDER_ITEM.SHIP_ADDR_ID SHIP_ADDR_ID1 ,
     S_ORDER_ITEM.SHIP_CON_ID SHIP_CON_ID1 , S_ORDER_ITEM.SHIP_METH_CD SHIP_METH_CD1 , S_ORDER_ITEM.STATUS_CD STATUS_CD1 , S_ORDER_ITEM.PROD_STATUS_CD , S_ORDER_ITEM.PROD_NAME ,
     S_ORDER_ITEM.LOANER_FLG , S_ORDER_ITEM.DISCNT_METH_CD , S_ORDER_ITEM.SHIP_OU_ID SHIP_OU_ID1 , S_ORDER_ITEM.STATUS_DT , S_ORDER_ITEM.MUST_DLVR_BY_DT , S_ORDER_ITEM.ACTION_CD ,
     S_ORDER_ITEM.ROLLUP_PRI , S_PROD_INT.NAME NAME1 , A.NAME NAME2 , B.NAME NAME3 , S_VOL_DISCNT.NAME NAME4 , ACCNT.PR_INDUST_ID , POSCRTDORG.OU_ID CREATED_BY_ORG_ID ,
     POSOWNERORG.OU_ID PR_OWNER_ORG_ID , PAROITEM.LN_NUM , PAROITEM.PROD_ID , SHIPOITEM.CITY , SHIPOITEM.COUNTRY , SHIPOITEM.ZIPCODE , SHIPO.CITY , SHIPO.COUNTRY , SHIPO.ZIPCODE ,
     BILL.CITY , BILL.COUNTRY , BILL.ZIPCODE , S_CAMP_CON.PR_CALL_LST_ID SEGMENT_ID , S_ORDER.DCP_ID OFFER_ID , APPRBYPOS.PR_HELD_POSTN_ID , POSOWNERORG.ROW_ID , POSOWNERORG.PR_EMP_ID ,
     S_ENTLMNT.PAR_AGREE_ID , ROOTOITEM.PROD_ID ROOT_LN_PROD_ID , ROOTOITEM.LN_NUM ROOT_LN_NUM , S_ORDER.PR_POSTN_ID , S_CAMP_CON.CAMP_LD_WAVE_ID , S_SRC.REGION_ID , OPRI.COST_PRI ,
     S_ORDER_ITEM.ORDER_ITM_CURCY_CD OITM_CURCY_CD , ROOTOITEM.ORDER_ITM_CURCY_CD ROOTOITM_CURCY_CD , S_ORDER_ITEM.ORDER_ITM_EXCH_DT OITM_AMT_DT , S_ORDER.ORDER_EXCH_DT ,
     S_ORDER_ITEM.CREATED , S_ORDER_ITEM.NET_PRI , S_ORDER_ITEM.CRSE_OFFR_ID , S_ORDER_ITEM.PRI_LST_ID OITM_PRI_LST_ID , ROOTOITEM.PRI_LST_ID ROOTOITM_PRI_LST_ID ,
     OWNORG.PRTNR_FLG , VISORG.PRTNR_FLG , S_CAMP_LD_WAVE.LAUNCHED_TS , QUOTE.CREATED , S_ORDER.ACTIVE_FLG , S_ORDER.APPROVED_FLG , PARPROD.PROD_TYPE_CD , ROOTPROD.PROD_TYPE_CD ,
     S_PROD_INT.PRICE_TYPE_CD , S_SRC.PROG_END_DT , S_SRC.PROG_START_DT , S_SRC.ROW_ID , S_ORDER.CREATED , OWNORG.ROW_ID , 0 AS X_CUSTOM , S_ORDER_ITEM. X_PHONE_NUMBER ,
     S_ORDER_ITEM.X_BACKEND_SERVICE_ID , S_ORDER_ITEM.SERVICE_NUM , S_ORDER_ITEM.BILL_ACCNT_ID , S_ORDER_X.ATTRIB_04 , S_ORDER_X.ATTRIB_30 , S_ORDER_X.ATTRIB_31
       FROM
     SIEBEL.V_ORDER_ITEM S_ORDER_ITEM, SIEBEL.S_ORDER_ITEM PAROITEM, SIEBEL.S_ORDER_ITEM ROOTOITEM, SIEBEL.S_ORDER, SIEBEL.S_VDISCNT_ITEM A, SIEBEL.S_VOL_DISCNT, SIEBEL.S_PROD_INT,
     SIEBEL.S_VDISCNT_ITEM B, SIEBEL.S_INVLOC, SIEBEL.S_ORG_EXT ACCNT, SIEBEL.S_POSTN POSOWNERORG, SIEBEL.S_CONTACT CRTD, SIEBEL.S_CONTACT APPRBYPOS, SIEBEL.S_POSTN POSCRTDORG,
     SIEBEL.S_ADDR_ORG SHIPOITEM, SIEBEL.S_ADDR_ORG SHIPO, SIEBEL.S_ADDR_ORG BILL, SIEBEL.S_CAMP_CON, SIEBEL.S_ENTLMNT, SIEBEL.S_SRC, SIEBEL.S_ORDER_ITM_PRI OPRI,
     SIEBEL.S_CAMP_LD_WAVE, SIEBEL.S_DOC_QUOTE QUOTE, SIEBEL.S_ORG_EXT OWNORG, SIEBEL.S_ORG_EXT OWNORG1, SIEBEL.S_ORG_EXT VISORG1, SIEBEL.S_ORG_EXT VISORG,
     SIEBEL.S_PROD_INT PARPROD, SIEBEL.S_PROD_INT ROOTPROD, SIEBEL.S_ORDER_X
     WHERE 
         S_ORDER_ITEM.ORDER_ID     = S_ORDER.ROW_ID
        AND S_ORDER_ITEM.ROOT_ORDER_ITEM_ID  = ROOTOITEM.ROW_ID
        AND S_ORDER_ITEM.PAR_ORDER_ITEM_ID   = PAROITEM.ROW_ID(+)
        AND S_ORDER_ITEM.PROD_ID      = S_PROD_INT.ROW_ID(+)
        AND S_ORDER_ITEM.SRC_INVLOC_ID       = S_INVLOC.ROW_ID(+)
        AND S_ORDER_ITEM.VOL_DISCNT_ITEM_ID  = A.ROW_ID(+)
        AND S_ORDER_ITEM.VOL_DISCNT_ID       = S_VOL_DISCNT.ROW_ID(+)
        AND S_ORDER_ITEM.VOL_UPSELL_ITEM_ID  = B.ROW_ID(+)
        AND S_ORDER_ITEM.SHIP_ADDR_ID = SHIPOITEM.ROW_ID(+)
        AND S_ORDER.PR_POSTN_ID       = POSOWNERORG.ROW_ID(+)
        AND S_ORDER_ITEM.CREATED_BY   = CRTD.ROW_ID(+)
        AND CRTD.PR_HELD_POSTN_ID     = POSCRTDORG.ROW_ID(+)
        AND S_ORDER.ACCNT_ID   = ACCNT.ROW_ID(+)
        AND S_ORDER.CAMP_CON_ID       = S_CAMP_CON.ROW_ID(+)
        AND S_ORDER.SHIP_ADDR_ID      = SHIPO.ROW_ID(+)
        AND S_ORDER.BL_ADDR_ID        = BILL.ROW_ID(+)
        AND S_ORDER.APPR_BY_EMP_ID    = APPRBYPOS.ROW_ID(+)
        AND S_ORDER.ENTLMNT_ID        = S_ENTLMNT.ROW_ID(+)
        AND S_ORDER.PROMO_ID   = S_SRC.ROW_ID(+)
        AND S_ORDER_ITEM.ROW_ID       = OPRI.PAR_ROW_ID(+)
        AND S_CAMP_CON.CAMP_LD_WAVE_ID       = S_CAMP_LD_WAVE.ROW_ID(+)
        AND S_ORDER.QUOTE_ID   = QUOTE.ROW_ID(+)
        AND POSOWNERORG.OU_ID  = OWNORG1.ROW_ID(+)
        AND OWNORG1.PAR_BU_ID  = OWNORG.ROW_ID(+)
        AND S_ORDER.BU_ID      = VISORG1.ROW_ID(+)
        AND VISORG1.PAR_BU_ID  = VISORG.ROW_ID(+)
        AND PAROITEM.PROD_ID   = PARPROD.ROW_ID(+)
        AND ROOTOITEM.PROD_ID  = ROOTPROD.ROW_ID(+)
        AND S_ORDER_ITEM.ORDER_ID     = S_ORDER_X.PAR_ROW_ID(+)
        AND S_ORDER_ITEM.ROOT_ORDER_ITEM_ID IS NOT NULL;
    Execution plan is: select * from table (dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    ------------------------------------------------------------------------------------------------------------------------------------------------------
    Plan hash value: 73463824
    
    ------------------------------------------------------------------------------------------------------------------------------
    | Id  | Operation                                                | Name              | Rows  | Bytes | Cost (%CPU)| Time     |
    ------------------------------------------------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT                                         |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |   1 |  NESTED LOOPS OUTER                                      |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |   2 |   NESTED LOOPS OUTER                                     |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |   3 |    NESTED LOOPS OUTER                                    |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |   4 |     NESTED LOOPS OUTER                                   |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |   5 |      NESTED LOOPS OUTER                                  |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |   6 |       NESTED LOOPS                                       |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |   7 |        NESTED LOOPS OUTER                                |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |   8 |         NESTED LOOPS OUTER                               |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |   9 |          NESTED LOOPS OUTER                              |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |  10 |           NESTED LOOPS OUTER                             |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |  11 |            NESTED LOOPS OUTER                            |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |  12 |             NESTED LOOPS OUTER                           |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |  13 |              NESTED LOOPS OUTER                          |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |  14 |               NESTED LOOPS OUTER                         |                   |  3170K|    12G|  4100G  (4)|999:59:59 |
    |  15 |                NESTED LOOPS OUTER                        |                   |  3170K|    11G|  4100G  (4)|999:59:59 |
    |  16 |                 NESTED LOOPS OUTER                       |                   |  3170K|    11G|  4100G  (4)|999:59:59 |
    |  17 |                  NESTED LOOPS OUTER                      |                   |  3170K|    11G|  4100G  (4)|999:59:59 |
    |  18 |                   NESTED LOOPS OUTER                     |                   |  3170K|    10G|  4100G  (4)|999:59:59 |
    |  19 |                    NESTED LOOPS OUTER                    |                   |  3170K|    10G|  4100G  (4)|999:59:59 |
    |  20 |                     NESTED LOOPS OUTER                   |                   |  3170K|    10G|  4100G  (4)|999:59:59 |
    |  21 |                      NESTED LOOPS                        |                   |  3170K|  9911M|  4100G  (4)|999:59:59 |
    |  22 |                       NESTED LOOPS OUTER                 |                   |  3108K|  4927M|  2569K  (2)| 01:08:47 |
    |  23 |                        NESTED LOOPS OUTER                |                   |  3108K|  4835M|   115K (14)| 00:03:06 |
    |  24 |                         NESTED LOOPS OUTER               |                   |  3108K|  4782M|   115K (14)| 00:03:06 |
    |  25 |                          NESTED LOOPS OUTER              |                   |  3108K|  4660M|   112K (12)| 00:03:02 |
    |  26 |                           NESTED LOOPS OUTER             |                   |  3108K|  4417M|   112K (12)| 00:03:02 |
    |  27 |                            NESTED LOOPS OUTER            |                   |  3108K|  4227M|   112K (12)| 00:03:02 |
    |  28 |                             NESTED LOOPS OUTER           |                   |  3108K|  3943M|   112K (12)| 00:03:02 |
    |  29 |                              NESTED LOOPS OUTER          |                   |  3108K|  3178M|   111K (11)| 00:02:59 |
    |  30 |                               TABLE ACCESS FULL          | S_ORDER           |  3108K|  2413M|   109K  (9)| 00:02:56 |
    |  31 |                               TABLE ACCESS BY INDEX ROWID| S_ADDR_ORG        |     1 |   258 |     1   (0)| 00:00:01 |
    |* 32 |                                INDEX UNIQUE SCAN         | S_ADDR_ORG_P1     |     1 |       |     1   (0)| 00:00:01 |
    |  33 |                              TABLE ACCESS BY INDEX ROWID | S_ADDR_ORG        |     1 |   258 |     1   (0)| 00:00:01 |
    |* 34 |                               INDEX UNIQUE SCAN          | S_ADDR_ORG_P1     |     1 |       |     1   (0)| 00:00:01 |
    |  35 |                             TABLE ACCESS BY INDEX ROWID  | S_CAMP_CON        |     1 |    96 |     1   (0)| 00:00:01 |
    |* 36 |                              INDEX UNIQUE SCAN           | S_CAMP_CON_P1     |     1 |       |     1   (0)| 00:00:01 |
    |  37 |                            TABLE ACCESS BY INDEX ROWID   | S_ENTLMNT         |     1 |    64 |     1   (0)| 00:00:01 |
    |* 38 |                             INDEX UNIQUE SCAN            | S_ENTLMNT_P1      |     1 |       |     1   (0)| 00:00:01 |
    |  39 |                           TABLE ACCESS BY INDEX ROWID    | S_SRC             |     1 |    82 |     1   (0)| 00:00:01 |
    |* 40 |                            INDEX UNIQUE SCAN             | S_SRC_P1          |     1 |       |     1   (0)| 00:00:01 |
    |  41 |                          TABLE ACCESS BY INDEX ROWID     | S_CAMP_LD_WAVE    |     1 |    41 |     1   (0)| 00:00:01 |
    |* 42 |                           INDEX UNIQUE SCAN              | S_CAMP_LD_WAVE_P1 |     1 |       |     1   (0)| 00:00:01 |
    |  43 |                         TABLE ACCESS BY INDEX ROWID      | S_DOC_QUOTE       |     1 |    18 |     1   (0)| 00:00:01 |
    |* 44 |                          INDEX UNIQUE SCAN               | S_DOC_QUOTE_P1    |     1 |       |     1   (0)| 00:00:01 |
    |  45 |                        TABLE ACCESS BY INDEX ROWID       | S_POSTN           |     1 |    31 |     1   (0)| 00:00:01 |
    |* 46 |                         INDEX UNIQUE SCAN                | S_POSTN_P1        |     1 |       |     1   (0)| 00:00:01 |
    |* 47 |                       VIEW                               | V_ORDER_ITEM      |     1 |  1616 |  1318K  (4)| 00:35:19 |
    |  48 |                        NESTED LOOPS                      |                   |  3128K|  1372M|  1318K  (4)| 00:35:19 |
    |  49 |                         INDEX FAST FULL SCAN             | S_ETL_I_IMG_25_M2 |  3128K|    32M|  2756  (11)| 00:00:05 |
    |* 50 |                         TABLE ACCESS BY INDEX ROWID      | S_ORDER_ITEM      |     1 |   449 |     2   (0)| 00:00:01 |
    |* 51 |                          INDEX UNIQUE SCAN               | S_ORDER_ITEM_P1   |     1 |       |     2   (0)| 00:00:01 |
    |  52 |                      TABLE ACCESS BY INDEX ROWID         | S_VDISCNT_ITEM    |     1 |   134 |     1   (0)| 00:00:01 |
    |* 53 |                       INDEX UNIQUE SCAN                  | S_VDISCNT_ITEM_P1 |     1 |       |     1   (0)| 00:00:01 |
    |  54 |                     TABLE ACCESS BY INDEX ROWID          | S_VOL_DISCNT      |     1 |   134 |     1   (0)| 00:00:01 |
    |* 55 |                      INDEX UNIQUE SCAN                   | S_VOL_DISCNT_P1   |     1 |       |     1   (0)| 00:00:01 |
    |  56 |                    TABLE ACCESS BY INDEX ROWID           | S_VDISCNT_ITEM    |     1 |   134 |     1   (0)| 00:00:01 |
    |* 57 |                     INDEX UNIQUE SCAN                    | S_VDISCNT_ITEM_P1 |     1 |       |     1   (0)| 00:00:01 |
    |  58 |                   TABLE ACCESS BY INDEX ROWID            | S_ADDR_ORG        |     1 |   258 |     1   (0)| 00:00:01 |
    |* 59 |                    INDEX UNIQUE SCAN                     | S_ADDR_ORG_P1     |     1 |       |     1   (0)| 00:00:01 |
    |* 60 |                  TABLE ACCESS FULL                       | S_ORDER_ITM_PRI   |     1 |    45 |     0   (0)| 00:00:01 |
    |  61 |                 TABLE ACCESS BY INDEX ROWID              | S_INVLOC          |     1 |    33 |     1   (0)| 00:00:01 |
    |* 62 |                  INDEX UNIQUE SCAN                       | S_INVLOC_P1       |     1 |       |     1   (0)| 00:00:01 |
    |  63 |                TABLE ACCESS BY INDEX ROWID               | S_PROD_INT        |     1 |    58 |     1   (0)| 00:00:01 |
    |* 64 |                 INDEX UNIQUE SCAN                        | S_PROD_INT_P1     |     1 |       |     1   (0)| 00:00:01 |
    |  65 |               TABLE ACCESS BY INDEX ROWID                | S_ORDER_X         |     1 |    36 |     2   (0)| 00:00:01 |
    |* 66 |                INDEX RANGE SCAN                          | S_ORDER_X_U1      |     1 |       |     2   (0)| 00:00:01 |
    |  67 |              TABLE ACCESS BY INDEX ROWID                 | S_CONTACT         |     1 |    14 |     2   (0)| 00:00:01 |
    |* 68 |               INDEX UNIQUE SCAN                          | S_CONTACT_P1      |     1 |       |     1   (0)| 00:00:01 |
    |  69 |             TABLE ACCESS BY INDEX ROWID                  | S_POSTN           |     1 |    20 |     1   (0)| 00:00:01 |
    |* 70 |              INDEX UNIQUE SCAN                           | S_POSTN_P1        |     1 |       |     1   (0)| 00:00:01 |
    |  71 |            TABLE ACCESS BY INDEX ROWID                   | S_CONTACT         |     1 |    14 |     1   (0)| 00:00:01 |
    |* 72 |             INDEX UNIQUE SCAN                            | S_CONTACT_P1      |     1 |       |     1   (0)| 00:00:01 |
    |  73 |           TABLE ACCESS BY INDEX ROWID                    | S_ORG_EXT         |     1 |    14 |     2   (0)| 00:00:01 |
    |* 74 |            INDEX UNIQUE SCAN                             | S_ORG_EXT_P1      |     1 |       |     1   (0)| 00:00:01 |
    |  75 |          TABLE ACCESS BY INDEX ROWID                     | S_ORG_EXT         |     1 |    14 |     2   (0)| 00:00:01 |
    |* 76 |           INDEX UNIQUE SCAN                              | S_ORG_EXT_P1      |     1 |       |     1   (0)| 00:00:01 |
    |  77 |         TABLE ACCESS BY INDEX ROWID                      | S_ORG_EXT         |     1 |    17 |     2   (0)| 00:00:01 |
    |* 78 |          INDEX UNIQUE SCAN                               | S_ORG_EXT_P1      |     1 |       |     1   (0)| 00:00:01 |
    |  79 |        TABLE ACCESS BY INDEX ROWID                       | S_ORDER_ITEM      |     1 |    60 |     2   (0)| 00:00:01 |
    |* 80 |         INDEX UNIQUE SCAN                                | S_ORDER_ITEM_P1   |     1 |       |     2   (0)| 00:00:01 |
    |  81 |       TABLE ACCESS BY INDEX ROWID                        | S_ORDER_ITEM      |     1 |    24 |     2   (0)| 00:00:01 |
    |* 82 |        INDEX UNIQUE SCAN                                 | S_ORDER_ITEM_P1   |     1 |       |     2   (0)| 00:00:01 |
    |  83 |      TABLE ACCESS BY INDEX ROWID                         | S_PROD_INT        |     1 |    16 |     1   (0)| 00:00:01 |
    |* 84 |       INDEX UNIQUE SCAN                                  | S_PROD_INT_P1     |     1 |       |     1   (0)| 00:00:01 |
    |  85 |     TABLE ACCESS BY INDEX ROWID                          | S_PROD_INT        |     1 |    16 |     1   (0)| 00:00:01 |
    |* 86 |      INDEX UNIQUE SCAN                                   | S_PROD_INT_P1     |     1 |       |     1   (0)| 00:00:01 |
    |  87 |    TABLE ACCESS BY INDEX ROWID                           | S_ORG_EXT         |     1 |    14 |     2   (0)| 00:00:01 |
    |* 88 |     INDEX UNIQUE SCAN                                    | S_ORG_EXT_P1      |     1 |       |     1   (0)| 00:00:01 |
    |  89 |   TABLE ACCESS BY INDEX ROWID                            | S_ORG_EXT         |     1 |    17 |     2   (0)| 00:00:01 |
    |* 90 |    INDEX UNIQUE SCAN                                     | S_ORG_EXT_P1      |     1 |       |     1   (0)| 00:00:01 |
    ------------------------------------------------------------------------------------------------------------------------------
    
    Predicate Information (identified by operation id):
    ---------------------------------------------------
    
      32 - access("S_ORDER"."SHIP_ADDR_ID"="SHIPO"."ROW_ID"(+))
      34 - access("S_ORDER"."BL_ADDR_ID"="BILL"."ROW_ID"(+))
      36 - access("S_ORDER"."CAMP_CON_ID"="S_CAMP_CON"."ROW_ID"(+))
      38 - access("S_ORDER"."ENTLMNT_ID"="S_ENTLMNT"."ROW_ID"(+))
      40 - access("S_ORDER"."PROMO_ID"="S_SRC"."ROW_ID"(+))
      42 - access("S_CAMP_CON"."CAMP_LD_WAVE_ID"="S_CAMP_LD_WAVE"."ROW_ID"(+))
      44 - access("S_ORDER"."QUOTE_ID"="QUOTE"."ROW_ID"(+))
      46 - access("S_ORDER"."PR_POSTN_ID"="POSOWNERORG"."ROW_ID"(+))
      47 - filter("S_ORDER_ITEM"."ORDER_ID"="S_ORDER"."ROW_ID")
      50 - filter("S_ORDER_ITEM"."ROOT_ORDER_ITEM_ID" IS NOT NULL)
      51 - access("S_ORDER_ITEM"."ROW_ID"="S_ETL_I_IMG_25"."ROW_ID")
      53 - access("S_ORDER_ITEM"."VOL_DISCNT_ITEM_ID"="A"."ROW_ID"(+))
      55 - access("S_ORDER_ITEM"."VOL_DISCNT_ID"="S_VOL_DISCNT"."ROW_ID"(+))
      57 - access("S_ORDER_ITEM"."VOL_UPSELL_ITEM_ID"="B"."ROW_ID"(+))
      59 - access("S_ORDER_ITEM"."SHIP_ADDR_ID"="SHIPOITEM"."ROW_ID"(+))
      60 - filter("S_ORDER_ITEM"."ROW_ID"="OPRI"."PAR_ROW_ID"(+))
    
    PLAN_TABLE_OUTPUT
    ------------------------------------------------------------------------------------------------------------------------------------------------------
      62 - access("S_ORDER_ITEM"."SRC_INVLOC_ID"="S_INVLOC"."ROW_ID"(+))
      64 - access("S_ORDER_ITEM"."PROD_ID"="S_PROD_INT"."ROW_ID"(+))
      66 - access("S_ORDER_ITEM"."ORDER_ID"="S_ORDER_X"."PAR_ROW_ID"(+))
      68 - access("S_ORDER_ITEM"."CREATED_BY"="CRTD"."ROW_ID"(+))
      70 - access("CRTD"."PR_HELD_POSTN_ID"="POSCRTDORG"."ROW_ID"(+))
      72 - access("S_ORDER"."APPR_BY_EMP_ID"="APPRBYPOS"."ROW_ID"(+))
      74 - access("S_ORDER"."ACCNT_ID"="ACCNT"."ROW_ID"(+))
      76 - access("POSOWNERORG"."OU_ID"="OWNORG1"."ROW_ID"(+))
      78 - access("OWNORG1"."PAR_BU_ID"="OWNORG"."ROW_ID"(+))
      80 - access("S_ORDER_ITEM"."ROOT_ORDER_ITEM_ID"="ROOTOITEM"."ROW_ID")
      82 - access("S_ORDER_ITEM"."PAR_ORDER_ITEM_ID"="PAROITEM"."ROW_ID"(+))
      84 - access("PAROITEM"."PROD_ID"="PARPROD"."ROW_ID"(+))
      86 - access("ROOTOITEM"."PROD_ID"="ROOTPROD"."ROW_ID"(+))
      88 - access("S_ORDER"."BU_ID"="VISORG1"."ROW_ID"(+))
      90 - access("VISORG1"."PAR_BU_ID"="VISORG"."ROW_ID"(+))
    
    132 rows selected.
    Published by: KODS on 13 December 2012 14:11

    Hello

    what the plan for

    SELECT * FROM V_ORDER_ITEM WHERE ROW_ID = :ROW_ID
    

    ?

    If it's the same thing, this means that the optimizer cannot merge the view (in fact, he can't even lower the predicate). Nothing in the view looks like he could have done fusion (such as the use of rownum etc.), so is lack of privilege VIEW MERGE or a bug in the optimizer.

    GRANT MERGE VIEW ON V_ORDER_ITEM try or run the query under the account of the owner of the view and see what happens.

    Best regards
    Nikolai

  • Forms 10 g where SQLs run?

    In Oracle Forms 10g it is Java Applet above which our Application is running. Now, suppose we have a button and we execute a SQL to get a column value.

    Now where the fire SQL?

    It fires in the Applet (i.e., customer) or it go on the App and then run?

    Hello

    Between the Application and the database server. The Applet is responsible for rendering only. No SQL – PL/SQL on the Client computer.

    François

  • Error in adstats.sql running after you apply the patch 6810189 on 10.2.0.2

    Suite error encountered when the adstats.sql script runs along the sys user after the start of the database with the option limit:

    SQL > @/ backup/adstats.sql;
    Connected.


    --------------------------------------------------
    -adstats.sql started 13 / 09 / 2010 21:44:26 -


    Checking the version of DB and collection of statistics...

    declare
    *
    ERROR on line 1:
    ORA-12801: error reported in the parallel query P002 Server
    ORA-25153: Temporary Tablespace is empty
    ORA-06512: at "SYS." DBMS_STATS", line 13591
    ORA-06512: at "SYS." DBMS_STATS", line 13937
    ORA-06512: at "SYS." DBMS_STATS", line 14015
    ORA-06512: at "SYS." DBMS_STATS", line 13974
    ORA-06512: at line 2
    ORA-06512: at line 33 level

    Can anyone help?

    Thanks in advance,
    Umair

    Hello

    I just used the TEMP for example. You should review your own storage space and adjust instruction.

    You can change the temporary tablespace default:

    ALTER DATABASE DEFAULT TEMPORARY TABLESPACE temp1;
    

    Herald tiomela
    http://htendam.WordPress.com

  • Report Null VS discoverer view show SQL query results.

    I created a simple Cross Tab discoverer of a custom SQL report that has a calculation for sales. The output is to give all null values even if there is a sale. The output does not seem fair. Then I copied the query from tools-> SQL Show and ran the query in the TOAD where I show the balances for the report. I don't understand why it does not show in the discoverer. Help, please.


    Thank you

    Published by: PA1B on January 27, 2010 11:40

    Hello

    You must show the translated_flag as a dimension in the report or use it in a function group in the calculation. What calculation should be tried? And why did not work?

    Rod West

  • How to make this simple sql run faster?

    Here is a very simple sql, but it takes too long to finish as an hour or more, and the problem is in the table. It's a huge table with 17660025 lines.
    In addition, upd_dt is indexed.
    select distinct (dstn_type) from ims_ets_prty_msge where ims_ets_prty_msge.upd_dt > sysdate - 30;
    Execution plan seems to be no problem: (is 9i, and I do not think that it would not perform better if the UNIQUE HASH is used instead of SORT UNIQUE)
    -----------------------------------------------------------------------------------------
    | Id  | Operation                    |  Name                    | Rows  | Bytes | Cost  |
    -----------------------------------------------------------------------------------------
    |   0 | SELECT STATEMENT             |                          |     6 |    78 |  1409 |
    |   1 |  SORT UNIQUE                 |                          |     6 |    78 |  1409 |
    |   2 |   TABLE ACCESS BY INDEX ROWID| IMS_ETS_PRTY_MSGE        |   856K|    10M|    10 |
    |*  3 |    INDEX RANGE SCAN          | IMS_ETS_PRTY_MSGE_INDX5  |   154K|       |     2 |
    -----------------------------------------------------------------------------------------
     
    Predicate Information (identified by operation id):
    ---------------------------------------------------
     
       3 - access("IMS_ETS_PRTY_MSGE"."UPD_DT">SYSDATE@!-30)
     
    Note: cpu costing is off
    Here is some info on the table
    NUM_ROWS BLOCKS  EMPTY_BLOCKS AVG_SPACE CHAIN_CNT AVG_ROW_LEN
    17129540      455259     622           502             455278      188
    The thing is that we must make it run faster.
    And all I can think is to create a bitmap on dstn_type (low cardinality) index and partition the table using upd_dt;

    So my question would be is anyway that we can get a better response time without having to make that kind of change?
    Or is this kind of change really help?

    Any thoughts would be appreciated!

    Thank you

    Have you thought about putting an index on (upd_dt, dstn_type)?

    With the query you posted, and this index, it should be possible to use a full scan of the index, no visit to the table at all.

    A bitmap index would not be a good idea, if it is an OLTP application / table.

Maybe you are looking for

  • Auto restart MacOS Sierra

    Hello! So I upgraded to Mac OS Sierra yesterday, but then something is terribly wrong. Whenever I try to put a window in full screen mode and when I switch between desktops using the 4-finger dragging gesture, the system reboots. It goes back to the

  • I can't update windows. I get error 0x8024D007

    I can't update windows.  Under XP.  He's trying to download updates but will not continue to the web page.  I get error 0x8024D007.  What can I do?

  • PC Companion - Outlook synchronization fails with an unknown error

    try a synchronization with outlook 2010 led to a unknown error, reading the newspaper: 09:18:29, 37 [PCCompanion] 09/14/11 activate CalendarManager09:18:45, 15 [MapiThk] 05/13/06 Outlook 2010 detected.09:18:45, 15 [Syncengine] 13/05/22 PIM Get databa

  • Should I be concerned about javaws.exe 1000 names of the running Image?

    Do you not think that this issue can cause some hidden problems or degradation of system term longer than I know not? It is strange that this issue has actually benefited from operation of my machine: About 5 minutes after each start, restart or Log-

  • Unable to load the database

    Hi allI get the following error when I am trying to start the database. Could someone please help me understand this issue.[Fri 16 Oct 11:44:21 2015] Local/PLAN / / / 47313718276144/Info (1019017)Reading database parameters [xxxxxxx][Fri 16 Oct 11:44