2015-08-08 125 views
1

我试图使用here中的说明在Mac OS X Yosemite上安装db2 Express-C 10.1,我希望这两个操作系统之间没有太大差异。然而,在步骤13中,那就是:如何在Mac OS X Yosemite上安装db2?

13. Initialize the sample database using this command: db2sampl

我得到这个错误:

Attempt to start DB2 instance failed. 
SQL30082N Security processing failed with reason "24" 
"USERNAME AND/OR PASSWORD INVALID"). SQLSTATE=08001 

'db2sampl' processing complete. 

我试图使用sudo,但我得到了另一个错误

Starting the DB2 instance... 
Creating database "SAMPLE"... 
Attempt to create the database "SAMPLE" failed. 
SQL1032N No start database manager command was issued. SQLSTATE=57019 

'db2sampl' processing complete. 

请帮帮忙!

+0

简单的网络搜索显示:http://lpetr.org/blog/archives/installing-db2-10-1-on-mac-os-x –

回答

0

您需要使用正确的用户启动实例。可能它是由另一个用户创建的。请键入db2ilist,以检查已创建DB2实例的用户名;更改为该用户并启动该实例。您也可以更改配置以允许其他用户启动实例。

+0

我试过在主目录中的终端(用户名是db2inst1)但结果是“找不到命令” –