Time of process execution

What SQL or Linux command will give me the time of execution of a query.
'set time on' does not give me the time the process takes in executing but the time it takes for the information to be displayed on the terminal. setting autotrace on does not show me anywhere the time it took to execute the query, but a whole bunch of other info.
Help would be most appreciated.
null

i need the help from you about running the batch file
my application needs to place some native lib in system32 folder while lonching the application
i thought running the batch file for this problem is right solution
can you give some help how to achive (urls)
regards
konkodi221

Similar Messages

  • Knowing the time of Process execution

    I am executing a batch file in Java Code by using the following code,
    Runtime r = Runtime.getRuntime();
    p=r.exec("Dialup.bat ");
    But some time while executing the batch file it hangs up.
    I want to terminate that Process if it runs for more than 15 minutes.
    plz help me out as early as possible
    thks in advanced

    i need the help from you about running the batch file
    my application needs to place some native lib in system32 folder while lonching the application
    i thought running the batch file for this problem is right solution
    can you give some help how to achive (urls)
    regards
    konkodi221

  • JDBC look Up query taking more time to process

    Hi all,
      I am using JDBC Look Up in my project to retreive data from multiple tables.But the problem here is it is taking 10-12 minutes for processing the query which has around 770 records.So my question is there any way that i can reduce the time of processing query.
    Ex:Select EmpId from EmpTable where EmpId>500 and EmpName="Arun"
    Here I have 770 records and it is taking 12 minutes to retreive results.
    Is there any database tuning technique that we can use in JDBC Look up in PI?
    Thanks in Advance.
    Regards,
    Yeshwanth

    >   I am using JDBC Look Up in my project to retrieve data from multiple tables.But the problem here is it is taking 10-12 minutes for processing the query which has around 770 records.So my question is there any way that i can reduce the time of processing query.
    This is happening since you are executing the Query (Select F1 from tablename where segment1='X', segment2='Y',segment3='X1',segment4='Y1',segment5='X2',segment6='Y2') for each record. So, the execution is 770 times in your case, which means it is opening and closing DB Accessor channel 770 times which is basically causing performance.
    Better pass all fields in one Context as input to JDBCLookUP UDF and logically iterate by opening only one DB accessor.
    I am just providing a rough UDF code, so it might not work at first shot. Change it according to your requirement.
    Note: UDF should be advanced in nature (context or Queue)
    Sample Code
    Channel channel = null;
    Map rowMap = null;
    DataBaseAccessor accessor = null;
    DataBaseResult resultSet = null;
    try
              //Determine a channel, as created in the Configuration
              channel = LookupService.getChannel("<BUSINESSYSTEM>","<CHANNELNAME>");// give your service and channel
              //Get a system accessor for the channel. As the call is being made to an DB, an DatabaseAccessor is obtained.
              accessor = LookupService.getDataBaseAccessor(channel);     
    catch (Exception e1)
         e1.printStackTrace();
    for (i=0; i<a.length;i++ )
         //Query = "Select F1 from tablename where segment1='X', segment2='Y',segment3='X1',segment4='Y1',segment5='X2',segment6='Y2'";
         Query = "Select " + a<i> + " from tablename where segment1='X', segment2='Y',segment3='X1',segment4='Y1',segment5='X2',segment6='Y2'";
         try{
                   resultSet = null;
                   //Execute Query and get the values in resultset
                   resultSet = accessor.execute(Query);
                   for(Iterator rows = resultSet.getRows();rows.hasNext();)
                        rowMap = (Map)rows.next();
                        result.addValue((String)rowMap.get(a<i>)); //this statement might not be correct as your query is already fetching F1, so make some adjust in this statement accordingly
              catch(Exception e2)
                   //result.addValue(ex.getMessage());
                   e2.printStackTrace();
    try{
              if (accessor!=null)
                   accessor.close();
         catch(Exception e3)
              e3.printStackTrace();
    Let us know the outcome.......
    Regards,
    Praveen Gujjeti.
    Edited by: Praveen Gujjeti on Jun 29, 2010 10:38 PM

  • OPM Process Execution and OPM Standard Costing for Poultry Business

    I have a business requirement from the client at their Poultry Processing plant where the client feels that the OPM Execution steps are too cumbersome until closing the batches. The client wants to maintain minimum number of batches in Production: one for Primary, one for Secondary and one for Further Processing, rather than having multiple batches based on different formulas. There are 3 main types of processing which can be briefly described as follows:
    A.) Primary Processing:
    Live Birds (Ingredient) become Whole Dressed Chicken with Neck, without Neck, Liver, Heart, etc... (40 Finished Products)
    e.g. Live Birds (Broiler) -> Whole Dressed Chicken with/without neck, Whole Dressed Chicken with/without neck, etc.
    B.) Secondary Processing:
    Only one type of Whole Dressed Chicken (from Primary Processing) become Chicken Cuts (80 Finished Products).
    e.g.[Scenario B1] Whole Dressed Chicken (Broiler) -> Drumsticks, Thighs, Wings, Breasts, Backbone, etc.
    [Scenario B2] Breasts -> Filets and Deboned Breasts (2 FGs)
    [Scenario B3] Thighs -> Thighs in Plain Bag
    Please note that the Whole Dressed Chicken is also sold as a Finished Good as well as an Ingredient for the Secondary Processing.
    C.) Further Processing:
    Chicken Cuts become 40 Finished Products
    e.g Filets -> Chicken Nuggets, Chicken Fries, etc...
    The client is using Standard Costing method for its OPM Financials and all the finished products (160 Products in all) are having different production cost. Please note that 1 kg of Chicken Wings is not equal to 1 Kg of Chicken Thighs. Different body parts have different costs. In order to alleviate the maintenance of multiple batches per day on the production floor, the client wishes to have minimum batches. We therefore would wish if you can confirm the below approach to be correct?
    a.) OPM Process Execution:
    ==========================
    EITHER should I (Option 1):
    a.) Create ONLY 3 Formulas for Primary, Secondary and Further Processing . The 3 Formulas will have all the processing line Finished Products grouped together (as per the scenarios explained above). Formula for Primary and Secondary Processing can also combined together, reducing it to only 2 batches to maintain per day.
    b.) Can set any Quantity Values for the Ingredient, Product and By-Product in the Formula details with ANY Cost Allocation (amounting to a total of '1') in the Products section
    c.) Set the Validity Rules as 'PRODUCTION' for the 3 Recipes
    d.) Complete the steps defined in the 'OPM Cost Management' (as described below)
    e.) Create the 2 or 3 batches and record the appropriate quantities at the end of the day before closing the batches
    OR should I (Option 2):
    a.) Create MULTIPLE Formulas (above 100 formulas) for Primary, Secondary and Further Processing based on the different products processed.
    b.) Can set any Quantity Values for the Ingredient, Product and By-Product in the Formula details with ANY Cost Allocation (amounting to a total of '1') in the Products section
    c.) Set the Validity Rules as 'PRODUCTION' for the 3 Recipes
    d.) Complete the steps defined in the 'OPM Cost Management' (as described below)
    e.) Create the MULTIPLE batches and record the appropriate quantities at the end of the day before closing the batches.
    b.) OPM Cost Management:
    ========================
    Whether (Option 1 or Option 2) selected, the below needs to be set for OPM Costing:
    a.) Define multiple formulas (above 100), as in Option 2.
    b.) Set the Quantity value to be '1' for the Ingredient, Product and By-Product in the Formula details with the appropriate Cost Allocation in the Products section
    c.) Set the Validity Rules as 'COSTING' and 'PRODUCTION' for each Recipe
    d.) Run Cost Rollup at least once so that the products can have an item cost per unit
    As per me, for the purpose of Costing, it would be imperative to have multiple batches (created one time only) with appropriate Cost Allocation in the Formulas and the ‘Recipe Use’ in the Validity Rules should be set as ‘COSTING’. Then, setting Profile Option 'GMF: Use Only Costing Validity Rules for Cost Rollup' to 'Yes'. In this way, we are sure that the different products in the formula with correct Cost Allocation will have their Item Cost calculated after performing the Cost Rollup. AND, for the purpose of operations, we can only one combined formula of Live Birds (as Ingredients) to yield -> All FGs for Primary and Secondary Processing with Cuts. But, this time, the ‘Recipe Use’ in the Validity Rules of the Recipe should be set as ‘PRODUCTION’.
    I want to confirm which approach (Option 1 or Option 2) is more appropriate in terms of Operations and confirm that the above proposed steps are correct with no circular reference (as certain finished products are also used as ingredients for another product in the Secondary Processing)?
    Thanks and regards
    Raveesh Nobeen
    [email protected]
    Edited by: user12189219 on Jan 20, 2010 3:48 PM

    Hi Raveesh
    I am implementing OPM R12 in Poultry Processing business, I think option 1 (Create 3 formulas/recipes/batches) is more appropriate. In my case we are using actual costing (Moving Average) as a costing method.
    I have set the profile option GMF: Cost Allocation Factor Calculation to be "Dynamic" to calculate the batch cost allocations as a ratio of actual quantity of each product produced to the total production batch output quantity and I have used OPM Financial Cost Allocation process to allocate GL expenses on different products based on Fixed percentage % according to product "value" where Filets has a return more than wings.
    Can you please share your knowledge in this business area and confirm to what extend my approach is correct ??
    Thank you and best regards
    Mamdouh Ragab

  • Long time cancel process

    Hello expert,
    I ran a complex sql for 30 minutes, without completing, I aborted it , a message window displayed as " Cancel pending, please wait ( This may take some time)". but till now , 1:21 hrs passed, no sign to stop, will you please tell me why this cancelling process takes some much time? what can I do to get rid of this long time cancel processing?
    Many Thanks.

    Without knowing more details (what was the SQL doing, what application are you using, what is the application doing when you hit the cancel button, what is the database doing and waiting on, etc.), it's hard to say. Among the options
    - Your SQL statement made a number of database changes that need to be rolled back and that is a generally slow process
    - Your application isn't actually going to send a request to stop the execution of the SQL statement until the first rows are returned
    - Your application has hung and Oracle isn't doing anything
    Justin

  • 5. We need additional time to process your transaction You should get an email from us by next business day. If you don't hear back from us, you can check your order status on your account page or call us at +1 800-585-0774. If you're not in North America

    Step 5.
    5. We need additional time to process your transaction You should get an email from us by next business day. If you don't hear back from us, you can check your order status on your account page or call us at +1 800-585-0774. If you're not in North America, you can look up a local number here. For now, check out all the great free features of Creative Cloud! Get started with trials
    I keep getting this.
    The Bank and Paypal states that Adobe needs to process my transaction twice.
    I have no order number/ no status nor contact from Adobe. I called customer service and he transferred me to sales where the phone rang with no answer.

    Since this is an open forum, not Adobe support... you need to contact Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

  • VB Macro in Bex Analyser is taking long time to complete execution

    Hi Experts,
    In a FI query , we have a VB macro which update the excel sheets by taking values from the previous excel sheets .
    The issue is its taking long time for query execution and if we are keep on pressing 'ENTER' button . The query is running very fastly and is giving the results ,but its not a correct way to do.
    Its a critical issue in Production and can anyone help me to resolve the issue.
    Regards,
    Anju

    Hi Anju,
    I need to create a VB macro in one of my query but i not familiar how i can plug the VB code into the query.
    Please can you give me some basic procedure on how to do that?
    What i need to do exactly is to bring a KF from a query into another query. Not sure if this is possible using VB.
    Let me know.
    Thanks.
    Cesar

  • Use web service to invoke a new process execution

    Hello,
    I'm using BPM 10g3, and i'm trying to invoke a fully automated process via a web service
    I've setup my web service http://<host>:<port>/albpmServices/<engine name>/ws/<process name>ServiceListener?wsdl
    I've accessed it from a C# application i wrote and visual studio did identify my functions and such.
    I can successfully start a new session (startSession(string password ,string username) and i get a sessionID back) with the web process.
    but when im trying to invoke my own function (which is defined in the Process web service as a Process Execution on my beginIn parameters) I get a response with a FaultException with no visible error code.
    In the BPM log I can see the folloowing lines:
    1) Invoking service with id:<Process Name>ServiceListener
    2) Executing item: IMMEDIATE Inst [-1, -1,-1] Act [No activity] Proc [No Process] Due 1318860646000000]
    3) TransactionAction: Rollback!
    while the TransactionAction: Rollback! means that something bad happened, i cant see the reason.
    any idea's?

    OK i've got it working.
    I did all the things you suggested before but when you said i need to see that the right activity is being started i understood what's wrong
    The chosen activity must be in a lane with the same role as the user login in to the session.
    So i added a role on Begin and created a participent for that role, logged in with it and now it works =)
    Edit: I'm the same guy that opened the threqad, just needed to make a new user for enterprise support (didn't get to use that though)
    Edited by: 891957 on 23:59 17/10/2011

  • Background job is taking lot of time for processing the job.

    One background job - which is processing Idocs is processing a job for more than 2000+ seconds.. and completed tho.
    But this is happening for the past few days.. is there any way to trouble shoot, or find from any logs of this completed job, to find out why it was taking lot of time for processing.
    Can you please tell me the steps of analyzing / trouble shooting why it was taking lot of time daily.
    Regards,
    Satish.

    Hi Satish,
    Run DB stat from db13 it will improve the performance.
    Check number of idocs. You can send part by part, instead of sending huge data.
    Check SM58 logs
    Suman

  • Design Time for Processes and Forms

    Hi experts,
    When trying to open  "Design Time for Processes and Forms" in order to create a process, I get a dump.
    Could you let me know what could be wrong ? config? etc..
    Hereunder is a sample of what I found in T.code ST22
    The following checkpoint group was used: "No checkpoint group specified"
    If in the ASSERT statement the addition FIELDS was used, you can find
    the content of the first 8 specified fields in the following overview:
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
    " (not used) "
        referenced node must exist
          READ TABLE object_hierarchy_nodes TRANSPORTING NO FIELDS
                     WITH KEY node_id = object_hierarchy_node_wa-ref_node_id
    >>>      ASSERT sy-subrc = 0.
        ENDIF.
      provider has to be specified (except in case of recursion)
        IF object_hierarchy_node_wa-ref_node_id IS INITIAL.
          ASSERT object_hierarchy_node_wa-provider_id IS NOT INITIAL.
        ENDIF.
    Thanks in advance,
    Louis

    note: Note 1075650
    Re: Assertion_Failed dump when accessing Design Time for Processes & Forms EP3
    regards,
    Prakesh.

  • Unable to find consolidate field in Time off Process application

    Hi All,
    I create an aplllication for Time off process and unable to find "consolidate" field when selecting set up block parameters .I am using portals EP 7.0 Version
    Could you please help me in getting this ...
    Thanks ,
    Nararaju.

    Hi,
       we group parameters so that the output of process actions is automatically entered as input .We can consolidate parameter at Action,block adn process levels
    follow the below steps
    1. Select your Seq Block and click on the tab "Parameters" at the bottom pane
    2. Mark all the parameter (press ctrl for multiple ) and Click on Map
    3. Supply the Name and say create
    at last do a SavaAll
    hope this will solve ur problem
    cheers
    souza

  • Batch number coming automatically at the time of Process order release

    Hi All,
    I want the system generated batch number for header material to come automatically at the time of process order release.
    At present ,the batch number is entered manualy dering process order creation.
    Can anyone pls guide abt the settings required for the same

    Dear,
    Define the  production scheduling profile CORY then
    Auto Batch Creation = 2 On release.
    Then assign this to your FG or SFG materials in work scheduling view in material msater MM02. Then create new order and check.
    Now for automatic generation i have to set internal number asignment for batches.
    Batch will create for movement type say 101 SPROLogistics - GeneralBatch mangment--Creation of New Batches --Define Batch Creation for Goods Movements. so it will have same logic in MM for 101 GR against PO will be internal number range but no effect in SD.
    Regards,
    R.Brahmankar
    Edited by: R Brahmankar on Mar 12, 2010 12:40 PM

  • How to keep waiting time between processed messages !!

    Hi Folks,
    I have got one scenario required waiting time between processed messages. The problem as follows !!
    File --> Proxy scenario. I receive 15 messages from sender side (same messages structure) so working with one interfaces. File picking and transforming this message and split into 2 messages. messages are receiving to receiver. I am using BPM with 7,8 steps like receiving step, block , message transformation step , internal block 1 for sender 1, internal block 2 for sender 2.
    All things are working fine, messages are going to receiver properly. But customer requirement is , wait step required between processed messages before sender1. I have put wait step still, PI picks all messages in one shot processing and waiting for 2 minutes, after 2 minutes sending all messages at the same time, this process is not working.
    I have tried with wait step in mapping (Sarvesh) given excellent idea, still PI works the same way.
    Can someone please explain a bit why the messages or not waiting message by message. I am using EOIO with Queue name and file process mode "BY NAME" and I have tried "BY TIME" as well. I have given priority to this Queue. On BPM Queue assignment : One Queue.
    Please I am expecting positive answer !!
    Many Thanks in Advance
    San

    Hi Rudolf Yaskorski ,
    Not sure about your PI release and BPM model, do you create separate process instance for each file, or do you process files collecting them in one single instance? Are you using parallelization within your ccBPM ?
    I am using serialization, I don't think bpm can do Parallization until PI 7.0, but PI 7.11 has got has queue assignment. But I am using one queue. This must be serialization.
    To me it looks like your issue is not in ccBPM but rather more in polling files (as per your post file CC polls all 15 files in one shot). So if you wish to poll the files not at the same time some workaround is required. Possible options you could check out:
    A. Either implement "wait" in your mapping based on file name or other criteria (e.g. directory name). Check out if respective BPM instances are really created at different times.
    I have used wait step in mapping. These 15 messages has to go through one interface. So I am using one interface. But I have checked mapping process time in all messages on receiver system. Shows same timing, even though I put 40000 ms waiting time in mapping.
    B. Try polling different files (or use different directories) with different channels and coordinate starting / stopping of your channels by scheduling availability for each CC in RWB. E.g. you poll file 1 with CC 1. You start 2 minutes later CC 2 and poll file 2. And so on.
    I am not clear about this . On BPM waiting step is working and it keeps wait all messages, which are coming through one interface. Then it releases all messages at the same time.
    I don't know how to resolve this. I have tried with Transport acknowledgment, but all messages are going to reciver system waiting at receiver system in priority queue and processing in EOIO, but taking so long. Rather all messages go and sits in queue, I want to stop messages by message with 2 minutes time gap. How please?
    Kind Regards
    San

  • How to handle the One-Time Customer Process (Customizations - Master Datas)

    How can we handle the processes of one time customers (for example sales from a store without a warranty process fort he products)? Iu2019m planning of creating a different sales document type and use a single customer number for all of the documents created. On the other hand SAP has a solution for the one-time customers but I donu2019t know its details. Can anybody explain me the standard one-time customer process of SAP (the needed customizations and the master datas to be created)?
    Thanks in advance for the answers....

    Hi..
    the one-time customer is an account group (CPDA) that is used for "walk-in" or "cash" buyers. although this account group can be used for regular sales orders, this is intended to be used with the Cash Sales type of sales documents, where no accounts receivable is created. you also need the one-time customer as a "dummy" and avoid creating many customer masters for buyers who may only do one transaction with your company.
    when you use the one-time customer account group in the Cash Sales order, you enter the one-time customer number in the sold-to party field. the system will then prompt you to enter the actual name (and address) of the buyer. you can have the option of generating SD reports with the real names of the customers.
    you create the one-time customer the same way you do with the regular Sold-to party. there are some differences, in the sense that this is a "dummy" account. you do XD01 or VD01 to create the account, choosing account group CPDA. you also make entries in the sales areas.
    Regds
    MM

  • Create Adobe Form using Design Time for Processes and Forms

    Hi all,
    I am trying to create a form that have 3 fields:
    1. pernr
    2. ename
    3. effective_date
    I done all the necessary setup of BADI ,class, interface and form.
    I need the step to step guide where you create the adobe form using the Design Time for Processes and Forms. Anyone have any idea?
    Edited by: Siong Chao on Jan 3, 2011 4:54 AM
    Edited by: Siong Chao on Jan 3, 2011 5:00 AM

    Hi,
    I couldn't get to your query..
    What do you mean by step by step procedure for a design time & process for forms.
    if you are a beginner and looking for basic examples to implement adobe forms there are lot of them in SDN, please search them.
    let me know if your query was a very specific one.
    Cheers,
    Sai

Maybe you are looking for

  • Erro message when syncing with itunes

    i can't syncing iphone with itunes, then i choose store > authorize this computer i did that, but i can't sync my phone pls help me.

  • Re:Center wise report urgent

    Hai Experts, For FS10N is there is any option to see by Cost Center and Profir Center wise please let me know urgent same for T.code - F.01 and F.08 also. Helpful answer will be assign full points. Thanks in advance, KUMAR.B.

  • Need help importing

    rightyo, well basically i have 2 comps, one with itunes that is connected to the ipod with all the music on it, and the other with itunes and no music. how do i get all the music from the first to the second computer? ive got the full ipod connected

  • Logo in report

    Hi How to print a logo in any  program?? If possible give me sample code also plz Helpfull points will be rewarded Regards Pavan

  • Oraclce 9i Installation in Vista Home Basic

    Please let me know is there any Oracle 9i version that could install in Vista Home Basic.