Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 449781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:48:12+00:00 2026-05-12T21:48:12+00:00

i have a simple oracle stored procedure proc1 as follows: CREATE OR REPLACE PROCEDURE

  • 0

i have a simple oracle stored procedure proc1 as follows:

CREATE OR REPLACE PROCEDURE SYS.proc1
IS
   total   NUMBER := 0;
   temp    INTEGER := 0;
BEGIN
   FOR i IN 1 .. 5
   LOOP
      temp := 2 * i;
      total := total + temp;
   END LOOP;

   DBMS_OUTPUT.put_line (total);
END;

the owner of proc1 is sys. sys have enough privileges to debug proc1 as the follow sql command shows:

SELECT *
  FROM session_privs
 WHERE privilege LIKE '%DEBUG%';

i’ll get the following result:

DEBUG CONNECT SESSION
DEBUG ANY PROCEDURE

i use oracle 11g as the following sql commands shows:

SELECT * FROM v$database;
SELECT * FROM v$instance;

the upper queries gives me:

1223277241,ORCL,8/21/2009 5:28:25 PM,886308,8/21/2009 5:28:28 PM,1,10/15/2007 10:08:59 AM,NOARCHIVELOG,3510666,3399439,CURRENT,8/21/2009 5:28:26 PM,10008,3536169,11/10/2009 3:16:51 PM,NOT ALLOWED,8/21/2009 5:28:25 PM,READ WRITE,MAXIMUM PERFORMANCE,UNPROTECTED,ENABLED,1223308473,1223308473,PRIMARY,886308,DISABLED,SESSIONS ACTIVE,DISABLED,NONE,NO,NO,NO,NO,7,Microsoft Windows IA (32-bit),2,2,3536339,NO,NO,NO,orcl,0,DISABLED,,0,,,NO,,NO,

and

1,orcl,WD00070136,11.1.0.6.0,11/9/2009 11:04:29 AM,OPEN,NO,1,STOPPED,,ALLOWED,NO,ACTIVE,PRIMARY_INSTANCE,NORMAL,NO

in TOAD, i set breakpoint at proc1, then i click the “execute the plsql with debugger” button. TOAD run proc1 and display the result immediately. It just does not stop at breakpoint. I don’t know why. Does anybody ever run into this problem? how do you fix it? Great thanks!

ps: i use toad 9.7.2

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T21:48:13+00:00Added an answer on May 12, 2026 at 9:48 pm

    Where exactly do you put your breakpoint? I hope you don’t put it on the CREATE PROCEDURE line.

    If you put it on that like, it doesn’t work (that statement only creates the procedure, it doesn’t execute it). You have to call proc1 from somewhere and put the breakpoint on the line where it is called, like this:

    BEGIN
       proc1; -- place your breakpoint on this line
    END;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 224k
  • Answers 224k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Check the file attributes (right-click and select Properties in windows… May 13, 2026 at 12:51 am
  • Editorial Team
    Editorial Team added an answer The Microsoft Expression Community Gallery provides a community site for… May 13, 2026 at 12:51 am
  • Editorial Team
    Editorial Team added an answer Taglib# is the best. It's direct port of the TagLib… May 13, 2026 at 12:51 am

Related Questions

I have a simple oracle statement in my procedure: update org.security_training_question a set a.actv_indr
I have a relatively simple select statement in a VB6 program that I have
All, I am very new to stored procedures in general but I am struggling
I've created a package that contains a stored procedure that I plan to invoke

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.