Queries run PARALLEL but no parallel parameters or table DOP set

I've just taken over a new system and am seeing something that seems to me to be a bit unusual.
Queries are running parallel, but I've checked and all tables have a DOP of 1 and none of the user queries have a parallel hint. Yet I see queries running parallel in OEM.
The DB is 11.1.0.7 EE. It does have PARALLEL parms set at the DB level, such as max servers and min servers.
I showed this to another DBA and they hadn't seen it, either.
The docs state that, for a query to run parallel, a DOP > 1 must be set at the table level or in the query with a hint. Of course, these days, the docs are frequently very wrong and out of date. If this were 11.2, I would think the new Automatic DOP was involved.
Appreciate any ideas on how to investigate this.

pdp0617 wrote:
I've just taken over a new system and am seeing something that seems to me to be a bit unusual.
Queries are running parallel, but I've checked and all tables have a DOP of 1 and none of the user queries have a parallel hint. Yet I see queries running parallel in OEM.
The DB is 11.1.0.7 EE. It does have PARALLEL parms set at the DB level, such as max servers and min servers.
I showed this to another DBA and they hadn't seen it, either.
The docs state that, for a query to run parallel, a DOP > 1 must be set at the table level or in the query with a hint. Of course, these days, the docs are frequently very wrong and out of date. If this were 11.2, I would think the new Automatic DOP was involved.
Appreciate any ideas on how to investigate this.Well, its not certainly an unusual behavior. I have seen it already once but I am not sure that you have the same case but let's try. Can you tell that whether your query is using any indexes and what's the output of this query if the index is in use?
select index_name,degree,instances from all_indexes where index_name='indexname';HTH
Aman....

Similar Messages

  • Can multiple queries run parallel in a workbook

    Hi,
    My user has a workbook with multiplue queries.  It took took long to run the queries sequentially.  Is there a way to setup so the queries can run parallel?
    Thanks for your help inadvance,
    Frank

    Following thread might help you on this.
    Workbook with multiple queries.  Execution in parallel?

  • How to run visual composer queries in parallel?

    We have a visual composer model which runs 6 bex queries in parallel.
    When we run this, on the BI system (D21) we see only a maximum of two
    work processes being used at any given time in sm66. As VC runs the 6 queries
    in parallel we expected to see 6 work processes but we could only see 2 busy.
    The indivisual run time for the query is as below which totals to 6.62 mins.
    When we ran the model it completes in 3.5 mins which also indicates only a max of two of them
    are running in parallel. If all 6 ran in parallel then the model should have completed in 108 sec so for
    some reason only two queries are able to run in parallel.
    Query Run time
    Z_ZSCN_M002_Q014      108.018936
    Z_ZSCN_M002_Q016      83.171465
    Z_ZSCN_M002_Q015      47.829427
    Z_ZSCN_M002_Q011      1.67836
    YZ_ZSCN_M002_Q014_VC      79.256742
    Z_ZSCN_M002_Q013      76.980887
    Pls let me know how to run all the 6 queries in parallel.
    thank you
    regards
    Laxmi

    Problem resolved.
    The issue was due 2 thread limitation with IE. When we upped this to 10 , all queries started running fine.

  • Running parallels and Quick Books on a MacBook. MacProtector messed me up last week but I got it off Now I can't get Quick Books to open. Can anyone help?

    I am running Parallels and Quickbooks on my macbook. After an unfortunate encounter with macprotector (I didn't install it) which I was able to get off my computer, I now cannot access Quickbooks. It is trying to open it (unsuccessfully) in my Disk Utility. Any suggestions?

    I figured this out. There is an extra step now which I assume is from the iTunes update.  There is an option below where you check to sync Audiobooks to 'Include Audiobooks from Playlists'. I checked the playlist f and now my book is all the way on my phone instead of just pretending.
    Seems redundant but what do I know...At least I can listen to my book finally.

  • Precision Changes when running parallel queries in Oracle?

    I am trying to speed up our SQL queries and database draws by running parallel queries. However, we are noticing a slight difference in one of our queries. We have identified two possible reasons. One of those reasons is parallel queries for some reason have either less or more precision than what we were doing.
    Has this ever been reported before? Is it even possible? Thanks for any help.

    One of those reasons is parallel queries for some reason have either less or more precision than what we were doing.What do you mean? Show us an example of that happening and exactly what you mean.

  • How to detect sessions that are currently running parallel queries?

    Hi everyone,
    How to detect session that are currently running parallel queries?
    - The only way i can think of is querying pdml_Status from gv$session?
    - Is there a better way to do this?
    Follow up question:
    After detecting sessions that are running parallel queries how do i identify which sessions are slaves of which session?
    thanks!

    Start with V$PX_SESSION, however also take a look at V$PQ_* and V$PX_* tables.

  • Upgraded to lion but now can not run parallel desktop.

    upgraded to lion but now can not run parallel desktop. The message show can not load parallel drivers.
    Anyone can solve it?

    Do you have Parallels Desktop 6?  That is the version you need to have it run under Lion.

  • Running parallels with windows xp. want to upgrade my Quickbooks to 2013, but it will not recognize the disc.  Help!

    running parallels with windows xp and OS X Lion.  Trying to upgrade my Quickbooks on the windows side to the new 2013 version.  The windows side does not even recognize the disc.  What am I doing wrong?

    S that QB edition is only for windows 8. It won't run on any earlier version of windows.
    Looking at the QB 2013 system requirement it runs on XP.
    http://support.quickbooks.intuit.com/support/articles/INF21187
    So the version of windows is not your problem. Your problem is the virtual machine is not se to use the mac dvd drive. Have you looking into the machine settings. Not windows settings, the virtual machine settings. Make sure it is set to connect the mac dvd drive to the virtual machine.
    A good place to start would be the parallels help system. Not the windows help system.

  • Why is my sql running parallel ?

    Hi,
    NOTE: first, I thought sql developer tool is causing this and I opened a thread on that category, thanks to @rp0428's warnings and advises, I realized that something else is happening. so reopened this thread in that category, I also need an admin to delete other one:
    https://forums.oracle.com/forums/thread.jspa?threadID=2420515&tstart=0
    thanks.
    so my problem is:
    I have table partitioned by range (no subpartition) on a DATE column per months. It has almost 100 partitions. I run a query on that table based on partition column:
      select *
      from   hareket_table
      where islem_tar between to_date('01/05/2012', 'dd/mm/yyyy') and to_date('14/07/2012', 'dd/mm/yyyy') -- ISLEM_TAR is my partition column.so, when I run this query from sql developer, query works parallel. I didnt just get execution plan via sql developer interface, first I used "EXPLAIN PLAN FOR" statement (which I always do, I dont use developer tools interfaces generally) then used developer interface (just to be sure) but I didnt satisfied and then I run the query and and get real execution plan via:
    select * from table(dbms_xplan.display_cursor(sql_id => '7cm8cz0k1y0zc', cursor_child_info =>0, format=>'OUTLINE'));and the same execution plan again with PARALLELISM. so INDEXES and TABLE has no parallelism (DEGREE column in DBA_INDEXES and DBA_TABLES is set to 1).
    as I know, if I'm wrong please correct me, there is no reason to oracle run this query as parallel (I also did not give any hint). so I worried and run the same steps in "plsql developer" and query runs noparallel (inteface, explain plan for, dbms_xplan.display_cursor). sqlplus autotrace was the same( just autotrace, didnt try others dbms_xplan etc.) Based on that, I decided sql developer is causing to this (*edit: but I was wrong TOAD did same thing*).
    so I focused on sql developer and I disabled parallel query using:
    alter session disable parallel query;then run the statement again and there were no Parallelism (expectedly).
    so looked for execution plans:
    I run query twice. one with normal, one with session disabled parallel query. and look for executed execution plan for both. (child 0 and 1)
    -- WHEN PARALLEL QUERY IS ENABLE, SESSION DEFAULT
    -- JUST CONNECTED TO DATABASE
      select * from table(dbms_xplan.display_cursor('7cm8cz0k1y0zc', 0, 'OUTLINE'));
    | Id  | Operation            | Name          | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |    TQ  |IN-OUT| PQ Distrib |
    |   0 | SELECT STATEMENT     |               |       |       |  2025 (100)|          |       |       |        |      |            |
    |   1 |  PX COORDINATOR      |               |       |       |            |          |       |       |        |      |            |
    |   2 |   PX SEND QC (RANDOM)| :TQ10000      |  7910K|  1267M|  2025   (2)| 00:00:01 |       |       |  Q1,00 | P->S | QC (RAND)  |
    |   3 |    PX BLOCK ITERATOR |               |  7910K|  1267M|  2025   (2)| 00:00:01 |    90 |    92 |  Q1,00 | PCWC |            |
    |*  4 |     TABLE ACCESS FULL| HAREKET_TABLE |  7910K|  1267M|  2025   (2)| 00:00:01 |    90 |    92 |  Q1,00 | PCWP |            |
    Outline Data
      /*+
          BEGIN_OUTLINE_DATA
          IGNORE_OPTIM_EMBEDDED_HINTS
          OPTIMIZER_FEATURES_ENABLE('11.2.0.2')
          DB_VERSION('11.2.0.2')
          OPT_PARAM('query_rewrite_enabled' 'false')
          OPT_PARAM('optimizer_index_cost_adj' 30)
          OPT_PARAM('optimizer_index_caching' 50)
          OPT_PARAM('optimizer_dynamic_sampling' 6)
          ALL_ROWS
          OUTLINE_LEAF(@"SEL$1")
          FULL(@"SEL$1" "HAREKET_TABLE"@"SEL$1")
          END_OUTLINE_DATA
    Predicate Information (identified by operation id):
       4 - access(:Z>=:Z AND :Z<=:Z)
           filter(("ISLEM_TAR">=TO_DATE(' 2012-05-14 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "ISLEM_TAR"<=TO_DATE('
                  2012-07-14 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
    --WHEN DISABLED PARALLEL QUERY
    --AFTER CONNECTED, EXECUTED "ALTER SESSION DISABLE PARALLEL QUERY"
    select * from table(dbms_xplan.display_cursor('7cm8cz0k1y0zc', 1, 'OUTLINE'));
    | Id  | Operation                | Name          | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
    |   0 | SELECT STATEMENT         |               |       |       | 36504 (100)|          |       |       |
    |   1 |  PARTITION RANGE ITERATOR|               |  7910K|  1267M| 36504   (2)| 00:00:04 |    90 |    92 |
    |*  2 |   TABLE ACCESS FULL      | HAREKET_TABLE |  7910K|  1267M| 36504   (2)| 00:00:04 |    90 |    92 |
    Outline Data
      /*+
          BEGIN_OUTLINE_DATA
          IGNORE_OPTIM_EMBEDDED_HINTS
          OPTIMIZER_FEATURES_ENABLE('11.2.0.2')
          DB_VERSION('11.2.0.2')
          OPT_PARAM('query_rewrite_enabled' 'false')
          OPT_PARAM('optimizer_index_cost_adj' 30)
          OPT_PARAM('optimizer_index_caching' 50)
          ALL_ROWS
          OUTLINE_LEAF(@"SEL$1")
          FULL(@"SEL$1" "HAREKET_TABLE"@"SEL$1")
          END_OUTLINE_DATA
    Predicate Information (identified by operation id):
       2 - filter(("ISLEM_TAR">=TO_DATE(' 2012-05-14 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
                  "ISLEM_TAR"<=TO_DATE(' 2012-07-14 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
    as you can see, when I've just connected to database (no any statements run) OPT_PARAM('optimizer_dynamic_sampling' 6) is in my stats.
    when I disable parallel query on the session, this is not in stats...
    value of optimizer_dynamic_sampling is 2 in DB. so why is that query runs parallel ? I don't want that.
    thanks for answers

    >
    NOTE: first, I thought sql developer tool is causing this and I opened a thread on that category, thanks to @rp0428's warnings and advises, I realized that something else is happening. so reopened this thread in that category, I also need an admin to delete other one:
    https://forums.oracle.com/forums/thread.jspa?threadID=2420515&tstart=0
    as you can see, when I've just connected to database (no any statements run) OPT_PARAM('optimizer_dynamic_sampling' 6) is in my stats.
    when I disable parallel query on the session, this is not in stats...
    value of optimizer_dynamic_sampling is 2 in DB. so why is that query runs parallel ? I don't want that.
    >
    I answered this question in that other thread, that is now gone. I pointed you to, and quoted from, a blog that tells you EXACTLY why that is happening. And I also gave you a link to an article by Oracle ACE and noted author Jonathan Lewis. You either didn't see the links or didn't read them.
    Maria Colgan is an Oracle developer and a member of the optimizer developer team. She has many article on the net that talk about the optimizer, how it works, how to use it.
    The one I pointed you to, and quoted from, is titled 'Dynamic sampling and its impact on the Optimizer'
    https://blogs.oracle.com/optimizer/entry/dynamic_sampling_and_its_impact_on_the_optimizer
    >
    For serial SQL statements the dynamic sampling level will depend on the value of the OPTIMIZER_DYNAMIC_SAMPLING parameter and will not be triggered automatically by the optimizer. The reason for this is that serial statements are typically short running and any overhead at compile time could have a huge impact on their performance. Where as we expect parallel statements to be more resource intensive, so the additional overhead at compile time is worth it to ensure we can be best execution plan.
    In our original example the SQL statement is serial, which is why we needed to manual set the value for OPTIMIZER_DYNAMIC_SAMPLING parameter. If we were to issue a similar style of query against a larger table that had the parallel attribute set we can see the dynamic sampling kicking in.
    You should also note that setting OPTIMIZER_FEATURES_ENABLE to 9.2.0 or earlier will disable dynamic sampling all together.
    When should you use dynamic sampling? DS is typically recommended when you know you are getting a bad execution plan due to complex predicates. However, you should try and use an alter session statement to set the value for OPTIMIZER_DYNAMIC_SAMPLING parameter as it can be extremely difficult to come up with a system-wide setting.
    When is it not a good idea to use dynamic sampling? If the queries compile times need to be as fast as possible, for example, unrepeated OLTP queries where you can't amortize the additional cost of compilation over many executions.
    >
    If you read the article and particularly the first two paragraphs above Maria expalins why dynamic sampling was used in your case. And for a table with as many partitions as yours Oracle chose to use sampling level six (256 blocks, see article); a level of two would only sample 64 blocks and you have 90+ partitions. Oracle needs a good sample of partitions.
    The Jonathan Lewis article is titled 'Dynamic Sampling'
    http://jonathanlewis.wordpress.com/2010/02/23/dynamic-sampling/
    This article can also shed light on sampling as he shows how it appears that sampling isn't being used and then shows that it actually is
    >
    We can see that we have statistics.
    We can see that we delete 9002 rows
    We can see that we have 998 rows left
    We can see that the plan (and especially the cardinality of the full tablescan) doesn’t change even though we included a table-level hint to do dynamic sampling.
    Moreoever – we can’t see the usual note that you get when the plan is dependent on a dynamic sample (” – dynamic sampling used for this statement”).
    It looks as if dynamic sampling hasn’t happened.
    However, I “know” that dynamic sampling is supposed to happen unconditionally when you use a table-level hint – so I’m not going to stop at this point. There are cases where you just have to move on from explain plan (or autotrace) and look at the 10053 trace.
    So the optimizer did do dynamic sampling, but then decided that it wasn’t going to use the results for this query.

  • Web Template - Executing Queries in Parallel

    I'm looking to find out if there is a way to execute queries in Parallel for a web template.  I think in 3.5 this was not possible, but I would think that with the new 2004s they would overcome this.
    Anyone have any details on this?
    Thanks,
    Ken Murray

    Kenneth,
    From my testing it looks like it works the same way as BW 3.X web run time.
    I have not seen any template settings or RSADMIN settings which will make the Data providers in a template run parallel, this will be great feature. Not sure whether this will be enhancement, will see what SAP has  to say on this.
    Let us know if you find more info on this.
    Thanks.

  • How do I run parallels in the guest account

    I recently updated my Mac Mini.  On the old one I was running Parallels, and had the guest account set up to be able to run parallels just fine.  I used Migration Assistant to transfer everything to the new Mac.  Unfortunately, now my guest account can no longer run Parallels.  When I try to run Parallels, a popup window comes on the screen saying "You don't have permission to use the application 'launcher.'"  Even if I click "Always Allow", the next time I try to run it I get the same popup window warning.  I tried following Parallels webpage advice in how to share a virtual machine with multiple users from their website: http://kb.parallels.com/en/9303, but that doesn't help whatsoever.  So now I'm stuck.  What am I doing wrong?  I obviously had this working another time.  I'm thinking that the problem seems to lie on the Mac side, rather than the Parallels side.  Please help!

    I have not encountered this specific problem, but I suspect the cure is to reinstall Parallels desktop. Parallels installs some functions deep in the OS and they are unlikely to be transferred using MIgration Assistant which intentionally seeks to protect the operating systemon the target Mac.

  • Newbie question: Running Parallels from Boot Camp on separate drive

    All: I'm new to the Mac world, so bear with me. I'm awaiting arrival of a Mac Pro that has two separate 250GB drives. I plan on running Parallels because there are certain Windows apps that I need to access periodically--but not enough to open up Boot Camp separately. Someone suggested the following, but I need help in figuring out how this works:
    +"...install Boot Camp on another internal drive (Since you have 4 drive sleds build into the Mac) and run Parallels from that Boot Camp volume. This way you have a dedicated drive for Windows, so its faster and its not using the boot drive at all. You can boot to it natively if you really need the speed and power for gaming or just use Parallels when your in OS X."+
    So in other words, if I already have two drives, I can have my main drive running normal Mac apps, and then if I need to run Windows, I install Parallels and all my Windows apps, along with Boot Camp and Windows XP, on the second drive and use it from there whenever I need to run Windows??

    I don't think BootCamp allows an installation on another drive, but Parallels and other software will.
    You might repost this in the BootCamp forum where there are many more users running Winders under all kinds of 3rd party software.
    Here's the link:
    http://discussions.apple.com/category.jspa?categoryID=237

  • Requirement wherein I want to call two queries in parallel using ABAP Prg

    We are using RSCRM_BAPI to run a query in background and write the results to a table. We later read this table and create a file. I have a requirement u2013 wherein I want to call two queries in parallel using an ABAP program.
    For our discussion assume:
    1) Program : ZCALL_RCRMBAPI  is a program that calls RSCRM_BAPI in background and takes the query name as input
    2) Program: ZMAIN_PROGRAM  this is the main program
    The requirement is to call the ZCALL_RCRMBAPI in a loop. Also within the loop call it in parallel. Basically we have an ODS that stores ; FISCPER. So I call the two queries for a list of FISCPER.
    ZMAIN_PROGRAM - A program that reads a table (ODS ) in our case and call the two programs in a loop and both should run in parallel .
    Now if it was sequential u2013 it was easy u2013 I would just say
    Loop at L_T_FISCPER .
    Update Z_FISCPER with L_T_FISCPER-FISCPER u201C Assume Z_FISCPER is a Z table . The VARIABLE in the query Q1 and Q2 use a customer exit to read this table.
    A)       SUBMIT ZCALL_RCRMBAPI with P_QUERy = Q1 and return .
    B)      SUBMIT ZCALL_RCRMBAPI with P_QUERy = Q2 and return .
    Endloop .
    Question: How do I make these calls in parallel u2013 yet retain control in the main program?
    A)       SUBMIT ZCALL_RCRMBAPI with P_QUERy = Q1 and return .
    B)      SUBMIT ZCALL_RCRMBAPI with P_QUERy = Q2 and return .

    Instead of RSCRM BAPI you can use the RRW3_QUERY_VIEW_DATA function module for greater control over program execution...
    /people/arun.varadarajan/blog/2009/07/29/make-the-most-out-of-query-execution--part-1
    will give you pointers as to how this can be done...

  • Will the new time capsule back up Windows on an iMac running Parallels Desktop?

    Will the new time capsule back up Windows on an iMac running Parallels Desktop?

    Windows home version MSBackup, cannot backup to network drives.
    That was a little bonus from Bill for those who didn't fork out for Pro or Ultimate.
    Like people with home versions would never need to backup to network drives.. oh no.. never!!
    You need to mount the hard disk in windows for it to work.
    It will help a lot if you load the airport utility for windows into your windows OS.
    http://support.apple.com/kb/dl1547
    Open windows explorer and type the network address of the TC.
    \\TCname.local (where TCname is the correct network name of the TC).
    The TC should have all names that are windows compatible.. ie
    Fred Blog's Airport Time Capsule is just wrong. It is too long, it has spaces and it has apostrophe which is illegal.
    A good name for the TC is TC
    The default hard disk share name of data is fine. It should not be Time Capsule or anything again that is over long .. has spaces or is otherwise incompatible with windows.
    A good name for the TC wifi is TCwifi
    Then you can mount it \\TC
    typing that directly into the address bar of windows explorer.
    There are still issues with windows naturally and running in parallels I have no idea what other issues might come up.
    Tell me if you have issues.. but you will need most likely to check the network.
    Open a command window and ping the TC by name and by IP address. If IP address works just mount by IP.
    \\10.0.1.1 for example .. and that is the default TC IP address when in router mode.
    If you still cannot access the TC my recommendation is to use a USB drive and use that.. it is 10x easier and more reliable than mixing Mac and windows backups on the TC.

  • Is it better to run parallels alone or bootcamp?

    I had an older MBP and at first i was running bootcamp alone with my autodesk inventor software. Then i happened to buy and install parallels and everything ran perfect!
    Within the last week I upgraded to a new MBP with a faster processor and twice the ram. This time I did not run boot camp, just installed parallels alone... Now my inventor software is lagging and seems much slower to respond to commands. If i partition my drive with bootcamp and run parallels with it will it speed things back up? I am new to the parallels software so I'm not sure what would be the best choice. I just know I love using parallels, makes my life much easier when things run up to speed..

    New computer means your Windows OS needs to be prepped or a new install - new hardware = new activation license.
    Using a partition gives you option to dual boot. Also you are not using a VM image file which is limiting.
    Most people want to run 3D and processor/graphic intense software natively rather than in a VM but if Parallels suits you, fine.
    Were you using Parallels 10 and 10.10 before? I think you should upgrade to the new version as the older versions of Parallels are not optimized for Yosemite which also plays a big role and another reason it is sluggish.
    I believe in clean install - any OS, whether Mac or Windows, the end result is a more stable, faster, performs better with fewest possible bugs or glitches.
    When you used Boot Camp you also had to install Boot Camp Apple drivers for 'that' Mac which might still be there, but missing the drivers for your newer rMBP too.

Maybe you are looking for