如何使用SQL脚本部署 App-V 数据库

适用于:Windows Server 2016

使用以下说明使用SQL脚本,而不是安装程序Windows:

  • 安装 App-V 数据库
  • 将 App-V 数据库升级到更高版本

备注

如果已部署 App-V 5.0 SP3 数据库或更高版本,则不需要SQL脚本升级到 App-V 以进行Windows。

如何使用SQL脚本安装 App-V 数据库

  1. 安装数据库脚本之前,请查看并保留 App-V 许可条款的副本。 通过运行数据库脚本,你同意许可条款。 如果不接受它们,则不应使用此软件。

  2. appv_server_setup.exe 从 App-V 发布媒体复制到临时位置。

  3. 在命令提示符下,运行 appv_server_setup.exe 并指定提取数据库脚本的临时位置。

    appv\_server\_setup.exe /layout c:\\_<temporary location path>_
    
  4. 浏览到创建的临时位置,打开提取的 DatabaseScripts 文件夹,并查看相应的 readme.txt 文件以获取说明:

    数据库 要使用的readme.txt文件的位置
    管理数据库 ManagementDatabase 子文件夹
    报告数据库 ReportingDatabase 子文件夹

注意

ManagementDatabase 子文件夹中的readme.txt文件已过期。 下面更新的自述文件中的信息是最新的,应取代 DatabaseScripts 文件夹中提供的自述信息。

重要

对于 App-V 5.0 SP3 之后的 App-V 管理数据库版本,不需要 InsertVersionInfo.sql 脚本。

更新了管理数据库 README 文件内容

***********************************************************************************************************
Before you install and use the Application Virtualization Database Scripts, you must:

- Review the license terms.
- Print and retain a copy of the license terms for your records.

By running the App-V you agree to such license terms. If you do not accept them, do not use the software.
***********************************************************************************************************

Steps to install "AppVManagement" schema in SQL SERVER.

## PREREQUISITES:

 1. Review the installation package.  The following files MUST exist:

    SQL files
    ---------
    Database.sql
    CreateTables.sql
    CreateStoredProcs.sql
    UpdateTables.sql
    Permissions.sql

 2. Ensure the target SQL Server instance and SQL Server Agent service are running.

 3. If you are not running the scripts directly on the server, ensure the 
    necessary SQL Server client software is installed and available from
    the specified location.  Specifically, the "osql" command must be supported for these scripts to run.

## PREPARATION:

 1. Review the database.sql file and modify as necessary.  Although the
    defaults are likely sufficient, it is suggested that the following
    settings be reviewed:

    DATABASE - ensure name is satisfactory - default is "AppVManagement".   

 2. Review the Permissions.sql file and provide all the necessary account information
    for setting up read and write access on the database. Note: Default settings in the file will not work.

## INSTALLATION:

 1. Run the database.sql against the "master" database.  Your user 
    credential must have the ability to create databases.
    This script will create the database.

 2. Run the following scripts against the "AppVManagement" database using the 
    same account as above in order.

    CreateTables.sql
    CreateStoredProcs.sql
    UpdateTables.sql
    Permissions.sql 

更新了报表数据库 README 文件内容

***********************************************************************************************************
Before you install and use the Application Virtualization Database Scripts, you must:

- Review the license terms.
- Print and retain a copy of the license terms for your records.

By running the App-V you agree to such license terms. If you do not accept them, do not use the software.
***********************************************************************************************************

Steps to install "AppVReporting" schema in SQL SERVER.

## PREREQUISITES:

 1. Review the installation package.  The following files MUST exist:

    SQL files
    ---------
    Database.sql
    UpgradeDatabase.sql
    CreateTables.sql
    CreateReportingStoredProcs.sql
    CreateStoredProcs.sql
    CreateViews.sql
    Permissions.sql
    ScheduleReportingJob.sql

 2. Ensure the target SQL Server instance and SQL Server Agent service are running.

 3. If you are not running the scripts directly on the server, ensure the 
    necessary SQL Server client software is installed and executable from
    the location you have chosen.  Specifically, the "osql" command must be supported for these scripts to run.

## PREPARATION:

 1. Review the database.sql file and modify as necessary.  Although the
    defaults are likely sufficient, it is suggested that the following
    settings be reviewed:

    DATABASE - ensure name is satisfactory - default is "AppVReporting".

 2. Review the Permissions.sql file and provide all the necessary account information
    for setting up read and write access on the database. Note: Default settings
    in the file will not work.

 3. Review the ScheduleReportingJob.sql file and make sure that the stored proc schedule
    time is acceptable. The default stored proc schedule time is at 12.01 AM (line 84). 
    If this time is not suitable, you can change this to a more suitable time. The time is in the format HHMMSS.

## INSTALLATION:

 1. Run the database.sql against the "master" database.  Your user 
    credential must have the ability to create databases.
    This script will create the database.

 2. If upgrading the database, run UpgradeDatabase.sql This will upgrade database schema.

 2. Run the following scripts against the "AppVReporting" database using the 
    same account as above in order.
    
    CreateTables.sql
    CreateReportingStoredProcs.sql
    CreateStoredProcs.sql
    CreateViews.sql
    Permissions.sql
    ScheduleReportingJob.sql

相关文章