Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Update 2 发行说明

配置 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 的安装目录。如果已随 Application Server 一起安装了 J2SE,则该 J2SE 默认安装在 install_dir/jdk

    进行此更改后,您可以使用 startserver 脚本启动 PointBase。