Solved

Compile error in Oracle Reports Developer.

Posted on 2004-03-25
1
444 Views
Last Modified: 2012-08-13
I'm getting an Error 201 in one of my Program Units.  The code is as follows:

function CF_revisionFormula return VARCHAR2 is
  rev_flag varchar2(1) := ' ';
begin
  select 'R' into rev_flag
    from operation_notes
  where :op_id = operation_notes.op_id and
            on_type_cd = 'T' and
            rownum = 1;
  return (rev_flag);
RETURN NULL; exception
  when others then return (' ');
end;

The error I receive is:  Error 201 at line 5, column 10 identifier 'OPERATION_NOTES' must be declared
                                  Error 0 at line 4, column 3  SQL Statement ignored.

I have other Program Units for other reports coded in the same mannor and I don't get an error on them.  Where should I start looking for the problem?
0
Comment
Question by:tareothlee
1 Comment
 
LVL 8

Accepted Solution

by:
baonguyen1 earned 50 total points
ID: 10679265
Hi,

I could be:

1. The object 'OPERATION_NOTES does not exist, the name is misspelled or it is not in the  current schema.
2. You grant a role to a user but that role is disabled in PL/SQL.  You need to grant all permissions the user needs to access in PL/SQL explicitly.
3. YOu may need to grant some permissions to a user to run that code

HTH
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question