ITeye博客

ORA-00942: 表或视图不存在

dbcore · 2011-10-26 09:49 · ORA- · 数据库 · Markdown

SQL> conn hr/*** SQL> select username,sid,serial#,module,action from v$session;

select username,sid,serial#,module,action from v$session

ORA-00942: 表或视图不存在

解决:

sqlplus "sys/*** as sysdba" SQL> grant select on gv$session to hr; grant select on gv$session to hr * 第 1 行出现错误: ORA-02030: 只能从固定的表/视图查询

SQL> grant select on sys.v_$session to hr;

授权成功。

sqlplus "hr/***" SQL> select username,sid,serial#,module,action from v$session;

USERNAME SID SERIAL# MODULE ACTION


                                    1          1                                                  
                                    2          1

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。