Can not query from v$instance and v$session from within Pro*C program

Hi there,
We have Oracle 10.2.0.1 enterprise edition running on Linux (Red Hat 4 ES)
Our Pro*C developer tries to query the version from v$instance view and is getting errors when compiling his Pro*C programs.
The related Oracle user account has the SELECT ANY DICTIONARY privilege, so if he tries from the sqlplus, he has no problem querying the v$instance or v$session views. His problem is when he is trying to compile his Pro*C program against the very same Oracle account.
Any help/input is greatly appreciated.
R/ Zafer
Here are the errors he is getting:
Pro*C/C++: Release 10.2.0.1.0 - Production on Thu Jun 24 12:54:04 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
System default option values taken from:
/home/oracle/product/10.2.0/Linux6
4/precomp/admin/pcscfg.cfg
Error at line 150, column 4 in file ../database.pc
EXEC SQL SELECT version INTO :inputLine FROM V$INSTANCE;
...1
PLS-S-00201, identifier 'V$INSTANCE' must be declared
Error at line 150, column 4 in file ../database.pc
EXEC SQL SELECT version INTO :inputLine FROM V$INSTANCE;
...1
PLS-S-00000, SQL Statement ignored
Semantic error at line 150, column 4, file ../database.pc:
EXEC SQL SELECT version INTO :inputLine FROM V$INSTANCE;
...1
PCC-S-02346, PL/SQL found semantic errors

I issued FULL DB EXPORT / IMPORT privilege to the related Oracle user account and it works now.

Similar Messages

Maybe you are looking for

  • How do I add my phone number to iMessage on iPad

    How do I add my phone number for my iPhone to my iPad for iMessage. On the settings on iMessage it only gives the options for an email. I have tried typing my mobile no in there but it doesn't accept it and there doesn't seem to be any other way to a

  • Delete a photo permanently after selecting in *album view*

    In iPhoto 11 in Lion 7.1, I know that if I select some photos in an Album (that is, in single Album view) and delete them, they will be deleted from the Album only, not from iPhoto itself. In other words, the photos will remain in Photos view: I can

  • Problem with GPU acceleration

      I have a Core 2 Duo @3.0GHz, a Radeon HD 4770 512MB and have both Opera 11.0 and IE 8 with the NEWEST versions of Flash plugin and activex.              My problem is that first of all when I run 1080p videos on YouTube my CPU goes to 40%-50% and m

  • My mac mac book pro w retina display will not go to sleep when I close the lid or put it to sleep.

    My mac mac book pro w retina display will not stay asleep when I close the lid or put it to sleep. I put the computer in my bag and when I open it again the machine is so hot I can almost not touch it. I am affraid that the hardware is allready fried

  • Configuration of calibration process

    sir i am new in sap pm.my boss given me a task that how to configure a calibration process in sap pm.i have seen on scn or google but i didn't get any document related to that please help me to configure a calibration process in sap.if you have any p