我在用數據泵導入數據的時候報的錯sql
TEST_USER1@ORCL> conn / as sysdba
SYS@ORCL> grant plustrace to TEST_USER1;
grant plustrace to TEST_USER1
*
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not exist
SYS@ORCL> select * from dba_roles where role='PLUSTRACE';
no rows selectedit
二、 創建角色
SYS@ORCL>@?/sqlplus/admin/plustrce.sql --如下內容自動執行io
SQL>
SQL> drop role plustrace;
drop role plustrace
*
ERROR at line 1:
ORA-01919: role 'PLUSTRACE' does not existselect
SQL> create role plustrace;權限
Role created.數據
SQL>
SQL> grant select on v_$sesstat to plustrace;db
Grant succeeded.dba
SQL> grant select on v_$statname to plustrace;ant
Grant succeeded.co
SQL> grant select on v_$mystat to plustrace;
Grant succeeded.
3. 賦予權限
SQL> grant plustrace to dba with admin option;
Grant succeeded.
4.進行查看
SQL> select * from dba_roles where role='PLUSTRACE';
ROLE PASSWORD AUTHENTICAT------------------------------ -------- -----------PLUSTRACE NO NONE