Impdp Migration Error: ORA-01919: role ‘PLUSTRACE’ does not exist

impdp Migration error reporting: ORA-01919: role ‘PLUSTRACE’ does not exist
Error Message:
ORA-39083: Object type ROLE_GRANT failed to create with error:
ORA-01919: role ‘PLUSTRACE’ does not exist
Failing sql is:
GRANT “PLUSTRACE” TO “TEST1”
ORA-39083: Object type ROLE_GRANT failed to create with error:
ORA-01919: role ‘PLUSTRACE’ does not exist
Failing sql is:
GRANT “PLUSTRACE” TO “TEST2”
Execute the script manually, find plustrce.sql on the server, and get it done with a single command
PRIMARY-SYS@testdb>@/u01/app/oracle/product/11.2.0/db_1/sqlplus/admin/plustrce.sql
PRIMARY-SYS@testdb>
PRIMARY-SYS@testdb>drop role plustrace;
drop role plustrace
*
ERROR at line 1:
ORA-01919: role ‘PLUSTRACE’ does not exist

PRIMARY-SYS@testdb>create role plustrace;
Role created.
PRIMARY-SYS@testdb>
PRIMARY-SYS@testdb>grant select on v_$sesstat to plustrace;
Grant succeeded.
PRIMARY-SYS@testdb>grant select on v_$statname to plustrace;
Grant succeeded.
PRIMARY-SYS@testdb>grant select on v_$mystat to plustrace;
Grant succeeded.
PRIMARY-SYS@testdb>grant plustrace to dba with admin option;
Grant succeeded.
PRIMARY-SYS@testdb>
PRIMARY-SYS@testdb>set echo off
PRIMARY-SYS@testdb>

Similar Posts: