Skip to Main Content

SQL & PL/SQL

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!

Can not access V$Mystat sys view from procedure.

669788Mar 23 2009 — edited Mar 23 2009
Hi All,

I am facing a problem like explained below. Please suggest me what to do.

I hav a cursor to access Distinct sid as follows :

Cursor Cur_Sid Is
Select Distinct Sid From V$Mystat;

If I try to use it from a procedure it throws error like "ORA-00942: table or view does not exist".
But same query I can execute from SQL prompt. Even in Form's local procedure too it is working fine.

Can anyone please tell me why it is show.
Note: I have used the same oracle user to test all the cases.

Best Regards
Mrigen
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2009
Added on Mar 23 2009
3 comments
3,662 views