How to view the process in oracle is running?

Hi!
i'm writing a procedure. That takes 15 mins to complete. Now, i want to check whether the process is running or the process is hanged or some other problem occurs. Is there any command from sql prompt that shows the status?
Waiting for your reply.
Thanks.
Satyaki De.

If the process completes (in 15 minutes), how can it be hanging? :-)
Hanging is along the lines of waiting forever on a fast object reuse enqueue... sigh
The view I usually use are:
- v$session_event to give me an idea what the session is doing
- v$session_wait to tell me what the session is waiting for on right now (and how long has it been waiting)
- v$session and v$sqltext to tell me what the current active SQL is (if applicable)
- and if there is a SQL, looking at v$sql_plan for the execution plan
But then there can also be nothing really wrong with the SQL for example, but how it is used. E.g. PL/SQL code does multiple passes through the same data set. In which case also have a look at v$sess_io to see what the I/O is like. A 100% cache hit ratio should set off a fe alarm bells. Or having a look at v$sesstat at the session statistics.
There is no single view or single query that can tell you "here, this is the problem!".
You need to look at at WHAT the process is doing and then determine which of these could be the problem. And it may turn out that the problem is in the actual logic of the process and not the way the process is executed.

Similar Messages

  • HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING IN THE PRODUCTION?

    HI ALL,
    CAN ANYONE TELL ME HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING DAILY AT 5.00 PM. I NEED TO STOP THE PROCESS CHAIN FOR COUPLE OF DAYS AND THEN RESTART IT AGAIN.
    cAN ANYONE TELL ME THE PROCEDURE TO STOP THE ENTIRE PROCESS CHAIN RUNNING IN THE PRODUCTION.
    THANKS
    HARITHA

    Hi,
    First and foremost let me advice you to be very careful while doing this.
    For Rescheduling
    RSPC> chain > Goto > Planning view and
    click on Execution tab > select > Remove from Schedule and then in Maintain variant of start process reschedule for the day you require it to run.
    For terminating active chain
    You can start from SM37, find the process WID/PID then go to SM50 or SM51 and kill it. Once its done come back to RSMO and check the request, it should be red but again manually force to red and save by clicking on the total status button in the status tab. This shuld ensure that the process is killed properly.
    The next step will be to go to targets that you were loading and remove the red requests from those targets.
    Note: For source system loads you may have to check if the request is running in the source system and kill if needed and pull it again.
    But for BW datamart delta loads u may have reset the datamarts in case u are going to pull the delta again.
    Re: Kill a Job
    Re: Killing a process chain.
    Regards,
    JituK

  • How to view the process template of the instance

    Some of the workflow tools ( for ex: MQ Workflow) provide a way to see the design of the process template graphically. When an instance is created out of the process template, user can see the process stops of the instance graphically. While one could see on EM Flow trace of the instance, it only shows the steps so far completed. I am unable to know what stop I am at in the complete flow of the process map. May be I am missing something, but if you can point me in right direction how to view the stages of a process instance ( completed and yet to be completed) I rellay appreciate.

    What about this?
    SELECT pid
      FROM v$session s, v$process p
    WHERE p.addr = s.paddr
       AND s.sid = :sid;   -- replace :sid with your session idRegards.
    Al

  • How to stop and start only the process of Oracle Application Express?

    I'd like to know how to stop the process of Oracle Application Express on my server installed oracle express package.
    After installed Oracle Express edition, not only oracle database server processes but also Oracle Application Express, such as http server, is started automatically...
    I hope to stop and start Application Express on demand but is this feature enabled?

    Oracle Apex is an API, if that helps you understand / visualize. You do not start Apex process nor stop it.
    When an Apex session starts it starts calling the API.
    You can however start / stop the listener. It may be OHS, ApexListener and the J2EE container running it, OC4J or any other "server" that you are using.
    The built-in EPG is something like an API again, you cannot start / stop it but you can disable/enable it with DBMS_XDB.SETHTTPPORT API.
    Regards,

  • Hi i am using oracle 10g how to view the content of the stored procedure or trigger ?

    Hi i am using oracle 10g .How to edit  the content of the stored procedure or trigger ?

    jklopkjl wrote:
    Hi i am using oracle 10g .How to view the content of the stored procedure or trigger ?
    query ALL_SOURCE
    SQL> desc all_source
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    NAME                                               VARCHAR2(30)
    TYPE                                               VARCHAR2(12)
    LINE                                               NUMBER
    TEXT                                               VARCHAR2(4000)

  • How to view the tables/views available in Oracle

    HI,
      I am creating DB connection and importing the data from Oracle TABLES/ Views. I just want know how to view the tables/views available in Oracle. (I have the login details). Can I view thru TOAD? Pl let me know the best way and suggestions/ views / Links/ whitepagers.
    Regards,

    Hi,
    I don't remember exacly: RSA1 -> source system -> "replicate datasources". Works this also in a DB-source system. I think so.
    => you get all tables that your user has authorisation.
    This function execute for example (in oracle there are same information tables: dba_tables, user_tables ...) following select in the database:
    select TABLE_NAME from DBA_TABLES;
    Sven

  • Help, How to view the error log of oracle Job

    Hi all,
    I created a job in my database, which clears the archivelog. After the job is executed, it occurs error.Such as :
    RMAN清理归档日志 1 问题 2010-3-19 下午03时11分00秒 GMT+08:00 PTDB 数据库实例 SYSTEM RMAN 脚本
    How to view the error log of oracle Job?
    Thank you.
    Eric Zhou

    Hello,
    Besides some views (with the scheduler) that you can get on the link below:
    http://download-west.oracle.com/docs/cd/B28359_01/server.111/b28310/scheduse002.htm#CHDGIDFD
    You may use the LOG parameter with RMAN so as to generate a logfile on the server.
    Also from EM DBConsole (starting with 10g) you may have the RMAN Backup Report.
    Hope this help.
    Best regards,
    Jean-Valentin

  • How to view the payload of a Message if it processed through AAE

    Hi All,
    Can anybody please tell me how to view the payload if the message processed through Advance Adapter Engine.
    I have developed a SOAP to SOAP interface by using Advance Adapter Engine and it is working fine I can see the messages in Runtime Work Bench(RWB) but when I clicked on the Sender and Receiver Adapter I can't see the payload so I am wondering if anyone knows how to view the payload or it is possible to view the payload if the message was processed through Advance Adapter Engine (AAE).
    Is there any setting or properties available in NWA to enable or disable the payload of AAE?
    Thanks,
    Iqbal

    Hi All,
    Unfortunately I can only see the SOAP Document but no Payload.
    here is what I can see
    - <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
    - <SOAP:Header xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    - <sap:Main xmlns:sap="http://sap.com/xi/XI/Message/30" versionMajor="3" versionMinor="0" soap:mustUnderstand="1">
      <sap:MessageClass>ApplicationResponse</sap:MessageClass>
      <sap:ProcessingMode>synchronous</sap:ProcessingMode>
      <sap:MessageId>75e50f37-9bef-11e0-af98-000027d151a6</sap:MessageId>
      <sap:RefToMessageId>7597008d-9bef-11e0-a027-000027d151a6</sap:RefToMessageId>
      <sap:TimeSent>2011-06-21T10:15:59Z</sap:TimeSent>
    - <sap:Sender>
      <sap:Party agency="http://sap.com/xi/XI" scheme="XIParty" />
      <sap:Service>Srv_xxxxx__Sender_SOAP_AAE_BS</sap:Service>
      </sap:Sender>
    - <sap:Receiver>
      <sap:Party agency="http://sap.com/xi/XI" scheme="XIParty" />
      <sap:Service>Srv_xxxxx_Sender_SOAP_AAE_BS</sap:Service>
      </sap:Receiver>
      <sap:Interface namespace="urn:xxxxxxxx.com:pi:A_TEST:HTTP_TO_SOAP_AAE">SI_OS_xxxx_Request_AAE</sap:Interface>
      </sap:Main>
    - <sap:ReliableMessaging xmlns:sap="http://sap.com/xi/XI/Message/30" soap:mustUnderstand="1">
      <sap:QualityOfService>BestEffort</sap:QualityOfService>
      </sap:ReliableMessaging>
      <sap:System xmlns:sap="http://sap.com/xi/XI/Message/30" soap:mustUnderstand="1" />
    - <sap:HopList xmlns:sap="http://sap.com/xi/XI/Message/30" soap:mustUnderstand="1">
    - <sap:Hop timeStamp="2011-06-21T10:15:59Z" wasRead="false">
      <sap:Engine type="AE">af.dgx.dbdgx66</sap:Engine>
      <sap:Adapter namespace="http://sap.com/xi/XI/System">XIRA</sap:Adapter>
      <sap:MessageId>75e50f37-9bef-11e0-af98-000027d151a6</sap:MessageId>
      </sap:Hop>
      </sap:HopList>
      </SOAP:Header>
    - <SOAP:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    - <sap:Manifest xmlns:sap="http://sap.com/xi/XI/Message/30" xmlns:xlink="http://www.w3.org/1999/xlink">
    - <sap:Payload xlink:type="simple" xlink:href="cid:payload-75e51c499bef11e0a13a000027d151a6atsap.com">
      <sap:Name>maindocument</sap:Name>
      <sap:Description>main document</sap:Description>
      <sap:Type>Application</sap:Type>
      </sap:Payload>
      </sap:Manifest>
      </SOAP:Body>
      </SOAP:Envelope>
    Do I need to do anything in NWA to enable the payload for Sender and Receiver?
    Thanks,
    Iqbal

  • How to View the Scheduler in ODI Console

    Hi
    In ODI Studio, we may Schedule a Scenario and also, we may view all Schedules process from the Agents (View Schedule option).
    My colleagues are going to use ODI Console, but we cannot find out HOW to View the Schedule in ODI Console.
    In Oracle documentation about FDMEE, we can read the following: If you want to cancel a specific instance of a schedule, use the ODI Studio or ODI Console... see the PDF document in attachment.
    Regards
    Claude

    To display the schedule for one agent:
    In Topology Navigator expand the Agents node in the Physical Architecture accordion.
    Select the Physical Agent you want to update the schedule.
    Right-click and select View Schedule.
    The Schedule Editor appears, displaying the schedule for this agent.
    Check: http://docs.oracle.com/cd/E17904_01/integrate.1111/e12643/running_executions.htm#ODIDG634
    HTH -
    Jasmine

  • OOM PermGen... How to view the content of permgen

    I have a pretty big java application running on windows and linux (redhat) using JBoss as the application server.
    The application has been running for a long time without issues and now, with the end of a new release of our software, under heavy load, we are running out of perm gen space.
    What I would like to see is a tool that lets me view the content of the perm gen space so I can determine why we are using so much memory.
    I am aware of jmap -permstat (on linux only) that should let you view some info about permgem but for me, jmap connects to the java process and never comes back. I tried a profiler (jprofiler) and again, I can't find info about what is occupying the permgen memory space.
    Can someone suggest tools, or methods to get to the content of the permgen space so I can determine what our issue is?
    Here are our startup options; as you can see it has been tuned quite a bit for maximum performance for our usage patterns.
    I would appreciate any help chasing down this issue.
    Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_02-b05, mixed mode)
    -Xms8000m
    -Xmx8000m
    -Xss256k
    -XX:PermSize=256m
    -XX:MaxPermSize=256m
    -Xmaxjitcodesize96m
    -XX:+UseParNewGC
    -XX:+HandlePromotionFailure
    -XX:ParallelGCThreads=16
    -XX:GCHeapFreeLimit=10
    -XX:NewRatio=3
    -XX:SurvivorRatio=2
    -XX:InitialSurvivorRatio=2
    -XX:MinSurvivorRatio=2
    -XX:GCTimeRatio=19
    -XX:MaxTenuringThreshold=128
    -XX:TargetSurvivorRatio=90
    -XX:+ClassUnloading
    -XX:ErrorFile=hs_err_<pid>.log
    -XX:HeapDumpPath=java_<pid>.hprof
    -XX:-HeapDumpOnOutOfMemoryError

    jklopkjl wrote:
    Hi i am using oracle 10g .How to view the content of the stored procedure or trigger ?
    query ALL_SOURCE
    SQL> desc all_source
    Name                                      Null?    Type
    OWNER                                              VARCHAR2(30)
    NAME                                               VARCHAR2(30)
    TYPE                                               VARCHAR2(12)
    LINE                                               NUMBER
    TEXT                                               VARCHAR2(4000)

  • How to view the table at the application level

    Dear All,
    How to view the table in the Data Dictionary at the application level, If a table is created at the database level by using CREATE statement.
    code/
    create table zmard as select * from sapone.mard where 1 = 2
    /code
    I would like to view the table above, which is created at the Oracle database level in the Data Dictionary.
    can anyone guess the solution.
    Best wishes
    Mahesh

    Hi
    U should create a program using SQL native in order to select and show the data.
    By SE11 or directly in the program u can define a structure like your table:
    DATA: BEGIN OF W_ZMARD,
                  FIELD,
              END     OF W_ZMARD.
    EXEC.
       OPEN CURSO FOR SELECT * FROM ZMARD
    ENDEXEC.
    DO.
      EXEC.
         FETCH NEXT CURSOR INTO :W_ZMARD
      ENDEXEC.
      IF SY-SUBRC <> 0.
         EXIT.
      ENDIF.
      WRITE: / W_ZMARD-FIELD,
    ENDDO.
    EXEC.
      CLOSE CURSOR
    ENDEXEC.
    I don't know if it's possible to create a view in SE11, because it's needs a table just defined in SE11, u can create a new view ZMARD based on MARD but I don't believe it'll use your table.
    Max

  • How to view the Invoice

    Hi
    Can anyone explain me like how to view the Customer and vendor invoices through T.Code or through path.
    Thanks & Regards

    hi,
    you can view the customer & vendor invoice by giving the FI document number in FB03. Then you can Go for Environment - Document Environment - Original Document. This will take you to the Customer invoice which was raised in the SD module. or vendor invoice which was raised in the MM module.
    you can follow the same process from the FI report : FK10N for vendors & FD10N for Customers.
    hope its useful.
    regards,
    R.Ramakrishnaraj

  • How to identify the locks in oracle db objects? i dont have access to check

    How to identify the locks in oracle db objects? i dont have access to check the v$lock or v$ objects. i dont have dba access. what are the symptoms for table, row or objects lock? how v guess it would be lock?
    Thanks in advance friends..

    I believe you will have to call your DBA on the phone in that case.
    You can query something with a select ... for update nowait.
    If it raises an exception you can handle it within a when section.
    -- Running in one session
    SQL> create table t1 as select 1 col1 from dual;
    Table created
    SQL> select * from t1 for update nowait;
          COL1
             1
    SQL>
    -- now running in a different session
    SQL> select * from t1 for update nowait;
    select * from t1 for update nowait
    ORA-00054: resource busy and acquire with NOWAIT specified
    SQL> set serveroutput on
    SQL>
    SQL> DECLARE
      2    CURSOR cur1 IS
      3      SELECT col1 FROM t1 FOR UPDATE NOWAIT;
      4    v_col1 NUMBER;
      5    locking_error EXCEPTION;
      6    PRAGMA EXCEPTION_INIT(locking_error, -00054);
      7  BEGIN
      8    OPEN cur1;
      9  EXCEPTION
    10    WHEN locking_error THEN
    11      dbms_output.put_line('Busted locking my rows!');
    12  END;
    13  /
    Busted locking my rows!
    PL/SQL procedure successfully completed
    SQL> Now, surely you won't be able to tell anything else other than there was something locked there.
    But none of the details you would find in the views.

  • How to know the process chain start time and end time

    Hi Experts,
                   How to know the process chain start time  and end time .
    Thanks in advance
    Regards
    Gutti
    Edited by: guttireddy on Feb 23, 2012 11:30 PM

    Hi Reddy,
    You may find the run time of a PC using below steps.
    1. Call SE38 > /SSA/BWT > Execute  > Enter your PC , choose the date and time > Execute. Here Run-time of a PC is displayed. (or)
    2. Call RSPC1 > Enter your PC > Execute > Goto Log view > Right click on the start Variant > Displaying Messages > Note down the start time in Chain Tab. Now Right click on the last Process type of the PC > Displaying Messages > Note down the End time in Chain Tab. The Difference b/w start time and end time gives the Run-time of your PC.
    Hope this helps.
    Regards
    Sai

  • How to find the processing time of any query?

    im using oracle express edition, can anyone help me, how to find the processing time of any query?

    Trace the query and tkprof the generated trace file.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/sqltrace.htm#PFGRF01010

Maybe you are looking for

  • My Creative zen vision M broke what do i do

    ok my Creative zen vision M 30 gb broke buti dont know how i turned it on this moring and the touchpad wasnt working so i was going to turn it of but right before i could to that a black screen comes up saying low baterry and truns of by itslef but i

  • Idoc for FI or CO

    Hi, i've configured to generate and send idoc for Purchase order, and i realized that someone should create message output (goto -> message), by that time, some batch program try to send idoc. my question as below; 1. regarding FI or CO, FI or CO, is

  • Errors in system.log since leopard upgrade

    I have a mac mini core duo 1.83, with 2gb ram. It was running Tiger until I upgraded it to Leopard about October 27th. I used the archive and install installation method. It has been running fine. The only "glitch" I have noticed is a very occasional

  • Information: BeX report and Chinese characters

    The problem appears to be a Microsoft Security Patch 956844 that was applied to our desktops.   If you save a rpt with that patch, you will get Chinese when rerunning it. If you save a rpt without the patch and rerun, it works. You can go to the bott

  • Creating multiple profiles, using unified profile types, to store multiple values for same properties

    Hi All: I am trying to create multiple profiles, using unified profile types, to store multiple values for same properties. Here my intention of using 'unified profile types' is to create multiple profiles (to store multiple values for a property). A