2015-08-08 124 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)但結果是「找不到命令」 –