1. 在系统中正常添加账号 username

  2. 使用db2inst1 登录

  3. 执行以下命令

db2 CONNECT TO <databasename> user db2inst1 using <password>
db2 GRANT DBADM, CREATETAB, BINDADD, CONNECT, CREATE_NOT_FENCED, IMPLICIT_SCHEMA, LOAD ON DATABASE TO USER username