Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - 编程 » 部署 SQL Anywhere » 部署数据库和应用程序 » 部署管理工具 » 在 Linux、Solaris 和 Mac OS X 上部署管理工具

 

第 3 步:设置环境变量

要运行管理工具,必须定义或修改几个环境变量。此操作通常在 SQL Anywhere 安装程序创建的 sa_config.sh 文件中完成,但也可以灵活地通过最适合您的应用程序的方式完成。

  1. 设置 PATH 包含下面的内容:

    /opt/sqlanywhere11/bin32

    (选择适合需要的)。

  2. 设置 LD_LIBRARY_PATH 以包含下面的内容:

    对于 Linux:

    /opt/sqlanywhere11/jre_1.6.0_linux_sun_i586/lib/i386/client
    /opt/sqlanywhere11/jre_1.6.0_linux_sun_i586/lib/i386
    /opt/sqlanywhere11/jre_1.6.0_linux_sun_i586/lib/i386/native_threads

    对于 Solaris:

    /opt/sqlanywhere11/jre_1.6.0_solaris_sun_sparc/lib/sparc/client
    /opt/sqlanywhere11/jre_1.6.0_solaris_sun_sparc/lib/sparc
    /opt/sqlanywhere11/jre_1.6.0_solaris_sun_sparc/lib/sparc/native_threads
  3. 设置以下环境变量:

    SQLANY11="/opt/sqlanywhere11"