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

Thread: procedure execution time

  1. #1
    Join Date
    Jun 2001
    Posts
    316
    hi,

    I have this 1 procedure running on my db server...that looks up into 57 tables in the db and updates them...
    each table has around 10 cols..and each is updated individually

    I started this procedure 4 hrs age..its still running

    when i try to connect to the db from diff machine i find this session still running and the update sql that it is iring then..
    But is it normal that it takes sooo long for this?

    tables contain max 4 lacs row..

    thank you

  2. #2
    Join Date
    Jul 2001
    Posts
    56
    maybe you have very large tables, and have some locks in
    them

  3. #3
    Join Date
    Jun 2001
    Posts
    316
    Does opeing acursor lock the table the cursor works on?

  4. #4
    Join Date
    Oct 2000
    Location
    Saskatoon, SK, Canada
    Posts
    3,925
    Opening a cursor for update would lock that row and not the table. Are you using the index cols, to find the record to be updated? If not try using it. If you are doing the update on the entire table, then using cursor is not the way, instead use update directly on the table, it would be faster.

    You might also want to look into using bulk-bind option by using FORALL, more detail in the link

    http://www.oradoc.com/ora816/appdev....lems.htm#20949

    Hopefully one of these would fix the problem for you.

    Sam
    Thanx
    Sam



    Life is a journey, not a destination!


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