DB2 Enterprise Server Edition(DB2 ESE)9.1在Windows Server 2008 下出現無法建立資料庫的情況及解決辦法
在安裝有,DB2 9.1版本的Windows Server 2008 上面,使用預設的安裝方式導致無法建立資料庫,相關的錯誤提示:
"SQL3012C 發生系統錯誤(原因碼= "")。無法處理後續的SQL 陳述式。SQLSTATE=58005”。
通過分析日誌"%programfiles%\IBM\SQLLIB\DB2\db2diag.log"(預設情況下會在這個地方),發現很多訪問被阻止(Access Defined),此時會看到一些錯誤返回與提示:
RETCODE : ZRC=0x840F0001=-2079391743=SQLO_ACCD "Access Denied"
DIA8701C Access denied for resource "", operating system return code
was "".
這類的錯誤提示,上面的代碼原因為空白可能就是源自於此錯誤地翻譯顯示。
問題如何解決,搜尋相應的關鍵字,SQLSTATE=58005、Access Denied在IBM的知識庫裡面找到了相關的資訊,本例的解決方案就是源自於這個協助。
串連如下:http://www-01.ibm.com/support/docview.wss?uid=swg21442542雖然標題中的SQL?????內容並不一樣,但是查看了一下環境屬於的範圍,還是很順利的解決了。
以下內容是IBM的原始文檔資訊:
Environment
Windows 2008 Server
DB2 9.1 ESE
Diagnosing the problem
View the db2diag.log file for the errors above.
Resolving the problem
更多精彩內容:http://www.bianceng.cnhttp://www.bianceng.cn/database/db2/
Re-installation of DB2 is required. During the re-installation de-select "enable operating system security for DB2 objects"
After making this change you will be able to create the required databases for Sametime Advanced.
NOTE: Sametime Advanced 8.0.1 does not yet support DB2 9.5 which does not have this problem with Windows 2008 server security.
雖然我並沒有安裝Sametime Advanced,但是此原因確實是因為相關的安全許可權而受影響的。
Figure 1解決方案就添加刪除程式中對DB2 9.1 ESE 修複安裝,並取消對“啟用作業系統安全性”的勾選
總結:
遇見一些奇怪的問題還是要多多利用官方資源,同時一些預設的複選和操作可能並不適應所有的作業系統,需要多多留意軟體安裝版本,系統內容,以及日誌資訊。
作者:cnblogs 周冠宇