What privileges are need for a normal Oracle user to access V$ and DBA_ views?
-
07-02-2021 - |
سؤال
I'm connecting to Oracle 19c as HR
user. I want to execute the following SQL and some dba_... views:
select s.sid
,s.serial#
,s.username
,s.machine
,s.status
,s.lockwait
,t.used_ublk
,t.used_urec
,t.start_time
from v$transaction t
inner join v$session s on t.addr = s.taddr;
Oracle tells me the objects doesn't exist. It seems like a permission issue. What privileges are needed for me to access dynamic performance views and DBA_... views?
المحلول
If you want to allow that user to read all system views, you can use
grant select_catalog_role to the_user;
لا تنتمي إلى dba.stackexchange