DBAsupport.com Forums - Powered by vBulletin
Results 1 to 8 of 8

Thread: Long Running Procedure

  1. #1
    Join Date
    Nov 2008
    Posts
    6

    Question Long Running Procedure

    Hi to all,

    I am using oracle 10.1 version in windows 2003 platform. the problem is when i try to run a procedure in the command prompt it is running continuously with no error or output. Normally this procedure will take half an hour to execute. Four days back it has ran successfully. But from that day it has been creating problem.

    I have checked for any session block and there is no such blocks.

    Can any one please guide me, where to check why this procedure is running for long time and what is going on in the database.

    Thanks in Advance,
    vijay

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    Quote Originally Posted by oraclevijay
    Hi to all,

    I am using oracle 10.1 version in windows 2003 platform. the problem is when i try to run a procedure in the command prompt it is running continuously with no error or output. Normally this procedure will take half an hour to execute. Four days back it has ran successfully. But from that day it has been creating problem.

    I have checked for any session block and there is no such blocks.

    Can any one please guide me, where to check why this procedure is running for long time and what is going on in the database.

    Thanks in Advance,
    vijay
    trace it, see what it is doing - plus enable the debug logging you put it in so you know where it is failing

  3. #3
    Join Date
    Jan 2001
    Posts
    3,134
    10G OEM can be very useful for stuff like this, trap the SQL, run the advisor on it and see what pops up. Sometimes it's very useful, sometimes you are better off baking brownies.
    I remember when this place was cool.

  4. #4
    Join Date
    Nov 2008
    Posts
    9
    1、you should check the alert file
    2、query some views (v$session_wait,v$session_longops,etc.)
    3、see your os system and find the bottle-neck, whether IO or CPU,or others.
    first of all,you can do these.
    without these information,i believe few person could real help you.

  5. #5
    Join Date
    Nov 2008
    Posts
    6
    hi Sqlany,

    As per your guidance i have checked my alert log file and i found nothing related to this session hangs. And i have queried V$session_longops and i found no long running sql in the database. When i checked for OS process oracle has not exceeded 400MB of memory.

    Our Database configuration is,

    version : 10.1.0.2.0
    Os : Windows 2003 Server
    Ram Size : 8GB.

    The session hangs when we try to run a package. Actually this package will take 30 minutes to complete the process.

    Please let me know what are the parameters to be focussed on V$session_wait view.

    I have generated statspack report at the time of the process. Please let me know what are things i have to look in the report to find the root cause of the problem.

    Thanks in Advance,
    Vijay.

  6. #6
    Join Date
    Nov 2008
    Posts
    6
    Quote Originally Posted by davey23uk
    trace it, see what it is doing - plus enable the debug logging you put it in so you know where it is failing

    HI Davey,

    I have traced the session and found that some of the insert and update queries running in that particular session and i don't find procedure completion sign. What might be the problem.

    Also please tell me know how to enable the debug logging.

    Thanks in Advance,
    Vijay.

  7. #7
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    Quote Originally Posted by oraclevijay
    HI Davey,

    I have traced the session and found that some of the insert and update queries running in that particular session and i don't find procedure completion sign. What might be the problem.

    Also please tell me know how to enable the debug logging.

    Thanks in Advance,
    Vijay.
    surely you put some logging into your code so you know what happens when it is going wrong?

  8. #8
    Join Date
    Nov 2002
    Location
    Mooresville, NC
    Posts
    349
    Part from trace cheking i would suggest to check the AWR report also and compare with AWR report (when last time thix procedure executed 30 min). You also run perfmon to monitor CPU, Memory utilization in your D/B.
    http://www.perf-engg.com
    A performance engineering forum

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width