Collection Contents 上一页 下一页 PDF

UltraLite 数据库用户指南

UltraLite 数据库

UltraLite 运行时

使用 UltraLite 引擎


除了以库的形式或在组件中部署 UltraLite 运行外,还能以 UltraLite 引擎的形式部署 UltraLite 运行时。

UltraLite 引擎的作用相当于 UltraLite 数据库的数据库服务器。它是作为单独的可执行文件向 Windows 和 Windows CE 平台提供的。UltraLite 引擎的优点是,它支持同一台计算机的多个应用程序访问数据库。缺点是,UltraLite 引擎比其它版本的 UltraLite 运行时需要更多的系统资源,因而可能会降低性能。

使用 UltraLite 引擎

  1. 部署客户端版本的组件。

    客户端版本如下所示。其路径是 SQL Anywhere 安装目录的相对路径:

  2. 在 DatabaseManager 构造函数中指定运行时类型。

    只有 Native UltraLite for Java 和 Native UltraLite for UltraLite.NET 需要该步骤。

启动引擎 

可以用以下方式启动 UltraLite 引擎。

要使用 UltraLite 引擎连接到数据库,必须提供用户 ID (uid) 和口令 (pwd) 连接参数。

可以使用 dbulstop 实用程序手工停止 UltraLite 引擎,也可以让应用程序停止引擎。最后一个从数据库断开的应用程序会自动停止 UltraLite 引擎。


Collection Contents 上一页 下一页 PDF