Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
| Search | Today's Posts | Mark Forums Read
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 9th, 2010, 08:03 AM
Registered User
 
Join Date: Aug 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Error "PLS-201: identifier procedurename() must be declared

Hello all,

I am very new to use stored procedure, i write a simple Pro-Fortran code to call a stored procedure.
Ex:-

------------------------ORACLE code----------------------------
create or replace
PACKAGE DEMO AS
PROCEDURE TESTFORTRAN(runid in T_Run.id%type);
END DEMO;

create or replace
PACKAGE BODY DEMO AS
PROCEDURE TESTFORTRAN(runid in T_Run.id%type) AS
sqlStatement varchar2(2000);
BEGIN
sqlStatement := 'Select T_PROJECT.NAME , T_TURBINE.OVERALL, T_PROJECT.CREATED from
T_RUN,T_PROJECT, T_TURBINE
where T_TURBINE.T_RUN_ID=runid ';
EXECUTE IMMEDIATE sqlStatement;
END TESTFORTRAN;
END DEMO;

---------------------------END of ORACLE code----------------------


now in pro fortran i called these procedure:-

c---- begin PL/SQL block -----------------
EXEC SQL EXECUTE
1 BEGIN
2 DEMO.TESTFORTRAN(:RUNID);
3 END;
4 END-EXEC
c ---- end PL/SQL block -----------------



but when i compine it i am getting an error:

PCC-S-0061: Error at line 23, column 6. PLS-201: identifier 'DEMO.TESTFORTRAN' must be declared.

can any one please help me in this?
 
Old September 15th, 2010, 01:36 AM
Authorized User
 
Join Date: Nov 2006
Location: Bangalore, Karnataka, India.
Posts: 31
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via ICQ to debasisdas Send a message via AIM to debasisdas
Default

Check if the package is compiled without any error and cross check if you have spelled the object name correctly.
__________________
Regards
Debasis




Similar Threads
Thread Thread Starter Forum Replies Last Post
Error "PLS-201: identifier procedurename() must be declared angad BOOK: SQL Functions Programmer's Reference 0 August 9th, 2010 07:59 AM
Labels etc on ascx page "Not Declared" Wozer BOOK: Professional DotNetNuke Module Programming ISBN: 978-0-470-17116-5 2 January 22nd, 2010 04:28 PM
Need code corrections "get sub or function not defined" error" bluesboytoo Excel VBA 1 October 22nd, 2009 11:12 PM
Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 04:56 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.