Set Up Databases Manually
When you Install PerformanceGuard Server, the PerformanceGuard installer offers to automatically create the PerformanceGuard frontend and backend server databases for you. If you want the installer to do this for you, you must provide system administrator (sa) credentials for the SQL Server(s) that’ll host the databases.
This is by far the most convenient way to set up the databases. However, many organizations have strict rules that only allow selected people, typically database administrators (dbas), to be in charge of SQL Servers and know the sa credentials for those servers. If that’s the case in your organization, you’ll not be able to set up the frontend and backend server databases during the PerformanceGuard installation.
In those cases, you—or more likely your dba—can set up the frontend and backend server databases manually after you have installed PerformanceGuard:
Step 1: Create Databases
Section titled “Step 1: Create Databases”On the server on which you have installed PerformanceGuard, do the following:
From an elevated command prompt, run a command to create the backend server database. The command should be similar to the one in the example, but you should substitute the PerformanceGuard installation paths and argument values with relevant paths and values for your organization:
Then run a command like the one in the following example to create the frontend server database. Again you should substitute the example’s paths and arguments with relevant paths and values for your organization:
List of Arguments
Section titled “List of Arguments”- -s SERVER: SQL server to use. Example: localhost.
- -d NAME: Name of database to patch or create.
- -u USER: SQL user to perform actions. For install mode (see the following) a user with authorization to create a new database must be used, for example the sa user.
- -p PASSWORD: Password of user.
- -D DIRECTORY: Folder that contains the SQL patch files. Make sure that you use a folder with appropriate SQL files, that is FExxxxx.sql files for frontend server database and BEExxxxx.sql files for backend server databases.
- -f FILE \[FILE …\]: SQL file to apply to database; used instead of —directory to specify a single SQL file.
- -m {install,patch}: The mode to run: patch (patching an existing database) or install (create databases with administrator user).
- -P PROPERTIES: The name of a file that contains key value pairs. All occurrences of a key in the SQL scripts will be replaced by its corresponding value.
Step 2: Patch Databases
Section titled “Step 2: Patch Databases”On the server on which you have installed PerformanceGuard, do the following:
From an elevated command prompt, run a command to perform a necessary patching of the backend server database. The command should be similar to the one in the example, but you should substitute the PerformanceGuard installation paths and argument values with relevant paths and values for your organization:
Then run a command like the one in the following example to patch the frontend server database. Again you should substitute the example’s paths and arguments with relevant paths and values for your organization:
Step 3: Start PerformanceGuard Services
Section titled “Step 3: Start PerformanceGuard Services”When the frontend and backend server databases have been set up, make sure that you start the following PerformanceGuard services:
- PerformanceGuard Backend Server service
- PerformanceGuard Frontend Server service
- PerformanceGuard Web Server service
You can either do this through Windows’ Service Manager or from a command line with the following commands:
net start pgbackendnet start pgfrontendnet start pgdisplay