0
点赞
收藏
分享

微信扫一扫

HANA Create Schema_SAP刘梦_新浪博客


 

HANA Create Schema_SAP刘梦_新浪博客_python

可能会报权限问题:Could not execute 'create schema _TESTSCHEMA'

SAP DBTech JDBC: [258]: insufficient privilege: Not authorized

如果有权限,可以看到当前用户下多了一个schema

HANA Create Schema_SAP刘梦_新浪博客_mysql_02

但是这个schema只属于这个用户,其他用户是看不到的。

新建一个user:NEWUSER

HANA Create Schema_SAP刘梦_新浪博客_linux_03

HANA Create Schema_SAP刘梦_新浪博客_java_04


用NEWUSER登录

HANA Create Schema_SAP刘梦_新浪博客_docker_05

可以看到new user只有一个schema NEWUSER,并没有_TESTSCHEMA

HANA Create Schema_SAP刘梦_新浪博客_mysql_06

 

创建schema的时候指定owner

​​

HANA <wbr>Create <wbr>Schema

​​

这个时候在NEWUSER 下可以看到此schema

其他用户下是看不到的

HANA Create Schema_SAP刘梦_新浪博客_docker_08

最后删除测试的schema

​​

HANA <wbr>Create <wbr>Schema

​​

HANA Create Schema_SAP刘梦_新浪博客_python_10

 

创建完schema后,创建数据访问数据的时候也经常报错,最常见的是

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

一般来说都是加上 grant select on schema 自己的schema to _SYS_REPO with grant option;

具体参考​​http://blog.sina.com.cn/s/blog_c0978c9b0102wb4m.html​​

 

 


举报

相关推荐

0 条评论