grant select on v_$statname to scott;
grant select on v_$sesstat to scott;
grant select on v_$session to scott;
grant select on v_$mystat to scott;
2、连接数据库命令行
>sqlplus /nolog
SQL>connect sys/change_no_install as sysdba --以sysdba身份登录
Connected.
--到些连接成功
SQL> 输入SQL语名带结束符“分号”即可执行。