zoukankan      html  css  js  c++  java
  • ORA-01919: role 'OLAPI_TRACE_USER' does not exist

    我在用数据泵导入数据的时候报的错


    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 selected

    2、 建立角色
    SYS@ORCL>@?/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_$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

  • 相关阅读:
    soa soap http rpc
    Work Queues(点对多)
    Hello World模式
    RabbitMQ 概念
    RabbitMQ安装
    gradle ssh 插件
    gradle基础配置
    将java打jar包成linux后台服务service
    java 8 日期api
    springboot linux启动方式
  • 原文地址:https://www.cnblogs.com/zy-303/p/9525898.html
Copyright © 2011-2022 走看看