Configuring Oracle XStream

為{幸葍}努か 提交于 2020-02-24 14:57:09

问题


I'm trying to configure Oracle XStream out by official documentation

So, shortly, I'm connecting as sysdba

    sqlplus / as sysdba

Then executing commands create create CDB user and give him privileges

    > CREATE TABLESPACE xstream_tbs DATAFILE '$ORACLE/cdb/orcl/xstream_tbs.dbf' SIZE 25M REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;
    > CREATE USER c##xstrmadmin IDENTIFIED BY password DEFAULT TABLESPACE xstream_tbs   QUOTA UNLIMITED ON xstream_tbs container=all;
    > GRANT CREATE SESSION, SET CONTAINER TO c##xstrmadmin CONTAINER=ALL;

After this step I should give permissions to user to use XStream

    > BEGIN
        DBMS_XSTREAM_AUTH.GRANT_ADMIN_PRIVILEGE(
          grantee                 => 'c##xstrmadmin',
          privilege_type          => 'CAPTURE',
          grant_select_privileges => TRUE,
          container => 'ALL');
      END;
      /

On this stage, I'm getting this error:

ERROR at line 1:
ORA-44001: invalid schema
ORA-06512: at "SYS.DBMS_XSTREAM_AUTH_IVK", line 3383
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_XSTREAM_AUTH_IVK", line 3500
ORA-06512: at "SYS.DBMS_XSTREAM_AUTH", line 34
ORA-06512: at line 2

Current container is cdb$root

Googling gives actually nothing and I have no idea whats wrong as I'm following DBA documentation.


回答1:


I guess I found workaround.

If you connect to oracle with

> sqlplus /nolog

And then connect as sysdba

> conn / as sysdba

Then all works fine!

If this is only one way to resolve problem with creating permissions then problem is in sqlplus or oracle itself. Sad!



来源:https://stackoverflow.com/questions/47713909/configuring-oracle-xstream

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!