简体   繁体   English

IBM Db2 on Cloud(精简版计划):更改服务凭证中的用户角色

[英]IBM Db2 on Cloud (lite plan): Change user role in Service credentials

I would like to use the lite version of Db2 on Cloud on IBM Cloud for my application.我想为我的应用程序在 IBM Cloud 上的 Cloud 上使用 Db2 的精简版。 I created Db2, but I can only select the manager role in service credentials.我创建了 Db2,但我只能 select 服务凭证中的经理角色。 This prevents me from creating a schema or a table using a PyCharm connection through the ibm_db module.这使我无法通过 ibm_db 模块使用 PyCharm 连接创建模式或表。 I've got the error:我有错误:

ibm_db_dbi.ProgrammingError: ibm_db_dbi::ProgrammingError: Statement Execute Failed: [IBM][CLI Driver][DB2/LINUXX8664] SQL0551N The statement failed because the authorization ID does not have the required authorization or privilege to perform the operation. ibm_db_dbi.ProgrammingError: ibm_db_dbi::ProgrammingError: Statement Execute Failed: [IBM][CLI Driver][DB2/LINUXX8664] SQL0551N 语句失败,因为授权标识没有执行操作所需的授权或特权。 Authorization ID: "******".授权ID:“******”。 Operation: "CREATE TABLE".操作:“创建表”。 Object: "schema_name.table_name". Object:“schema_name.table_name”。 SQLSTATE=42501\r SQLCODE=-551 SQLSTATE=42501\r SQLCODE=-551

Is there any way to solve this problem?有没有办法解决这个问题?

Your question is addressed in the FAQ for Db2 on Cloud lite plan .您的问题已在 Cloud lite plan 上的 Db2 的常见问题解答中得到解决。 Because it is a shared database environment, you don't have any administration privileges.因为它是一个共享数据库环境,所以您没有任何管理权限。 Hence it is not possible to create a schema.因此,不可能创建模式。

You can create new tables which are in your assigned schema.您可以在分配的架构中创建新表。 Leave out the schema name in the two part name, eg, use CREATE TABLE mytable instead of CREATE TABLE myschema.mytable .在两部分名称中省略模式名称,例如,使用CREATE TABLE mytable而不是CREATE TABLE myschema.mytable

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM