Why parallel to serial ?

Hi,
Version 10204
I am trying to insert few millions of record from one partition table to another.
Both tables are declared as parallel .
select table_name,degree,instances from dba_tables where table_name in ('CI_CUST_INFO_BACKUP_ORIGINAL','CI_CUST_INFO_BACKUP');
TABLE_NAME                            DEGREE     INSTANCES
CI_CUST_INFO_BACKUP             8                        1
CI_CUST_INFO_BACKUP_ORIGINAL       DEFAULT        DEFAULTFor some reason the optimizer choose PARALLEL_TO_SERIAL and not PARALLEL_TO_PARALLEL .
I expect to see few sessions in v$sessions , but there is just one session running.
Can one suggest how to make it run in parallel ?
alter session force parallel dml;
Session altered.
alter session force parallel query;
Session altered.
INSERT      /*+ append */INTO acrm.ci_cust_info_backup
SELECT /*+ parallel (p,8) */      *
FROM acrm.ci_cust_info_backup_original PARTITION (cust_info_backup_def) p;
Plan
INSERT STATEMENT  ALL_ROWSCost: 12,135                                     
7 PX COORDINATOR                                
  6 PX SEND QC (RANDOM) PARALLEL_TO_SERIAL SYS.:TQ10001 :Q1001Cost: 12,135  Bytes: 7,069,977,612  Cardinality: 8,600,946                           
    5 LOAD AS SELECT PARALLEL_COMBINED_WITH_PARENT :Q1001                    
      4 PX RECEIVE PARALLEL_COMBINED_WITH_PARENT :Q1001Cost: 12,135  Bytes: 7,069,977,612  Cardinality: 8,600,946                 
        3 PX SEND RANDOM LOCAL PARALLEL_TO_PARALLEL SYS.:TQ10000 :Q1000Cost: 12,135  Bytes: 7,069,977,612  Cardinality: 8,600,946            
          2 PX BLOCK ITERATOR PARALLEL_COMBINED_WITH_CHILD :Q1000Cost: 12,135  Bytes: 7,069,977,612  Cardinality: 8,600,946  Partition #: 6  Partitions accessed #8     
            1 TABLE ACCESS FULL TABLE PARALLEL_COMBINED_WITH_PARENT ACRM.CI_CUST_INFO_BACKUP_ORIGINAL :Q1000Cost: 12,135  Bytes: 7,069,977,612  Cardinality: 8,600,946  Partition #: 7  Partitions accessed #8

Yoav wrote:
Hi,
Version 10204
I am trying to insert few millions of record from one partition table to another.
Both tables are declared as parallel .
For some reason the optimizer choose PARALLEL_TO_SERIAL and not PARALLEL_TO_PARALLEL .
I expect to see few sessions in v$sessions , but there is just one session running.
Can one suggest how to make it run in parallel ?Could you please post the formatted output taken from DBMS_XPLAN.DISPLAY, or even better DBMS_XPLAN.DISPLAY_CURSOR?
You need to understand that every plan at one point will have a parallel to serial - and the plan you've posted shows that the LOAD AS SELECT is run in parallel, and only the top-most parallel operation reports parallel to serial.
So from a plan perspective the execution should use parallel DML and parallel query.
Now at runtime there might be reasons why you don't get the degree you've requested so you should also check the session statistics for parallel executions downgraded and statements being executed in parallel:
select
       s.value
     , n.name
from
       v$statname n,
       v$sesstat s
where
       n.statistic# = s.statistic#
and    (n.name like '%downgrad%' or n.name like '%parallelized%')
and    s.sid = <qcsid>;Regards,
Randolf
Oracle related stuff blog:
http://oracle-randolf.blogspot.com/
Co-author of the "OakTable Expert Oracle Practices" book:
http://www.apress.com/book/view/1430226684
http://www.amazon.com/Expert-Oracle-Practices-Database-Administration/dp/1430226684

Similar Messages

  • Parallel and serial SQL

    i would like to have a comparaison between serial and parallel sql (time of execution,cpu cost...):
    1- i have a laptop processor: Intel core 2 Duo T8100 2.10GHz, RAM= 2Go, one disk c:\, OS= WiN7, Oracle 10g database
    2- create table b (b number);
    values insered in b are : 1,2 689,11,122,12,62
    after that i used sql statment 'insert into b (select * from b) ' many times until i have many(14336) recordsin this table.
    3- i lunched the two queries and noted the time of execution of every one.
    the results are:
    SQL> set timing on;
    SQL> select b,count(*) from b group by b order by b;
    B COUNT(*)
    1 2048
    2 2048
    11 2048
    12 2048
    62 2048
    122 2048
    689 2048
    7 ligne(s) sÚlectionnÚe(s).
    Ecoulé : 00 :00 :00.03
    Plan d'exÚcution
    Plan hash value: 1935677557
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 14336 | 182K| 11 (28)| 00:00:01 |
    | 1 | SORT GROUP BY | | 14336 | 182K| 11 (28)| 00:00:01 |
    | 2 | TABLE ACCESS FULL| B | 14336 | 182K| 8 (0)| 00:00:01 |
    Note
    - dynamic sampling used for this statement
    Statistiques
    4 recursive calls
    0 db block gets
    63 consistent gets
    0 physical reads
    0 redo size
    555 bytes sent via SQL*Net to client
    396 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    1 sorts (memory)
    0 sorts (disk)
    7 rows processed
    SQL> select /*+ parallel (b,2) */ b,count(*) from b group by b order by b;
    B COUNT(*)
    1 2048
    2 2048
    11 2048
    12 2048
    62 2048
    122 2048
    689 2048
    7 ligne(s) sÚlectionnÚe(s).
    Ecoulé : 00 :00 :00.17
    Plan d'exÚcution
    Plan hash value: 3424792235
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time | TQ |IN-OUT| PQ Distrib |
    | 0 | SELECT STATEMENT | | 14336 | 182K| 7 (43)| 00:00:01 | | | |
    | 1 | PX COORDINATOR | | | | |
    | | | |
    | 2 | PX SEND QC (ORDER) | :TQ10002 | 14336 | 182K| 7 (43)| 00:00:01 | Q1,02 | P->S | QC (ORDER) |
    | 3 | SORT ORDER BY | | 14336 | 182K| 7 (43)| 00:00:01 | Q1,02 | PCWP | |
    | 4 | PX RECEIVE | | 14336 | 182K| 7 (43)| 00:00:01 | Q1,02 | PCWP | |
    | 5 | PX SEND RANGE | :TQ10001 | 14336 | 182K| 7 (43)| 00:00:01 | Q1,01 | P->P | RANGE |
    | 6 | SORT GROUP BY | | 14336 | 182K| 7 (43)| 00:00:01 | Q1,01 | PCWP | |
    | 7 | PX RECEIVE | | 14336 | 182K| 7 (43)| 00:00:01 | Q1,01 | PCWP | |
    | 8 | PX SEND HASH | :TQ10000 | 14336 | 182K| 7 (43)| 00:00:01 | Q1,00 | P->P | HASH |
    | 9 | SORT GROUP BY | | 14336 | 182K| 7 (43)| 00:00:01 | Q1,00 | PCWP | |
    | 10 | PX BLOCK ITERATOR | | 14336 | 182K| 5 (20)| 00:00:01 | Q1,00 | PCWC | |
    | 11 | TABLE ACCESS FULL| B | 14336 | 182K| 5 (20)| 00:00:01 | Q1,00 | PCWP | |
    Note
    - dynamic sampling used for this statement
    Statistiques
    20 recursive calls
    0 db block gets
    115 consistent gets
    0 physical reads
    0 redo size
    555 bytes sent via SQL*Net to client
    396 bytes received via SQL*Net from client
    2 SQL*Net roundtrips to/from client
    8 sorts (memory)
    0 sorts (disk)
    7 rows processed
    SQL>
    4- as we see the resulats are :
    The serial time= 00 :00 :00.03
    The parallel time= 00 :00 :00.17
    the same thing with the cpu cost the serial=11+11+8
    the parallel=7+7+7+7+7+7+7+7+7+5+5
    why was the serial query faster than the parallel query?
    any explanation plz?

    You do not have a valid benchmark - invariable in this case the 1st process does more physical I/O, than the 2nd process. The 2nd process benefits from finding data in buffer cache (no need for expensive and slow physical I/O), courtesy of the 1st process.
    A little computer like you have, is also not the type of server platform where one typically uses parallel processing. It provides a non-scalable I/O subsystem.
    As for how faster parallel processing is, versus serial processing, is like asking the length of an arbitrary piece of string. It varies.
    Parallel processing is usually advantageous the more I/O there is to do. A single process will hit an I/O speed limit, while there is still I/O bandwith available for doing more I/O. Parallel processes will be limited to the same I/O speed - but able to, together, do more I/O per second and push the I/O bandwidth utilisation higher.
    Using too many parallel processes can also result in I/O bandwidth being exceeded - and cause a bad bottleneck and worse performance than a serialised process.
    As for using parallel processing on a mere 14,336 rows? I doubt that this suffices for parallel processing considerations. For example, early hours of this morning on a production db of mine, a PL/SQL process ran a SQL that processed and aggregated 8,030,678 rows into 571,623 rows. Elapsed processing time was 19.35 seconds.
    Parallel processing means scalability - but you need to apply it correctly and you need to have the same scalability in the h/w architecture being used.

  • Why is  my serial number not working, it says it is invalid.  I have checked and it is correct

    why is  my serial number not working, it says it is invalid.  I have checked and it is correct

    The most likely explanation is that you downloaded the Creative Cloud version of Lightroom instead of the standalone version of Lightroom (which you can download from here).
    If that doesn't work, you'd need to provide a lot more details, including version of Lightroom, operating system, and exactly what you are doing that doesn't work.

  • [svn:osmf:] 13916: Added DynamicDRMTrait, Composite Unit tests for parallel and serial compositions.

    Revision: 13916
    Revision: 13916
    Author:   [email protected]
    Date:     2010-02-01 16:42:09 -0800 (Mon, 01 Feb 2010)
    Log Message:
    Added DynamicDRMTrait, Composite Unit tests for parallel and serial compositions.  Bug fixes in CompositeDRMTrait.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/composition/CompositeDRMTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/OSMFTests.as
        osmf/trunk/framework/OSMFTest/org/osmf/utils/DynamicMediaElement.as
    Added Paths:
        osmf/trunk/framework/OSMFTest/org/osmf/composition/TestParallelElementDRMTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/composition/TestSerialElementDRMTrait.as
        osmf/trunk/framework/OSMFTest/org/osmf/utils/DynamicDRMTrait.as

  • Parallel to serial conversion for implementing FSK modulation on fpga

    I want to implement FSK modulation in LABview FPGA using the arithematic VIs. My bit rate is 625 kbps and sampling rate of the waveforms i utilize is 80 MHz.(for 0 i use 1.25 MHz and for 1 2.5 MHz). I want to take AUDIO input from computer and modulate it and then transmitting it into the air. Modulation has to be done in FPGA Vi. Now i want to convert the sample values coming at particular rate to bits (parallel to serial conversion) representing the samples these bits should come one by one at the rate of 625 kbps to select vi which would select the waveform depending on zero or one on its select port. I want to know how parallel to serial conversion can be done in labview
    KAMRAN ZIA
    UNGERGRADUATE STUDENT (AVIONICS)

    Hi Kamran,
    With respect to the first issue, it should be relatively straightforward to generate the signal you want. In your FPGA code, I would assume that you have a sine wave generator. In the configuration screen, you can elect to show the frequency terminal. you can generate a certain amount of data (whatever you require) and then when the FPGA loops again, generate the next section of waveform based on the bit you want to output.
    a few documents on our website include:
    http://zone.ni.com/devzone/cda/tut/p/id/3253
    http://decibel.ni.com/content/docs/DOC-5412
    http://forums.ni.com/t5/Real-Time-Measurement-and/Simple-FSK-signal-generation/m-p/783361?requireLog...
    With respect to the second issue, there are many many ways to do it. I have attached a very basic example which shows you one such option. It takes a U8 (a single byte) and spits out each of the contained bits at 40 MHz.
    Thanks,
    D Smith
    Attachments:
    parallel to serial FPGA.vi ‏26 KB

  • Parallel or Serial ATA 100 hard drive?

    I am upgrading my wife's ibook G4 with a new hard drive but before I purchase one I needed to find out if ibook's use a parallel of serial ATA 100 interface? Thanks

    jonnybegood89, Welcome to the discussion area!
    The iBook uses the parallel ATA drive.

  • Why does my serial key for Photoshop Elements 7 not work?

    I purchased Elements 7 about 4 years ago and am trying to install it on my new computer so I have a basic form of Photoshop until I get a new form of it. Why will my serial code that came with the software not work? I've even copied it directly from my Products and Services account page.

    Error "The serial number is not valid for this product" | Creative Suite

  • Why is the serial number in the email invalid for Elements?

    why is the serial number in the email invalid for Elements?
    downloaded the right software...using the number in the email... no joy!

    Error "The serial number is not valid for this product" | Creative Suite

  • Which SNP table store information about LoadPlan and scenario within it.(parallel or serial)

    I've to query when I save my loadPlan for and scenario within it along with information how those scenario execute either parallel or serial.
    Fetch information even before they start.
    Also can Two scenario or LoadPlan have same name in single work repository.

    You can get the information from repository documentation on oracle support - https://support.oracle.com/epmos/faces/DocumentDisplay?id=1903225
    Names must be unique for load plans, same for scenarios although they can be versioned.

  • Parallel to serial shift register 74LS166

    Hi guys,
    I'm trying to convert a parallel digital data into a serial data. I used 74LS166. Somehow, I got nothing on output pin. Does anybody know why? 
    thanx for helping.

    Hi Sprooch,
    Thank you for posting on this forum.Via the following weblink you go to a page where you can download an example VI for converting hexadecimal-formatted integer data to serial data. This is also called converting parallel data into serial data.
    http://zone.ni.com/devzone/cda/epd/p/id/1629  
    I hope this answers your question.
    Best regards,
    Peter S

  • Printing to Parallel or Serial Port Printers Under Mac OS X?

    Sorry for this slightly off-topic subject, but I don't felt like adding the topic under the Apple Printer Forum.
    I would like to use an Epson Stylus Color II on a G3 running Mac OS X Jaguar, or a G3/BW running Panther. The problem is that Mac OS X does not support printers attached to the serial port, or that the printers are not supported under Mac OS X.
    I have a similar issue with my Laserwriter 310 Select, and Imagewriter.
    I did some investigating and it seems that there is an alternative between (a) using the printers on a Mac running Classic OS; or (b) using GimpPrint, an adapter Parallel-USB, etc.
    The problem is that I have a tight operating budget, and already several Macs running Classic OS. So it would seem reasonable enough to delegate the printing job to those Macs through Ethernet network.
    The (b) solution is appealing because it is more straightforward and provides direct Mac OS X operation, which is handy in case you are printing from Mac OS X applications.
    I would be grateful for your help and advice, both in terms of finance and hardware. Thank you!
    - Frederic.

    Here's an eBay auction item that has a good picture of PhoneNet adaptors:
    PhoneNet adapters
    These are newer Farallons like I have. I have no idea what the "self-terminating locking connectors" are. Maybe Grant knows. Notice that each connector has two phone jacks; you can see the little terminators in a couple of the jacks. These are required if you use only one port. LocalTalk allowed daisy-chaining of computers and devices and that's when you would use both ports.
    Here's a listing for an older style Farallon:
    <a href-"http://cgi.ebay.com/5-Pack-of-PhoneNet-LocalTalk-Adapters_W0QQitemZ300016 248683QQihZ020QQcategoryZ51046QQrdZ1QQssPageNameZWD1VQQcmdZViewItem#ebayphotohos ting">Old Farallon adapter
    I recommend the newer style shown in the first listing; we had some of the old ones at the office quit working. The newer style has been more reliable.
    Here is the AAUI-to-ethernet transceiver (adaptor) for older MAcs with only an AAUI port:
    Transceiver
    I can't find a picture of the Farallon ePrint LocalTalk-to-Ethernet adaptor but the link in my first response shows the currently available unit from Asante. IF you find a Farallon ePrint, make certain it is labeled "LT." There is another with, I think, "SW" that only works with StyleWriter printers.
    A winter windstorm woke me at 3AM so, if any of this looks like gibberish, you know why!
    Allan

  • 9i Query Execution (Parallel vs Serial)

    I have a table (test) containing 1000000 (10 lac) records.
    1) I issued the Query with parallel option "SELECT /*+ parallel (test,4) */count(*) FROM test". The query will use 4 parallel servers to execute.
    2) After this i executed the Query without parallel option "SELECT /*+ parallel count(*) FROM test".
    The execution time of both the queries is same. Why the parallel option is not executing the query will shorter time as compared to serial execution?
    Thanks in Advance,
    Shafiq

    Hi,
    To optimize parrallel query, the number of CPUs is very important. How have you CPU ? If not least 4 CPUs, it's not very recommend.
    Have you make explain plan ?
    explain plan for ....
    and
    @$ORACLE_HOME/rdbms/admin/utlxplp (for parallel query)
    @$ORACLE_HOME/rdbms/admin/utlxpls (for serial quey)
    Is your table partionned ?
    Please post explain.
    Btw, I don't think that for a count(*) parallel query improve performance...
    Nicolas.

  • Why is the serial number not working for my premiere elements 12?

    Can anyone help me with why my serial number is invalid

    You might want to contact Adobe directly (this is a user to user help forum, not Adobe support)
    Select a reason, then click I STILL NEED HELP to activate Premiere Elements chat
    -http://helpx.adobe.com/contact.html?product=premiere-elements&topic=activating-my-product- or-serial-number-issues

  • External FireWire Casing: Parallel and Serial ATA, what's the diff??

    Hello all.
    I plan to get 2x FireWire External Casing and 2x 250Gb ATA Hard Drives seperately. I've done this before but I bought the 2 from the same store which no longer exsist.
    This new FW Casing is similar to what OWC is offering:
    http://www.memoryworld.com.sg/JetDrive/X9Combo400_main.htm
    The specs say "Any single 3.5" Parallel ATA Hard Drive (Desktop size) ATA-6 compatible"
    I saw on a local hardware zone site and there are parallel ATA and there are serial ATA
    So what are their differences?
    So in this case according to the specs, the FW casings would not take (i.e. reject) Serial ATA drives?
    Thanks and cheers

    SATA and PATA use two different sized connectors and have different data transfer speeds. They are not interchangeable.
    There are cases that have SATA connectors on the inside like the AMS Venus, but it is USB and not FW. I have not been able to find a SATA to FW enclosure yet.

  • Why cant my serial

    Hello,
    I have adobe photo cs5.....very old and had to buy a new computer as xp is no longer good...I bought bottom of the barrel as I cant afford anything.  I am trying to download my CD of this to my new laptop and its not doing anything.  I am able to download online  (or so I am thinking) until I get serial number, when I try to enter, it wont take the letters.  Does anyone know why?
    thank you

    Thank you soo much...I was able to copy on to chip, although it keeps showing errors I am able to use it.  I am not able to download onto computer but I think I dont have enough memory as this was the cheapest computer you can find...I thank you greatly as I am hoping to work on a Christmas project and really needed the program...Thank you soo much for your time...God bless and Have a very Merry Christmas and a Happy New Year...and thank you

Maybe you are looking for

  • Open PSDX file in photoshop touch

    Hi, I got myself a tablet with photoshop touch a while ago. Now the tablet is getting really slow, and I want to reset it to factory settings to remove all the accumulated junk. And I would like to keep my images. I don't have a Creative Cloud subscr

  • ServerSocket: Listening on same port with different addresses

    It seems this problem has been gone over before, but with no solution. If I try to set up a pair of server sockets, one on 127.0.0.11:5000 and the other on 127.0.0.22:5000, the second one seems to overwrite the first one. I've been able to accomplish

  • New Superdrive, but lost Airport

    My combo drive died in my Ti Book 800, since my Applecare expired, I bought a dual layer Matshita Super Drive from OWC. The installation went well, but I lost my airport card afterwards. The icon says it's on but the system profiler says it's not. I'

  • Re-install Photoshop elements 2.0

    I've owned and used Adobe Photoshop Elements 2.0 for years until Norton Antivirus un-installed it. All I want to do now is re-install it and it will not let me.  Please help me...

  • Currency Symbol functionality disabled fix

    Post Author: gary.t CA Forum: General Hi Support, Information to help others for future reference.  Using Crystal Reports 9 on windows 2003 terminal services.The currency symbol functionality for a number field wont show if the field is a formula sou