Advertisement

08.04.2008 at 01:14PM PDT, ID: 23620303
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.3

OS Authenticated user

Asked by joebednarz in Oracle 10.x

I have an OS authenticated user account that is granted DBA privs -- username is OPS$ORACLE.  OPS$ORACLE, having dba role can select on dba views, obviously.  However, I am trying to write some utility programs for to execute as this user, and whenever I try to compile the procedure referencing a SYS view, it says the view does not exist.

Question is, why will this not compile?  If I log as OPS$ORACLE, I can do a SELECT * FROM dba_data_files and it works fine...

I am running on 10.2.0.4Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
CURSOR dbfile_cursor
      IS
         SELECT   RTRIM (tablespace_name), blocks, maxblocks
             FROM SYS.dba_data_files
         ORDER BY tablespace_name;
 
      tbsname          SYS.dba_data_files.tablespace_name%TYPE;
      blocks           SYS.dba_data_files.blocks%TYPE;
      maxblocks        SYS.dba_data_files.maxblocks%TYPE;
      fsblocks         SYS.dba_free_space.blocks%TYPE;
      totalblocks      SYS.dba_data_files.blocks%TYPE;
      totalmaxblocks   SYS.dba_data_files.maxblocks%TYPE;
      pretbsname       SYS.dba_data_files.tablespace_name%TYPE;
 
 
 
====== error ======
 
Warning: Package Body created with compilation errors.
 
SQL> show errors;     
Errors for PACKAGE BODY DBA_PACK:
 
LINE/COL ERROR
-------- -----------------------------------------------------------------
42/10    PL/SQL: SQL Statement ignored
43/23    PL/SQL: ORA-00942: table or view does not exist
46/24    PL/SQL: Item ignored
46/24    PLS-00201: identifier 'SYS.DBA_DATA_FILES' must be declared
[+][-]08.04.2008 at 01:19PM PDT, ID: 22155783

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle 10.x
Sign Up Now!
Solution Provided By: sdstuber
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.04.2008 at 01:25PM PDT, ID: 22155840

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906