How to Identify the current step in execution

Hi,
My merge query takes a long time to run. I monitored the session and it was doing a full table scan and it registered as a long-operation. Now thats finished and it goes off to do whatever else it needs to do.
How do I know whats its executing at any given point in time? I want to know what it scans / writes next and what object its scanning. In other words, I want to know which step of the execution plan is it currently executing.
Is there a way of identifying this? Any V$ views which provide this information?
Thanks in advance,
K

Will tracing the session tell me where it is
currently?Tracing the session generates a file on disk with all the various waits in it. Generally, you would analyze that trace file at the end of the process to see where the time was spent. In theory, I suppose that it may be possible to watch that trace file and deduce what step the query was on. It's far from obvious to me, though, that this would be particularly practical-- the trace file grows pretty quickly and isn't particularly trivial to read, particularly in real time.
Justin

Similar Messages

  • How to identify the current lead selection is child or parent in rec node

    Hi
    I am using a recursive node to populate a table with TreeByNestingTableColumn as master column. Now my problem is how do I identify if the current selected row in the table is a child or parent? When I get the lead selection value, I find that its the same for the parent and the child. I am setting the isLeaf and hasChildren boolean properties appropriately as false and true for parent and true and false for child. But since the lead selection is returning the same the below rsTableElement always gives me the parent, I always get those parameter values as that of parent. I am writing this inside the onleadSelect event of the table.
    IRsTableElement rsTableElement = (IRsTableElement) wdContext.nodeRsTable().getElementAt(wdContext.nodeRsTable().getLeadSelection());
    In this scenario how do I know if the current selection is made on a child?
    Appreciate for all help and any code snippets.
    Thanks,
    KN.

    Hi KN,
    I guess you want to check if the node that you selected is parent or child.. This can be achieved by using getTreeSelection() method of IWDNode.
    If you write following code in your lead selection action, you can determine the if it is a parent or child node.
    wdComponentAPI.getMessageManager().reportSuccess(wdContext.nodeRsTable().getTreeSelection() +"");
    the output will be something like
    <ViewName>.RsTable.0.ChildRsTable.1.ChildRsTable.0.. depending upon which node you have selected.
    That way you can find out if it is a parent or child node.
    Abhinav

  • How to identify the current display configuration from registry?

    I wanted to read the current configuration of display from registry. Suppose, a dual output system is configured with "Extended these displays" settings then i want to know where in registry this information will be stored?
    I tried to get the info from 
    1. HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\VIDEO which gives only the display devices being registered in the system.
    2. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Video which has multiple guid tags and then multiple subkeys.
    3. HKEY_CURRENT_CONFIG\System\CurrentControlSet\Control\VIDEO which has multiple subkeys.
    Unable to get the right registry for this case. when multiple displays connected, then i want to know whether it is configured as extended/duplicate. 
    Please guide me if it is possible.

    There is no direct way for getting the monitor count. we need to code for each graphic card separately. 
    i found a way like below, for those of you interested in getting the exact monitor count:
    int ComputerInfo::GetRegistryValue( CSString regPath, CSString valueName, int cntIndex )
    int monCount = 0;
    BYTE pBuffer[1024];
    DWORD nMaxLength;
    CSString szSubKey = regPath;
    szSubKey = szSubKey.substr(18);
    CSString szValueName = valueName;
    DWORD rc;
    DWORD dwType;
    HKEY hOpenedKey;
    LOG_INFO ( "Registry key " << szSubKey << "\\" << szValueName );
    if( ERROR_SUCCESS == RegOpenKeyEx (
    HKEY_LOCAL_MACHINE, // handle of open key
    szSubKey, // address of name of subkey to open
    0, // reserved
    KEY_READ, // security access mask
    &hOpenedKey // address of handle of open key
    rc = RegQueryValueEx(
    hOpenedKey,
    (const char*)szValueName,
    0,
    &dwType,
    (LPBYTE)pBuffer,
    &nMaxLength );
    if( rc != ERROR_SUCCESS )
    LOG_INFO ( "Registry key " << valueName << " not found." );
    monCount = 0;
    else
    LOG_INFO ( "Monitor Count: " << CSString(pBuffer[cntIndex]) );
    monCount = pBuffer[cntIndex];
    RegCloseKey( hOpenedKey );
    else
    monCount = 0;
    return monCount;
    int ComputerInfo::GetMonitorCount()
    int fResult;
    fResult = GetSystemMetrics(SM_CMONITORS);
    LOG_INFO( "Video Output Count from System: " << fResult );
    if ( fResult == 1 )
    // I need to get the address of a few multi-monitor functions
    HMODULE user32 = GetModuleHandle ("User32.DLL");
    typedef BOOL WINAPI tEnumDisplayDevices (void*, DWORD, DISPLAY_DEVICE*, DWORD);
    tEnumDisplayDevices* fEnumDisplayDevices = (tEnumDisplayDevices*) GetProcAddress (user32, "EnumDisplayDevicesA");
    if (fEnumDisplayDevices == NULL) return false;
    // count the number of monitors attached to the system
    DISPLAY_DEVICE dd; dd.cb = sizeof(dd);
    for (DWORD dev=0; fEnumDisplayDevices (NULL, dev, &dd, 0); ++dev)
    LOG_INFO ("Device: " << dd.cb << ", " << dd.DeviceID << ", " << dd.DeviceKey << ", " << dd.DeviceName << ", " << dd.DeviceString << ", " << dd.StateFlags );
    CSString devName = dd.DeviceName;
    DISPLAY_DEVICE dd1; dd1.cb = sizeof(dd1);
    // after second call DispDev.DeviceString contains monitor's name
    EnumDisplayDevices(devName, 0, &dd1, 0);
    LOG_INFO ("Device: " << dd1.cb << ", " << dd1.DeviceID << ", " << dd1.DeviceKey << ", " << dd1.DeviceName << ", " << dd1.DeviceString << ", " << dd1.StateFlags );
    if (dd.StateFlags & DISPLAY_DEVICE_MIRRORING_DRIVER)
    LOG_INFO ("Device: " << dd.DeviceName << " is a mirroring driver device. " );
    continue;
    if (dd.StateFlags & DISPLAY_DEVICE_ATTACHED_TO_DESKTOP)
    LOG_INFO ("Device: " << dd.DeviceName << " is attached to the desktop. " );
    if ( StringUtils::StartsWith( dd.DeviceString, "Matrox", false ) )
    return GetRegistryValue(dd.DeviceKey, "ContextItem.Config", 40);
    else if ( StringUtils::StartsWith( dd.DeviceString, "NVIDIA", false ) )
    if ( !StringUtils::StartsWith( dd.DeviceString, "NVIDIA ION", false ) )
    return GetRegistryValue(dd.DeviceKey, "NV_TargetData", 0);
    else
    return GetSystemMetrics(SM_CMONITORS);
    else if ( StringUtils::StartsWith( dd.DeviceString, "Intel", false ) )
    return GetRegistryValue(dd.DeviceKey, "CurrentState", 0);
    else
    return GetSystemMetrics(SM_CMONITORS);
    else
    LOG_INFO ("Device: " << dd.DeviceName << " is not attached. " );
    LOG_INFO ( "No Devices found." );
    return 0;
    else
    LOG_INFO( "Considered Video Output Count from System. " << fResult );
    return fResult;

  • How to identify the current displaying card in CardLayout

    hi all,
    i have a CardLayout() containing some "cards" that are JPanels...i know i could "flip through" the "cards" by using those previous(), next(), etc...but how do i get the "name" of the card the is currently showing...
    i guess i need a function that is the reverse of show(Container parent, String name)...this show() gets the parent and the "name" of the card as parameters and show the card out...what i want to do is...to get the "name" of the card that is currently shown...
    any ideas?
    thank you very much!

    This is just a shot in the dark, but you could write a method that goes through the JPanels that are in the CardLayout calling the JPanel.isShowing() method. This may tell you whether or not the JPanel is visible. You could then link it back to the name with a corresponding string array.
    Just a thought.
    Good luck!
    Cardwell

  • How to get the current page URL

    HI All
    I am working in oracle apps 4.0
    I have one page called history in that i have one page item called Application url. My application id is 122 but its a copy of application 106
    How to get the current page url for the page item.
    Any steps should be help ful
    Thanks & Regards
    Srikkanth.M

    I'm not 100% clear on what the requirement is from the description, however it does sound like you are making things unnecessarily complicated.
    If you want permanent/ID-independent links then use application and page aliases.
    so here we used to display the url like this: <tt>{noformat}http://81.131.254.171:8080/apex/f?p=122{noformat}</tt>
    Do you mean that the URL is displayed like that? If so that doesn't seem particularly helpful. How is anyone supposed to know what it is?
    There are many ways to provide links in APEX&mdash;including lists and nav bars.
    Where the link is to another resource located on the same server (such as another page in the same app, or a different app in the workspace), relative addressing can be used, making it unecessary to include scheme, domain and port information in the URL. For example, if the page to be linked to has a page alias <tt>ABOUT</tt> in an application with alias <tt>UNITY</tt>, and the apps share an authentication scheme/cookie to permit shared sessions, then the link URL is simply
    f?p=UNITY:ABOUT:&APP_SESSION.

  • How to get the "current date" in the BEx?

    Hi all,
    I need to get the "current date" in my Bex report in order to make a comparison. I know there is a "How to" which shows how to get the current date via a User Exit, but I didn't find it. Could you please help me?
    Thanks

    1. Create a  New Formula in Key Figures structure
    2. Give tech name and description and Select "New variable" option
    3. Next screen will launch Variable Wizard -> create a new variable with replacement path as processing type
    4. in next screene  select the date characteristic that represents the first date to use in the calculation (From Date)
    5. In the next  screen select Key in the Replace Variable with field. Leave all the other options as they are
    6. In the next Currencies and Units screen select Date as the Dimension ID.
    6. Save variable
    repeate the Above steps to create another variable (To Date)
    and now you can use these two new replacement path variables in your new formula.
    Dev

  • How to Get the Current Workitem id at runtime

    Hi All,
    I have a scenario, where request pending with a user who has already resigned the organization. The requirement is that we need to provide a report
    of the request and with whom it is pending with along with the workitem id with a forward push button.
    So that if the user identifies that a request is pending with someone he can click the record and press for the forward button and a pop-up to be showed where he can enter the userid to whom he needs to forward it.
    In this scenario can anyone tell me how to get the current workitem id at run time and to save it to a custom table.
    I tried with method before workitem execution, but here i am not getting the current workitem id.
    Can you please suggest a good solution for this.
    Thanks and Regards,
    Balaji

    Karri,
    I think i can explain you with an example.
    Here is my Scenario.
    A user has raised a Gate pass and it went to all approval's and got approved and the material is also sent out from the plant. Lets take the date as 1.1.2013 (A Warehouse person have done the checking and sent out of the plant).
    On 1.3.2013 some of the material has been returned and a material inward request has been raised and now the warehouse person has to do a inward checking and to sent it back for the initiator for the approval, but the warehouse person has resigned the organization on 1.2.2013, now the workitem is pending with the warehouse person who has already resigned.
    My scenario is once the material inward request is created and before the workitem is delivered to the warehouse person i need to get the workitem id and to store the workitem some where.
    So that in future if any warehouse dept head wants to forward the workitem which are lying in the person inbox who has already resigned he can do it via a report using this workitem id.
    So, can anyone help how to get the dialog workitem id before the workitem creation or execution. I tried with "method before workitem execution" but my break point is not triggering at this point.
    Thanks and Regards,
    Balaji

  • How to set the active Step in a process Train using JSF

    I have a process train that I am pointing to a list of steps, I want to be able to set the current step, but cannot find the property to set.
    Does anyone know how to accomplish this? This process train is for readonly purposes only, no navigation needed.
    Thanks
    Kelly

    Right, I think I've been able to do what you're trying to do.
    I've defined a subclass of ProcessMenuModel, which simply has a currentViewId property and a constructor with an extra argument for it:
    public class SettableProcessMenuModel
      extends ProcessMenuModel
      private String _currentViewId = null;
      public SettableProcessMenuModel(Object instance, String viewIdProperty, Object maxPathKey, String currentViewId) throws IntrospectionException
        super(instance, viewIdProperty, maxPathKey);
        _currentViewId = currentViewId;
      public void setCurrentViewId(String currentViewId)
        this._currentViewId = currentViewId;
      public String getCurrentViewId()
        return _currentViewId;
    }Then in the model adapter I use this class instead of MenuModel, plus a currentViewId property:
    public class TrainModelAdapter implements Serializable {
        private String _propertyName = null;
        private Object _instance = null;
        protected transient MenuModel _model = null;
        private Object _maxPathKey = null;
        private String _currentViewId = null;
        public MenuModel getModel() throws IntrospectionException {
            if (_model == null)
              _model = new SettableProcessMenuModel(getInstance(),  // SettableProcessMenuModel instead of ProcessMenuModel
                                            getViewIdProperty(),
                                            getMaxPathKey(),
                                            getCurrentViewId()); // Extra argument
            return _model;
        public void setCurrentViewId(String currentViewId)
            _currentViewId = currentViewId;
            _model = null;
        public String getCurrentViewId()
          return _currentViewId;
    ...Then when you want to set the current step, you set the currentViewId on the TrainModelAdapter to the viewId you need.
    This basically makes the value you pass in override the currentViewId value in the menu model.
    I hope you are able to use this in your implementation.

  • Using PHP to identify the current page - by David Powers

    Hi There,
    I'm trying to write a script so I can identify the sub-pages under "Gallery" in my website
    Under Gallery I have more than hundred pages describing the photos but I want to identify them as the "Gallery" page.
    How do I achieve that?
    It would be tedious to write the "PHP if" statement for each photo link.
    I trust there is a simpler solution.
    In PHP solutions by David Powers, Ch.4 "Using PHP to identify the current page"
    The script is:
    <?php $currentPage = basename($_SERVER['SCRIPT_NAME']); ?>
    <ul id="nav">
      <li><a href="index.php" <?php if ($currentPage == 'index02.php') {echo 'id="here"';} ?>>Home</a></li>
      <li><a href="journal.php" <?php if ($currentPage == 'journal.php') {echo 'id="here"';} ?>>Journal</a></li>
      <li><a href="gallery.php" <?php if ($currentPage == 'gallery.php') {echo 'id="here"';} ?>>Gallery</a></li>
      <li><a href="contact.php" <?php if ($currentPage == 'contact.php') {echo 'id="here"';} ?>>Contact</a></li>
    </ul>
    Let's say that the gallery pages contains hundreds of links gallery like gallery/photos1.php, gallery/photos2.php, gallery/photos3.php, gallery/photos4.php, gallery/photos5.php, gallery/photos6.php, gallery/photos7.php etc...
    How would I identify the sub-pages so when we are there Gallery is highlighted?
    Thank you!
    Best,

    Hello Siddhardha,
    To get the details of a process you need to use Locator class from BPEL api. You can locate your process by listInstances method which accepts WhereCondition parameter used to build a query on process instances. Once you've found the process you were looking for you can use getAuditTrail method to retrieve audit trail of a given instance. You can also use setStatus() method from a BPELX java exec tag within your process and later retrieve it from instance handle by getStatus method.
    A sample snippet to retrieve instance handles to all child processes of a given process:
    StringBuffer sb = new StringBuffer();
    Locator locator = new Locator(domain,domainpassword);
    WhereCondition wc = new WhereCondition();
    String query = sb.append(SQLDefs.AL_ci_root_id).append(" = ? ").toString();
    wc.append(query);
    wc.setLong(1,parentInstance);
    IInstanceHandle[] ih = locator.listInstances(wc);
    You can read more about querying processes on http://blogs.oracle.com/matt/2006/06/27?print-friendly=true
    Radoslaw

  • How to find the current state in web dynpro

    Hi,
       Can any one tell me how to find the current state of system (idle /not idle).
    Thanks,
    Krishna..

    Please explain further.  I don't understand how you are expecting to test for idle.  If ABAP code is being executed, then you know that the application is not idle. Only a server event could trigger code execution. Only a timedTrigger would be able to tell you that a certain amount of time has passed without activitity - although the event of the timer itself will be a server event that constitutes activity.

  • How to identify the data mismatch between inventory cube and tables?

    Hi experts,
    i have a scenario like how to identify the data mismatch between 0IC_C03 and tables,and what are the steps to follow for avoiding the data mismatch

    Hi
    U can use data reconcilation method to check the consistency of data between the r/3 and bw. Plz check the below link
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0931642-1805-2e10-01ad-a4fbec8461da?QuickLink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d08ce5cd-3db7-2c10-ddaf-b13353ad3489
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7a5ee147-0501-0010-0a9d-f7abcba36b14?QuickLink=index&overridelayout=true
    Thanx & Regards,
    RaviChandra

  • How to identify the right extractor

    hi all,
    i have a custom extractor(ABAP report) to pull the Std cost info into BW from R/3. I would like to remove this custom extractor and go for a generic one. Can anyone provide me the steps on how to identify the appropriate generic extractor.
    i know the underlying tables names....eg KEKO, KEPH etc

    Hi Vinod,
    There will no appropriate generic extractor as such. Generic Extration itself means creating a custom extractor. All you need to do is
    1.Goto RSO2, select the type of datasource(i.e transaction or Masterdata)
      and click on create
    2. Specify the table name, ( if you are pulling data from two tables then you have to create a view at Tcode se11, then you need specify that view here)
    3. click on generate
    This will generate the datasource
    You can refer the following doc for further assistance,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Thanks
    Vj

  • How to identify the bind variable peeking problem?

    How to identify the bind variable peeking problem whether my db hitting or not and how to resolve it?
    currently we are doing the dbms_stat of application schema's with gather auto option and i hope this option we take the histogram stats also. Is there any option to improve it and its highly transactions oltp env of 11g.

    What is your exact 4 digits Oracle version ?
    Bind peeking issues are supposed to be solved with adaptative cursor sharing in 11.1 and 11.2:
    11.1 http://download.oracle.com/docs/cd/B28359_01/server.111/b28274/optimops.htm#sthref919.
    11.2 http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/optimops.htm#PFGRF94588
    which says also:
    >
    Adaptive cursor sharing is enabled for the database by default and cannot be disabled. Note that adaptive cursor sharing does not apply to SQL statements containing more than 14 bind variables.
    >
    Edited by: P. Forstmann on 10 nov. 2011 13:50

  • How to get the current path of my application in java ?

    how to get the current path of my application in java ?
    thanks

    To get the path where your application has been installed you have to do the following:
    have a class called "what_ever" in the folder.
    then you do a litte:
    String path=
    what_ever.class.getRessource("what_ever.class").toString()
    That get you a string like:
    file:/C:/Program Files/Cool_program/what_ever.class
    Then you process the result a little to remove anything you don't want:
    path=path.substring(path.indexOf('/')+1),path.lastIndexOf('/'))
    //Might be a little error here but you should find out //quickly if it's the case
    And here you go, you have a nice
    C:/Program Files/Cool_program
    which is the path to your application.
    Hooray

  • How to calculate the Current APC (Acquisition and Production Cost)

    Hi,
    Please help me how to calculate the Current APC.
    The Current APC (Acquisition and Production Cost) is a calculated value based on Previous Year Acquisition balance plus any value changes up to the time of the report.
    The Asset History Report (RAGITT_ALV01) calculates the Current APC value &
    The Current APC can also be found in the Asset Explorer (transaction code AW01N) under Country Book 10/ Posted Values tab then the line “Acquisition Value” and column “Posted values”.
    I suppose that the calculation of Current APC (Acquisition and Production Cost) is getting done in the GET statements in the report RAGITT_ALV01, but unable to find the actual logic.
    Please help me.
    Thanks in advance,
    Satish

    Hi,
    you'll find the logic in fm FI_AA_VALUES_CALCULATE
    A.

Maybe you are looking for

  • Vendor down payment

    Hi, is it possible to pay vendor down payment with F-58 (not F-48) after dowing a request by F-47 ? what is the consequences of that, and what is the procedure that i must follow  ? i hope your help regards

  • Error in Configuration of Sales CRM BAPI

    Hi Experts, I am using the BAPI BAPI_SLSTRANSACT_CREATEMULTI to create a quotation with configured material. The quotation was created successfully, but with only the header material ( there are no sub-configurations present(the BOM is not exploding)

  • Migrate Sun One application server from One Server to Another

    Dear all, We need to migrate the Sun ONE application from Sun Ultar server to Sun Fire 210. Please share with me if any one done the migration. Thanks & Regards Arun

  • ITunes freezes every time iPhone (2.0 software) is connected!

    I just recently updated iTunes to 7.7 and then updated my original iPhone to 2.0 software. Since the update to 2.0, iTunes on my laptop (Windows Vista) keeps freezing and "not responding". iTunes appears to work okay when the phone is not connected.

  • PO Release Status

    How can we check the release status of Purchase Orders - pending release at different levels Regards, Param