Solved

Compile error in Oracle Reports Developer.

Posted on 2004-03-25
1
441 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

910 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now