Repository: Encountered an error in repository runtime extension;Model inconsistency. Create Scenario failed: The following errors occured: user is not authorized (2950)

   

   

我在hana04 下建的表

Error:user is not authorized (2950)_SAP刘梦_新浪博客_linux

   

然后在pkg test里面想去建视图

Error:user is not authorized (2950)_SAP刘梦_新浪博客_python_02

   

   

报错:

Repository: Encountered an error in repository runtime extension;Model inconsistency. Create Scenario failed: The following errors occured: user is not authorized (2950)

   

这个一看就是权限问题

查看 user _SYS_REPO 的object privilege

Error:user is not authorized (2950)_SAP刘梦_新浪博客_安全_03

   

发现没有hana04这个 schema

   

那么可以手动加,如果手动加不了,在上面右键

Error:user is not authorized (2950)_SAP刘梦_新浪博客_ubuntu_04

   

Error:user is not authorized (2950)_SAP刘梦_新浪博客_python_05

   

grant select on schema         "HANA04" to _SYS_REPO with grant option;

   

再查看

Error:user is not authorized (2950)_SAP刘梦_新浪博客_java_06