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 8590425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:17:29+00:00 2026-06-11T23:17:29+00:00

I am writing an Oracle procedure using TOAD. I executed the procedure using execute

  • 0

I am writing an Oracle procedure using TOAD. I executed the procedure using execute statement. But I am not able to get the result. Instead of that am getting error only. Please help how to run the procedure in TOAD. I am new to toad and Oracle.

Procedure in oracle

create or replace procedure pro_dndtesting( phone number)is 
begin
select  FLD_PHONENUMBERS from smsdnd_tbl where FLD_PHONENUMBERS=phone;
end ;
/

Executing procedure as follows

exec procedure pro_dndtesting(9865015695)

error

ORA-06550: line 1, column 7:
PLS-00201: identifier 'PRO_DNDTESTING' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
  • 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-06-11T23:17:30+00:00Added an answer on June 11, 2026 at 11:17 pm

    Just to clarify: there is no such thing as “Oracle Toad”. Oracle is a RDBMS, whereas TOAD is a client for Oracle databases.

    Your procedure won’t compile as you have written it because you don’t give an INTO clause for the SELECT (since PL/SQL – as opposed to plain SQL – requires a “target” for the result of the SELECT); try this:

    create or replace procedure pro_dndtesting( phone number)is 
      l_value smsdnd_tbl.fld_phonenumbers%type;
    begin
      select  FLD_PHONENUMBERS 
        into l_value 
        from smsdnd_tbl 
       where FLD_PHONENUMBERS=phone;
    end ;
    

    As for the error you’re getting:

    Did you use the same schema (=user) for defining the procedure and calling it?

    Did you try it from an anonymous PL/SQL block like

    begin
      pro_dndtesting(9865015695);
    end;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing code using Oracle SQL Developer. I have a simple select statement that
I'm writing an Oracle query that needs to get the most recent event based
I am writing following statement to create a table in oracle database but failed
am writing code in vb.net .am using select statement in oracle command . when
I'm using an Oracle datasource, reading data only, not writing, I can not alter
When writing a row-level trigger in Oracle, I know that you can use the
I am writing an C# application for both SQL Server and Oracle Databases that
I'm writing a simple diagnostic query then attempting to execute it in the Oracle
I'm writing a short utility that performs a short task on a remote Oracle
Are there any better alternatives to using SQL Tools and TOAD for writing stored

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.