1. 程式人生 > >DIhosts檔案許可權不足,導致啟動DI失敗

DIhosts檔案許可權不足,導致啟動DI失敗

現象:啟動DI instanse D01出錯。

進入PRD2(DI)以使用者prdadm啟動:

ERPPRD2:prdadm 2> startsap R3 D01 ERPDI
Checking db6 db Database
------------------------------
Database is not available via R3trans

Database db6 db must be started first

執行R3trans –x 測試:
ERPPRD2:prdadm 8> R3trans -x
This is R3trans version 6.19 (release 720 - 06.04.10 - 16:31:00 with UA1430.1 / prepared for CSN 1287305).
unicode enabled version
2EETW169 no connect possible: "DBMS = DB6                              --- DB2DBDFT = 'PRD'"

R3trans finished (0012).

檢視目錄/home/prdadm下的trans.log,其中R3trans報錯如下:
ERROR in DB6Connect[dbdb6.c, 1737] CON = 0 (BEGIN)          
DbSlConnectDB6( SQLConnect ): [IBM][CLI Driver] SQL1336N  The remote host "ERPDB" was not found.  SQLSTATE=08001 

現在看來原因是PRD2無法識別ERPDB,為什麼呢???!!!

難道是hosts設定有問題,對比PRD1與PRD2的/etc/hosts,內容完全正確,但是PRD2的hosts檔案許可權為640,而PRD1為644,可能某次備份hosts不小心修改了屬性。將PRD2的/etc/hosts訪問屬性改為644,執行R3trans –x:

ERPPRD2:prdadm 8> R3trans -x
This is R3trans version 6.19 (release 720 - 06.04.10 - 16:31:00 with UA1430.1 / prepared for CSN 1287305).
unicode enabled version
R3trans finished (0000).

啟動D01成功