DIhosts檔案許可權不足,導致啟動DI失敗
阿新 • • 發佈:2018-12-23
現象:啟動DI instanse D01出錯。
進入PRD2(DI)以使用者prdadm啟動:
ERPPRD2:prdadm 2> startsap R3 D01 ERPDI執行R3trans –x 測試:
Checking db6 db Database
------------------------------
Database is not available via R3transDatabase db6 db must be started first
ERPPRD2:prdadm 8> R3trans -x檢視目錄/home/prdadm下的trans.log,其中R3trans報錯如下:
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).
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成功