Freigeben über


Bereitstellen der App-V-Datenbanken mithilfe von SQL-Skripts

Gilt für: Windows Server 2016

Verwenden Sie die folgenden Anweisungen, um SQL-Skripts anstelle von Windows Installer zu verwenden, um:

  • Installieren der App-V-Datenbanken
  • Upgrade der App-V-Datenbanken auf eine höhere Version

Hinweis

Wenn Sie bereits eine App-V 5.0 SP3-Datenbank oder höher bereitgestellt haben, müssen die SQL-Skripts nicht auf App-V für Windows aktualisiert werden.

Installieren der App-V-Datenbanken mithilfe von SQL-Skripts

  1. Bevor Sie die Datenbankskripts installieren, überprüfen und bewahren Sie eine Kopie der App-V-Lizenzbedingungen auf. Durch ausführen der Datenbankskripts stimmen Sie den Lizenzbedingungen zu. Wenn Sie sie nicht akzeptieren, sollten Sie diese Software nicht verwenden.

  2. Kopieren Sie appv_server_setup.exe von den App-V-Releasemedien an einen temporären Speicherort.

  3. Führen Sie an einer Eingabeaufforderung appv_server_setup.exe aus, und geben Sie einen temporären Speicherort zum Extrahieren der Datenbankskripts an.

    appv\_server\_setup.exe /layout c:\\_<temporary location path>_
    
  4. Navigieren Sie zu dem temporären Speicherort, den Sie erstellt haben, öffnen Sie den extrahierten Ordner DatabaseScripts , und überprüfen Sie die entsprechende readme.txt Datei, um Anweisungen zu erhalten:

    Datenbank Speicherort der zu verwendenden readme.txt Datei
    Verwaltungsdatenbank ManagementDatabase-Unterordner
    Berichtsdatenbank ReportingDatabase-Unterordner

Achtung

Die readme.txt Datei im Unterordner ManagementDatabase ist veraltet. Die Informationen in den aktualisierten Readme-Dateien unten sind die aktuellsten und sollten die Infodateiinformationen in den DatabaseScripts-Ordnern ersetzen.

Wichtig

Das InsertVersionInfo.sql Skripts ist für Versionen der App-V-Verwaltungsdatenbank, die höher als App-V 5.0 SP3 sind, nicht erforderlich.

Inhalt der README-Datei der Verwaltungsdatenbank aktualisiert

***********************************************************************************************************
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 

Inhalt der README-Datei der Berichtsdatenbank aktualisiert

***********************************************************************************************************
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