Sun Java System Application Server Enterprise Edition 8.1 2005Q2 版本說明

配置 PointBase

許多應用程式範例使用 Application Server 中包含的 PointBase 資料庫伺服器。使用 Application Server Enterprise Edition 之前,您必須配置 PointBase 資料庫伺服器。

有兩種方法可以配置 PointBase:

  1. 使用與作業系統和 shell 相應的指令,將 JAVA_HOME 環境變數設定為安裝 J2SE 的目錄。例如︰% setenv JAVA_HOME "/opt/SUNWappserver/jdk"

  2. 依照以下步驟編輯 Application Server 的 PointBase 配置檔案︰

    1. 在 Solaris 和 Linux 系統上,編輯 install_dir/pointbase/tools/serveroption/pbenv.conf 配置檔案,將行︰

      PB_JAVA=%%%PB_JAVA%%%

      變更為

      PB_JAVA=J2SE_location

    1. 在 Windows 系統上,編輯 install_dir\pointbase\tools\serveroption\pbenv.bat 配置檔案,將行︰

      PB_JAVA=%%%PB_JAVA%%%

      變更為

      PB_JAVA=J2SE_location

    其中 J2SE_location 是安裝 J2SE 的目錄。如果您同時安裝 J2SE 與 Application Server,則依預設,其安裝於 install_dir/jdk

    變更後,您可以使用 startserver 程序檔啟動 PointBase。