如果必須以非 root 使用者身分來執行 IBM® WebSphere® Application Server 或 Apache Tomcat,您必須在要上傳的資料庫 Java 保存檔上設定適當的許可權。
程序
如果要設定許可權,請執行下列動作:
- 以 root 使用者身分登入。
- 在指令行中切換至 WebSphere_install_directory/profiles/profile_name/config/cells/cell_name/ram_jdbc 目錄。
- 輸入下列指令:chmod
755 database_jar_file_name.jar(例如 chmod 755 db2jcc.jar)。
- 針對要上傳的每一個資料庫
Java 保存檔,重複步驟 3。