SQL 스크립트를 사용하여 App-V 데이터베이스를 배포하는 방법

적용 대상: Windows Server 2016

다음 지침을 사용하여 Windows Installer가 아닌 SQL 스크립트를 사용하여 다음을 수행합니다.

  • App-V 데이터베이스 설치
  • App-V 데이터베이스를 이후 버전으로 업그레이드

참고

App-V 5.0 SP3 데이터베이스 이상을 이미 배포한 경우 SQL 스크립트는 Windows용 App-V로 업그레이드할 필요가 없습니다.

SQL 스크립트를 사용하여 App-V 데이터베이스를 설치하는 방법

  1. 데이터베이스 스크립트를 설치하기 전에 App-V 사용 조건의 복사본을 검토하고 유지합니다. 데이터베이스 스크립트를 실행하면 사용 조건에 동의하는 것입니다. 동의하지 않는 경우 이 소프트웨어를 사용하면 안 됩니다.

  2. App-V 릴리스 미디어에서 임시 위치로 appv_server_setup.exe 복사합니다.

  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 

보고 데이터베이스 추가 정보 파일 콘텐츠 업데이트됨

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