473,320 Members | 1,916 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,320 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 33019
"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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.