SQL> show user
USER ist "SYS"
SQL>
SQL> GRANT PLUSTRACE TO scott;
GRANT PLUSTRACE TO scott
*
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist
SQL> @D:\oracle\ora81\sqlplus\admin\plustrce.sql;
SQL>
SQL> drop role plustrace;
drop role plustrace
*
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist
SQL> create role plustrace;
Role created.
SQL>
SQL> grant select on v_$sesstat to plustrace;
Grant succeeded.
SQL> grant select on v_$statname to plustrace;
Grant succeeded.
SQL> grant select on v_$session to plustrace;
Grant succeeded.
SQL> grant plustrace to dba with admin option;
Grant succeeded.
SQL>
SQL> set echo off
SQL> GRANT PLUSTRACE TO scott;
Grant succeeded.
SQL> connect scott/tiger
Connect durchgeführt.
SQL> select sysdate from dual;
SYSDATE
--------
17.12.02
SQL> SET AUTOTRACE ON explain stat
SQL> select sysdate from dual;