Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PLS-00201: identifier must be declared

781033Jun 23 2010 — edited Jun 28 2010
We are attempting to execute an AS400 stored procedure via the gateway (v11.1.0.6). The stored procedure works just fine on the 400.

The script is:

SQL> DECLARE

2 CMPNYNO DECIMAL(2,0);

3 ACCT DECIMAL(8,0);

4 PROD DECIMAL(4,0);

5 DISCDATE DECIMAL(8,0);

6 DISCAMTD DECIMAL(9,2);

7 DISCAMT DECIMAL(9,2);

8 RTNCDTN DECIMAL(3,0);

9 BEGIN

10 CMPNYNO := 1;

11 ACCT := 12873816;

12 PROD := 3;

13 DISCDATE := 20101001;

14 PGMLIB.RS7235P@itcd_dqa(CMPNYNO, ACCT, PROD, DISCDATE, DISCAMTD, DISCAMT, RTNCDTN);

15 END;



The error returned is:

ERROR at line 14:

ORA-06550: line 14, column 1:

PLS-00201: identifier 'PGMLIB.RS7235P@ITCD_DQA' must be declared

ORA-06550: line 14, column 1:

PL/SQL: Statement ignored


I have granted execute authority to the user profile associated to the gateway.

We execute "normal" queries to tables on the 400 without problem. This is the first time we've tried accessing a stored procedure, so this is new territory.

Advice?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2010
Added on Jun 23 2010
7 comments
6,076 views