如果我的用户帐户没有权限,如何创建DB2 数据库?

How do I create a DB2 database if my user account does not have the authority?

我正在安装 Maximo 7.5 Admin Workstation。我在第 3 部分(共 3 部分)中安装 Maximo Asset Management。我正在使用具有本地管理员权限的 Windows 域帐户。

这是我在屏幕上看到的错误:

当我查看 CTGInstallTrace00.log 时,相关部分是:

C:\Windows\Temp>"C:\PROGRA~1\IBM\SQLLIB\bin\db2" create db 'maxdb75' ALIAS 'maxdb75' using codeset UTF-8 territory US pagesize 32 K

SQL1092N "MYUSERACCT" does not have the authority to perform the requested command or operation.

我尝试过的:

DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned: SQL1024N A database connection does not exists. SQLSTATE=08003

本文对 SQL1024N 错误做了一些解释。

您只能授予对现有数据库的 DBADM 权限,显然,您必须连接到该数据库才能发出 GRANT SQL 语句。

如果您花时间查看 the manual,您就会知道用户需要 SYSADM 或 SYSCTRL 权限才能创建数据库。这些权限授予 SYSADM_GROUPSYSCTRL_GROUP 实例配置参数中指定的组的成员。

为避免稍后在安装过程中出现此错误,应使用具有管理员角色的本地帐户执行 Maximo 7.5 安装。具有管理员角色的域用户可能会导致问题,具体取决于域上的策略。

如果您无法 "Verify Installation Requirements" 成功(第 1 部分,共 3 部分)

,您就会知道存在权限问题

虽然中间件安装可能 运行 顺利(第 2 部分,共 3 部分),但 Maximo Asset Management 安装(第 3 部分,共 3 部分)可能会因 DB2 数据库创建错误而失败。