Can not access V$Mystat sys view from procedure.
669788Mar 23 2009 — edited Mar 23 2009Hi 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