v$database can not access in function
818226May 19 2011 — edited May 19 2011Hi,
OS: XP
DB: oracle 10g R1
I log on to the database by sqlplus using "system" user.
I can access the v$database using "select" statement.
But when I create a function, which includes a "select" statement accessing v$database, the "PL/SQL: ORA-00942: table or view does not exist" error appears.
Usually, this error is caused by insufficient privilege.
What I am wondering is why "select" alone is Ok while in function it fails.
Please give me some ideas about this.
Thanks.