How to monitor parallel processing

Hi All,
I have 2 short questions:
1. When we want parallel processing, we can either use a parallel hing in the query, or alter a table to be parrallel. My question is what is the difference in the following 2 syntax:
a. ALTER TABLE myTable PARALLEL (DEGREE 3);
b. ALTER TABLE myTable PARALLEL 3;
Does the "DEGREE" keywor make any difference? or they both are same statements?
2. When we enable parallel processing, how can we monitor oracle processes, to confirm that a certain table is being actually processed by multiple threads of a singe user process?
An early response would be highly appreciated. Thanks.

user566817 wrote:
2. When we enable parallel processing, how can we monitor oracle processes, to confirm that a certain table is being actually processed by multiple threads of a singe user process?There are a number of virtual performance views that can be used. Please refer to the Oracle® Database Reference guide for details on these.
Had a look though my scripts and I have this one.. cannot recall if I "borrowed" it from somewhere and customised it and how old it is.. but it should (hopefully) still be mostly correct. It uses the virtual view v$px_process to determine the list of current PQ slaves in the pool and if they are used, map them to the Oracle session using them.
select  distinct
        x.server_name           as "PQ",
        x.status                as "Status",
        x.sid                   as "OraPID",
        w2.sid                  as "Parent OraPID",
        v.osuser                as "O/S User",
        v.schemaname            as "User",
        w1.event                as "Child Wait",
        w2.event                as "Parent Wait"
from    v$px_process    x,
        v$lock          l,
        v$session       v,
        v$session_wait w1,
        v$session_wait w2
where   x.sid =! l.sid(+)
and     to_number (substr(x.server_name,3)) = l.id2(+)
and     x.sid = w1.sid(+)
and     l.sid = w2.sid(+)
and     x.sid = v.sid(+)
and     nvl(l.type,'PS') = 'PS'Use at own risk - best would be to verify that this is still valid using the Reference Guide. Or create similar ones using the available V$ views for the details you want to see (e.g. SQL statement executed per PQ, etc).

Similar Messages

  • How to do parallel processing with dynamic internal table

    Hi All,
    I need to implement parallel processing that involves dynamically created internal tables. I tried doing so using RFC function modules (using starting new task and other such methods) but didn't get success this requires RFC enabled function modules and at the same time RFC enabled function modules do not allow generic data type (STANDARD TABLE) which is needed for passing dynamic internal tables. My exact requirement is as follows:
    1. I've large chunk of data in two internal tables, one of them is formed dynamically and hence it's structure is not known at the time of coding.
    2. This data has to be processed together to generate another internal table, whose structure is pre-defined. But this data processing is taking very long time as the number of records are close to a million.
    3. I need to divide the dynamic internal table into (say) 1000 records each and pass to a function module and submit it to run in another task. Many such tasks will be executed in parallel.
    4. The function module running in parallel can insert the processed data into a database table and the main program can access it from there.
    Unfortunately, due to the limitation of not allowing generic data types in RFC, I'm unable to do this. Does anyone has any idea how to implement parallel processing using dynamic internal tables in these type of conditions.
    Any help will be highly appreciated.
    Thanks and regards,
    Ashin

    try the below code...
      DATA: w_subrc TYPE sy-subrc.
      DATA: w_infty(5) TYPE  c.
      data: w_string type string.
      FIELD-SYMBOLS: <f1> TYPE table.
      FIELD-SYMBOLS: <f1_wa> TYPE ANY.
      DATA: ref_tab TYPE REF TO data.
      CONCATENATE 'P' infty INTO w_infty.
      CREATE DATA ref_tab TYPE STANDARD TABLE OF (w_infty).
      ASSIGN ref_tab->* TO <f1>.
    * Create dynamic work area
      CREATE DATA ref_tab TYPE (w_infty).
      ASSIGN ref_tab->* TO <f1_wa>.
      IF begda IS INITIAL.
        begda = '18000101'.
      ENDIF.
      IF endda IS INITIAL.
        endda = '99991231'.
      ENDIF.
      CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
          pernr           = pernr
          infty           = infty
          begda           = '18000101'
          endda           = '99991231'
        IMPORTING
          subrc           = w_subrc
        TABLES
          infty_tab       = <f1>
        EXCEPTIONS
          infty_not_found = 1
          OTHERS          = 2.
      IF sy-subrc <> 0.
        subrc = w_subrc.
      ELSE.
      ENDIF.

  • How to monitor RFC processing in XI

    Hi Friends,
    In the IDoc to RFC scenario please tell me How to monitor RFC processing in XI..
    Thanks and Regards
    Sri

    Sri,
      You can monitor in SXI_MONITOR/SXMB_MONI. If its Syncronous then u can see the request and response messages in the above mentioned transaction.
      To get more details you can go for RWB and select ur message and check for audit log's.
    Best regards,
    raj.

  • How to enable an monitor parallel processing in Oracle

    Hi All,
    I have 2 short questions:
    1. When we want parallel processing, we can either use a parallel hint in the query, or alter a table to be parrallel. My question is what is the difference in the following 2 syntax:
    a. ALTER TABLE myTable PARALLEL (DEGREE 3);
    b. ALTER TABLE myTable PARALLEL 3;
    Does the "DEGREE" keywor make any difference? or they both are same statements?
    2. When we enable parallel processing, how can we monitor oracle processes, to confirm that a certain table is being actually processed by multiple threads of a singe user process?
    An early response would be highly appreciated. Thanks.

    1)The parallel clause lets you change the default degree of parallelism for queries and DML on the table.
    2) PARALLEL DEGREE specifies the number of query server processes that can scan the table in parallel. Either specify a positive integer or DEFAULT which signifies to use the initialization parameter
    check further http://mywebsys.com/oracle/syntax/view_syntax.php?id=23
    Thanks

  • How to achieve parallel processing in a single request?

    Hi all,
    I have a method in a Session EJB that will perform some business logic before it returns an answer to the client. The logic it will perform is to collect data from the applications database and two external systems, before sending all data to a third external system to get a response and send it back to the client. Each external system is quite slow so I would like to do all the collecting of data concurrent, parallel processing. How should I handle this? I'm not allowed to create my own threads in EJB's. Can I use MDB in some way? To the calling client this should be a synchronous call...
    Greatfull for any suggestions
    Cheers
    Anders =)

    Usually, the request is received by a component located in the web container, such as by an HTTP request (including Web Services). This component is able to start threads to allow parallel processing. Now, if for some reason the request arrives directly at EJB level and that you cannot move its receiver to web component, I think JMS is not a viable solution because you will switch to asynchronous processing and you have no way to make your EJB wait for the responses while preserving the client request (waiting implies programmatic life cycle management, which is forbidden in EJB container). Maybe a resource adapter (JCA) can bring a solution. A resource adapter acts as a datasource (a datasource is a specialization of a resource adapter) and thus it is a logical way to implement an adapter to an external, eventually non-J2EE, resource, as the name implies :) But I don't have enough knowledge in JCA to be sure of this.
    Hope it helps.
    Bruno Collet
    http://www.practicalsoftwarearchitect.com

  • How to retrieve parallel process info (aRFC)

    Hi guys , I have a program that calls 2 RFC-enabled function modules and runs them in parallel. To my knowledge, each function modules is assigned with a unique task id when performing parallel processing.
    My question is, how do I retrieve the information on the individual process such as task name and its duration?
    say
    call function 'Z_XXX' starting new task 'A' performing 'Z_FUNC'  on end of task.....
    and
    call function 'Z_XXX' starting new task 'B' performing 'Z_FUNC'  on end of task .....
    then execute these functions and let it runs for a while, then how do i retrieve the task name of each process programmatically (A and B)?
    sorry I'm still pretty new when it comes to ABAP
    edit:-
    somehow my previous question was removed along with replies
    Edited by: afro100 on Aug 27, 2009 1:51 PM

    Hello,
    You can use following function module to get the id of transactional processing.
    CALL FUNCTION 'ID_OF_BACKGROUNDTASK'
    * EXPORTING
    *   DEST          = ' '
    * IMPORTING
    *   TID           =  --> collect ID from this varaible
    *   FNUM          =
    and for reteriving status you can use:
    CALL FUNCTION 'STATUS_OF_BACKGROUNDTASK'
      EXPORTING
        tid                 =
      tables
        errortab            =
    * EXCEPTIONS
    *   COMMUNICATION       = 1
    *   RECORDED            = 2
    *   ROLLBACK            = 3
    *   OTHERS              = 4
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Hope this helps!
    Thanks,
    Augustin.

  • How to monitor / shutdown processes and users?

    Hi,
    As you can see in my previous post i'm totally new to Arch and fairly new to Linux...
    Here's one thing that bothers me: I don't know how to keep track of all running processes (and end them if needed... I guess you need to 'kill' them but you first need to know their name, right...) and logged on users (even though that's only me, heh...)
    How can you do that in Linux? (something like task manager or another admin tool - or a command line version)
    Another thing... I think a wiki page 'securing the default Arch install' would be helpful...
    (flame me if there already is one, but I didn't find it )
    greetings,
    d.
    (I think Arch is going to be the one Linux distro to break the record of 1 month installation on my pc... woohoo!!!)

    Kern wrote:
    processes man ps
    Now only 2 questions are left: how to monitor logins, and how to secure Arch Wink
    Arch Wink, is this a subrelease of Arch? if so i've never heard of it. 
    I really don't know how that ended up in my post especially because I use semicolon, bracket instead of colon, wink, colon for my smiley...
    but as relates to securing Arch, of course I mean against network based attacks. The way you would try to secure Windows. I know how to own windows computers when I have physical access to them, and I guess it's the same thing with Linux pc's... but I want to feel secure that nobody from the internet is going to appropriate my box for illegal or other things, on those few occasions that i'm not behind a router/firewall (which I am not sure I trust either... it's a Linksys wireless/wired router with integrated firewall capability. How secure is that? I don't know!)
    Is there no way to deny all other pc's access to this pc? It's a laptop, not a server, so nobody has business accessing it remotely anyway... Actually, this is one of the reasons I had an eye on openBSD secure as hell...
    EDIT: since we're at it... another thing I don't find is how I can find out at what speed my cpu is running... is it going down to 600 MHz when Idle or isn't it? etc... That stuff is pretty easy to see in windows... must be feasible at least in Linux hey

  • How to monitor BPEL process..? i want to see HTTP request message..

    Hi all,
    Is there any way to monitor BPEL process. In Jdev there is tool call
    HTTP analyzer but it only monitors process which are invoked from Jdev.
    Like Java webservices can monitored via that tool. But i want to monitor BPEL
    process. I want to see Http request message. It that possible.?
    thanks a lot.
    /mishit

    Any requests you want to monitor should be routed through obtunnel. So the webservice that calls your bpel process should use the url of the machine where obtunnel is located, and obtunnel should be configured with the details of the machine where the bpel process is located.
    also, you may find this thread of interest How to capture SOAP message using TCP Monitor in JDev?

  • How to manage parallel processing for queue JMS/MDB?

    Hello, we are developing a system in WebLogic Server 10g (10.3.0) that contains multiple JMS queues associated with each in an MDB. We need know how manage the parallelism of the message for each queue? for example:
    Queue 1: up to 4 messages in parallel
    Queue 2: up to 2 messages in parallel
    Queue 3: up to 5 messages in parallel
    Can also perform this configuration from the WebLogic Server Admin Console?
    Thank you very much,
    Lucas.

    Thanks a lot Tom for the reply, I have read about the descriptor setting 'max-beans-in-free-pool' and I searched this concept at the Administration Console without success.
    I suppose other way is create a “Session Pools” under the JMSServer, and then create a “Consumer” and define the setting “Messages Maximum”. One of the disadvantages is that “Session Pools” don’t support JTA, from the documentation:
    +Session pools enable an application to process messages concurrently. Session pools are now used rarely, as they are not a required part of the J2EE specification, do not support JTA user transactions, and are largely superseded by message-driven beans (MDBs), which are a required part of the J2EE specification.+
    I continue reading the MDB chapter of the performance and tuning guide in the documentation, thanks for any contribution to the topic.
    Lucas.

  • How to enable Parallelism process in 10.1.0.5 database

    Hi All,
    We have oracle database 10.1.0.5 running in windows 2003 server.
    I am trying to enable parallelism process in the database by including the following init parameters
    PARALLEL_AUTOMATIC_TUNING
    PARALLEL_SERVER
    PARALLEL_MIN_SERVERS
    PARALLEL_MAX_SERVERS
    But while i am trying to bring the database i am getting an error message like these parameter has been deprecated.
    Could anyone help me to enable parallel process in 10g database.
    Thanks in advance.
    Regards
    Aruna

    >
    I am trying to enable parallelism process in the database by including the following init parameters
    PARALLEL_AUTOMATIC_TUNING
    PARALLEL_SERVER
    PARALLEL_MIN_SERVERS
    PARALLEL_MAX_SERVERS
    But while i am trying to bring the database i am getting an error message like these parameter has been deprecated.
    >
    PARALLEL_AUTOMATIC_TUNING is deprecated since 10g. It's always true now. PARALLEL_SERVER is related to OPS (prior to RAC) and long time deprecated.
    You enable parallel query with an ALTER TABLE statement like
    SQL> ALTER TABLE SALES PARALLEL;or with a hint like
    SQL> select /*+ parallel(sales) */ * from sales;Kind regards
    Uwe
    http://uhesse.wordpress.com

  • How to Monitoring Index process by Dynamo?

    Hello all,
    how can i monitor the build index process by Dynamo?
    i'm using
    ATG Search 10.0.3
    Tks
    regards

    With ATG Search, you can monitor indexing from the Search Admin console (the same place one creates ATG Search projects and sets up content sources).
    I believe that the BulkLoader and IncrementalLoader also have status information that is visible in the /dyn/admin, so you might see if anything appears there while an index is running.
    Or were you talking about monitoring progress from code or something?
    BTW, I don't believe that most of the logDebug during Indexing happens in the IndexingOutputConfig, so I suspect that setting logDebug there is unlike to have a huge effect. You might try setting loggingDebug on BulkLoader and/or IncrementalLoader, but that might be more detail than you want.

  • Which v$ views can I use to monitor parallel process?

    Hi All,
    The DB version is 11.1.
    I ran one sql in parallel. And I got the session id for this session.
    But when I referred to v$px_session, v$px_process, or even v$sql_monitor with this session id, I got nothing from those views.
    The exectuion plan showed it used parallel exectuion.
    Could anybody tell me what's wrong with my approach? Or this means that my sql didn't use parallel at all?
    Best regards,
    Leon

    Hi Hemant and all,
    The interesting thing I encountered these days is although the v$px_session didn't show any slaves, it seemed the query was executed in parallel.
    The evidence is: I ran the same sql with and without 'alter session disable parallel query' alternately. The reponse times are stable and quite different.
    I have tested another method to check slave processes, that is:
    1. To get the sql_id from v$session where sid = my_session_id.
    2. To check how many sessions in the database, by select * from gv$session where sql_id = sql_id_from_step1
    Both of the ways show no slave processes for my query.
    Does anybody know why it seems that the query was executed in parallel but no slaves sessions?
    best regareds,
    Leon

  • How to monitor a Process Server or a Queue?

    Hi
    We are using Redwood CPS as our Enterprise Scheduler.
    In the recent months, the below issue has happened twice.
    The error message I could read in the Redwood Process Server Log is below
    JCS-116011: Permanent communication failure: Unknown Host : HOST.domain.com
    I am not sure what breaks the connection.
    Two Questions that run in my mind:
    1. Does this issue directly relate to any known issue anyone aware of?
    2. How do I setup monitoring on the Process Server or a Queue so that when they go down I get an e-mail or something at least?
    Can someone guide me please?

    Build M33.106 is not available in service market place yet.
    SAP informed that customer can not find information on the next build release date from Product Availability Matrix (PAM) or anywhere from SAP site.
    Is there a way to get his information from Redwood site? Like when is the expected date for next release of the build?
    Thanks
    Nanda

  • How to implement parallel processing in oracle.

    Hi Gurus,
    In one our procedures we are calling 7 procedures internally. We want to execute them parallely insted of sequentially.
    Please help me to resolve this issue.
    thanks in advance...

    Hi,
    You have dbms_job package in Oracle 9i and dbms_scheduler from Oracle 10g.
    Though you can run all these procedures parallel submitting via dbms_job, any exception/error out in any of these procedures need to be handled explicitly. Just be aware that once you submit these jobs, your application loses control of the execution and you have to build a whole infrastructure for rerun in case of an exception(log/exception tables, monitoring application to periodically check the exception tables, alerts from procedures in case of an exception and so on ...)
    It's going to become more complex if you have any dependencies between these procedures.

  • BDLS - How to monitor the process?

    Dear All,
    I am running the BDLS sessions in Background (excluding the known huge tables) now in my Testing System just after the system refresh activities from Production to the Testing.
    The BDLS sessions run more than 22 hours (still in progress now ) , may I know where ( which tcode ) I can see the progress of the BDLS?
    I've tried to check in Txcode SM50, the BGD process performing a sequential read on a table for more than 8 hours...Is it possible hang in somewhere ? May I know how to determine if the BDLS is 'hang' ?
    FYI, the table size that the BDLS running on is around 140GB..
    Best Regards,
    Ken

    Dear Raja,
      the log i get from BDLSS shows the table processed until :s
    CATSHR                    EXTSYSTEM                           0
    LOGSYS                              0
    CATS_BW_TIME              I_RLOGSYS                           0
    CATS_GUID_KEY*            EXTSYSTEM                           0
    CBPR                      LOGSYSTEM                           0
    CC1ERP                    SRCSYS                              0
    CCMCTIADMIN               LOGSYS                              0
    Dear sekhar,
    Do you meant the job log from SM37 ? :
    22.02.2010 09:59:19 Job started                                                                         00
    22.02.2010 09:59:19 Step 001 started (program RBDLSMAP, variant &0000000000000, user ID BASISADM7)      00
    22.02.2010 09:59:19 The new logical system name T00CLNT300 is assigned to the current client 300        B1
    Edited by: Wei Jian Kwan on Feb 24, 2010 1:00 AM

Maybe you are looking for

  • HT1926 Failure to install- Service Apple Mobile Device failed to start

    While installing I receive this message, "Service 'Apple Mobile Device' (Apple Mobile Device) failed to start.  Verify that you have sufficient privileges to start system services."  How do i do that?!

  • How to create a custom reportclass as a copy of HRFR0002

    Does anybody know how i can copy reportclass HRFR002 to a custom reportclass in which i want to include the selection button Org structure. All reports are using LDB PNP. Thanks in advance Richard

  • Update form problems

    Hello,  I've re-done the update form several times and still get the same issue.  I get the correct data from the database in the form fields. I use the server behavior panel to set the update info and everything looks good.  It recognises the primar

  • SOAP Requst from BW to XMLA

    HI    Iam very new to this topic.... How to send SOAP request to BW and get back data in XML format using XMLA for Analysis Thanks In Advance Guruva

  • OPatch failed with error code 73 while applying patch 5191377

    hi, while applying patch 5191377 i got the following error Oracle interim Patch Installer version 10.2.0.1.0 Copyright (c) 2005, Oracle Corporation. All rights reserved.. Oracle Home : /U00010.00/Grid/db10g Central Inventory : /etc/oraInventory from