Развертывание базы данных App-V с помощью скриптов SQL

Назначение: Application Virtualization 5.1

С помощью скриптов SQL, а не установщика Windows, выполните следующие действия.

  • Установка баз данных App-V 5.1

  • Обновление баз данных App-V до более поздней версии

Примечание

Если вы уже развернули базу данных App-V 5.0 с пакетом обновления 3 (SP3), для обновления до App-V 5.1 скрипты SQL не требуются.

Установка баз данных App-V с помощью скриптов SQL

  1. Перед установкой скриптов баз данных просмотрите и сохраните копию условий лицензии App-V. Запуская скрипты базы данных, вы соглашаетесь с условиями лицензии. Если вы не согласны с ними, не используйте это ПО.

  2. Скопируйте файл appv_server_setup.exe с носителя App-V во временный каталог.

  3. В командной строке запустите файл appv_server_setup.exe и укажите временный каталог для извлечения скриптов баз данных.

    Пример. appv_server_setup.exe /layout c:\<временный_каталог>

  4. Перейдите в созданный временный каталог, откройте извлеченный каталог DatabaseScripts и просмотрите файл Readme.txt, содержащий инструкции:

    База данных Расположение файла Readme.txt для использования

    База данных управления

    Подкаталог ManagementDatabase

    База данных отчетов

    Подкаталог ReportingDatabase

    CautionОсторожно
    Файл readme.txt в подкаталоге ManagementDatabase является устаревшим. Сведения в обновленных файлах readme ниже являются самыми актуальными и заменяют информацию в файлах readme, находящихся в каталоге DatabaseScripts.

    Важно!

    Для версий базы данных управления App-V старше App-V 5.0 с пакетом обновления 3 (SP3) скрипт InsertVersionInfo.sql не является обязательным.

    Скрипт Permissions.sql необходимо обновить в соответствии с шагом 2 в статье базы знаний 3031340. Шаг 1 не является обязательным для версий App-V старше App-V 5.0 с пакетом обновления 3 (SP3).

Содержимое обновленного файла README базы данных управления

**************************************************************** Before you install and use the Application Virtualization Database Scripts you must: 1.Review the Microsoft Application Virtualization Server 5.0 license terms. 2.Print and retain a copy of the license terms for your records. By running the Microsoft Application Virtualization Database Scripts 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: 1.Review the Microsoft Application Virtualization Server 5.0 license terms. 2.Print and retain a copy of the license terms for your records. By running the Microsoft Application Virtualization Database Scripts 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
    InsertVersionInfo.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
    InsertVersionInfo.sql
    Permissions.sql
    ScheduleReportingJob.sql
-------------------------------------------------------------------------------

Есть предложение для App-V? Выдвигайте предложения и голосуйте за них здесь.
Есть вопрос по App-V? Найдите ответ на форуме TechNet по App-V.

См. также

Задачи

Развертывание сервера App-V 5.1

Другие ресурсы

Развертывание сервера App-V 5.1

-----
Дополнительные сведения о MDOP можно найти в библиотеке TechNet, статьях по устранению неполадок на вики-сайте TechNet или подписавшись на новости в Facebook или Twitter.
-----