473,387 Members | 1,440 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

PLS-00201: identifier 'P_TEST_DEL_VAL_ERR' must be declared

I am having problems getting procedure to execute that is part of a package
(actually any of the procedures/functions that are part of this package).
I've extracted out one of the procedures and created a new package just to
verify the error. The package header and body are below
DROP PUBLIC SYNONYM TestPackage;
CREATE OR REPLACE PACKAGE TestPackage AS
-- This procedure deletes all the errors for the currently logged in user
PROCEDURE p_test_del_val_err;

END TestPackage;
/
Show errors

CREATE OR REPLACE PACKAGE BODY TestPackage AS
-- ************************************************** **********************
-- Description: This procedure deletes the validation_errors table for the
current user;
-- Parameters: None
PROCEDURE p_test_del_val_err
IS
BEGIN
DELETE FROM dfars_err;
COMMIT;
EXCEPTION
WHEN OTHERS THEN
Raise_application_error(-20992, 'General Error in Delete Validation
Errors',TRUE);
END p_test_del_val_err;
END TestPackage;
/
CREATE PUBLIC SYNONYM TestPackage for TestPackage;
GRANT EXECUTE ON TestPackage TO PUBLIC;
Show errors

When I compile it I get no errors but when I run the command "execute
p_test_del_val_err" I get the followin errors:
SQL> execute p_test_del_val_err
BEGIN p_test_del_val_err; END;

*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'P_TEST_DEL_VAL_ERR' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

It is probably a really simple problem but I just cannot see it. If anyone
can point me in the right direction I would truly appreciate it.

Thanks
Rick Anderson
Jul 19 '05 #1
1 33023
"Richard Anderson" <ra*******@viops.com> wrote in message news:<4h******************@twister.austin.rr.com>. ..
I am having problems getting procedure to execute that is part of a package
(actually any of the procedures/functions that are part of this package).
I've extracted out one of the procedures and created a new package just to
verify the error. The package header and body are below
DROP PUBLIC SYNONYM TestPackage;
CREATE OR REPLACE PACKAGE TestPackage AS
-- This procedure deletes all the errors for the currently logged in user
PROCEDURE p_test_del_val_err;

END TestPackage;
/
Show errors

CREATE OR REPLACE PACKAGE BODY TestPackage AS
-- ************************************************** **********************
-- Description: This procedure deletes the validation_errors table for the
current user;
-- Parameters: None
PROCEDURE p_test_del_val_err
IS
BEGIN
DELETE FROM dfars_err;
COMMIT;
EXCEPTION
WHEN OTHERS THEN
Raise_application_error(-20992, 'General Error in Delete Validation
Errors',TRUE);
END p_test_del_val_err;
END TestPackage;
/
CREATE PUBLIC SYNONYM TestPackage for TestPackage;
GRANT EXECUTE ON TestPackage TO PUBLIC;
Show errors

When I compile it I get no errors but when I run the command "execute
p_test_del_val_err" I get the followin errors:
SQL> execute p_test_del_val_err
BEGIN p_test_del_val_err; END;

*
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00201: identifier 'P_TEST_DEL_VAL_ERR' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored

It is probably a really simple problem but I just cannot see it. If anyone
can point me in the right direction I would truly appreciate it.

Thanks
Rick Anderson

The syntax to call a procedure in a package is
<package name>.<procedure name>

Please verify this in your manual.

Sybrand Bakker
Senior Oracle DBA
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Michael Hogan | last post by:
I want to pars a playlist file for three different varibles, so I can save them as mp3 files. I am using: strTEMPURL = GetUrlSource(Text1.Text) to put the entire .pls file into a strTEMPURL...
0
by: Rama krishna | last post by:
Hi All: I got the same problem what u got. Could u pls explain me hoe can i proceed. I saw some sites on this issue, which actually not worked with me. Iam using System.Directoryservices dll in...
1
by: manish | last post by:
Hi, I am a fresher in the programming field i.e although I have done programming at the basic level but at professional level I am very new and I am facing many problems. These probllems are...
6
by: ritagoldman101 | last post by:
Pls help - how to find Domain owner For most people this may be an easy question...but not for me. How can I find out who the owner of a domain is so I can write to her / him and ask if she /...
3
by: bangaw | last post by:
i'm currently using c++ on windowsXP, unistd.h doesnt work for windows what other substitute for it could i use to replace it Pls. Help me Pls pls the code goes as follows #include <stdio.h>...
0
by: naheed javaid | last post by:
I m student and doing my final project. My project is related to screen capturing. my project captures screen and save the captured screen as bitmaps in a folder. while the screen recording audio...
0
by: sathyakvani | last post by:
hi al i wrote a code (LOgin form) that checks the user id and if it exists validates the password but this is not all validating and simply displaying user does not exist i am sending the code...
17
by: Riaaaa | last post by:
Pls check my code for the stored procedure which i created for the companydetails including companyid P.K. Not Null int(4), companyname Not Null varchar (20), address varchar(30) where...
1
by: vbsoft | last post by:
Hello My Name is Mike Am from Nigeria a student of computer Science, Pls i want your You to help in Using VISUAL BASIC 6.0 AND MS SQL SERVER AS DATABASE AS A CLIENT SERVER SIDE pLS: I...
0
by: sonuindia88 | last post by:
Some common confusions .I am reading Ritchie and Deitel and practising questions from Yashwant Kanetkar...Here are some of the confusions i am having..your help is required.... Q1) ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.