Share this page

# Database prerequisites

This section provides an overview of the prerequisites for connecting to an Oracle, Microsoft SQL, and PostgreSQL database server.

Note:

- Make sure that you create the database user before you start the installation process.

- Cloud managed databases (RDS) are not supported.

- Oracle, Microsoft SQL, and PostgreSQL database servers can be set with an IPv4 or IPv6 address. When using IPv6 address, you must use an IPv6 host name and not an FQDN

In this topic:

## Oracle Database servers

This section lists the Oracle Database Admin user requirements, client requirements, user profile, and additional Oracle grants.

Oracle Database Admin user requirements

- To connect to an Oracle database server, the installing database user must have sufficient permissions to perform specific administrative tasks in Oracle. These tasks include creating the project user schema and copying data between projects.

- If you are unable to use the Oracle system user due to security reasons, we recommend that your database administrator create a database administrative user, for example lre_admin_db, with the specific permissions required to install OpenText Enterprise Performance Engineering.

  Your database administrator can create a database administrative user using a script, see this KB article. This script creates the database administrative user with the recommended grants required on the database.

  If you are using a container database (CDB), all scripts for creating the database user must be run while directly connected to the CDB. Those scripts must be run by a user with `SYSDBA` system permissions.

  Note: When using CDB, the script invokes the "CONTAINER=Current" parameter.

Oracle client requirements

- The Oracle clients must be installed on the OpenText Enterprise Performance Engineering server with Administrator installation type, and connectivity must be successfully established with the Oracle server.

- The tnsnames.ora file must contain the net service configuration that has the information to access the Oracle database server.

- Only a 64-bit Oracle client installation is required.

To install the Oracle clients:

1. Create a root folder for the Oracle clients (`c:\oracle` in the example).

2. Install the Oracle client 64-bit version within a new dedicated folder (`client_64` in the example) under the root folder.

3. Copy the relevant tnsnames.ora and sqlnet.ora files into the Oracle clients root folder.

4. Set the TNS_ADMIN environment variable for the Oracle clients root folder (see the example below).

5. Restart the machine.

6. Install OpenText Enterprise Performance Engineering. See Install and configure servers and hosts.

Oracle Database considerations: Specify an Oracle user profile

Because every project created in OpenText Enterprise Performance Engineering is a user in Oracle, and each user created needs to be connected to a profile, you must specify a profile for your project to use in the configuration. This profile is added to the user when the Oracle user is created.

1. On the OpenText Enterprise Performance Engineering server, stop the OpenText Performance Engineering Backend Service.

2. Copy the following:

   Copy code

       "SiteParameters": {
          "OracleDbUserProfileForNewProject": {
          "Value": "",
          "Description": "Add the db profile that will be used when creating a new oracle user, value is a string",
          "IsSystem": true,
          "IsVisible": false
          }
       }

3. Depending on the type of environment you are using:

   - For a clustered environment: To affect all cluster nodes, paste the copied section to the remote appsettings.json file under the repository (for example, pc-repo\SqlEnvironment\system_config\).

   - For a single node: To affect this node only, paste the copied section to appsettings.json in the <repository>\system_config\ folder.

   Note: Do not make any changes to the default configuration file, appsettings.defaults.json.

4. Add the user profile you want to use to the OracleDBUserProfileForNewProject value.

   Make sure that you define the user profile in the same way that it is defined in the database; with or without quotes. When defined with quotes in the database, you must use the escape character ( \ ) in the configuration file.

   Example of profile created without quotes:

   Copy code

       "SiteParameters": {
          "OracleDbUserProfileForNewProject": {
          "Value": "myprofile",
          "Description": "",
          "IsSystem": true,
          "IsVisible": false
          }
       }

   Example of profile created with quotes using escape character:

   Copy code

       "SiteParameters": {
          "OracleDbUserProfileForNewProject": {
          "Value": "\"myprofile\"",
          "Description": "",
          "IsSystem": true,
          "IsVisible": false
          }
       }

5. Make sure that the JSON file is valid and save your changes.

Oracle Database considerations: Add additional Oracle grants

You can customize the configuration file by adding additional Oracle grants to a user if the default grants are not sufficient.

1. On the OpenText Enterprise Performance Engineering server, stop the OpenText Performance Engineering Backend Service.

2. Copy the following:

   Copy code

       "SiteParameters": {
          "OracleDbUserExtraGrants": {
          "Value": "",
          "Description": "Add extra grants to each user created by the app, separate each grant with ';' omit the word 'GRANT' and 'to', will added by the app.",
          "IsSystem": true,
          "IsVisible": false
          }
       }

3. Depending on the type of environment you are using:

   - For a clustered environment: To affect all cluster nodes, paste the copied section to the remote appsettings.json file under the repository (for example, pc-repo\SqlEnvironment\system_config\).

   - For a single node: To affect this node only, paste the copied section to appsettings.json in the <repository>\system_config\ folder.

   Note: Do not make any changes to the default configuration file, appsettings.defaults.json.

4. Add any specific grants that you want to give to a user to the OracleDBUserExtraGrants value.

   Separate each grant with a semi-colon (;) and omit the words "GRANT" and "to" because they are added automatically.

   Example:

   Copy code

       "SiteParameters": {
          "OracleDbUserExtraGrants": {
          "Value": "EXECUTE ON SYS.DBMS.LOB",
          "Description": "",
          "IsSystem": true,
          "IsVisible": false
          }
        }

5. Make sure the JSON file is valid and save your changes.

Back to top

## Microsoft SQL Database servers

Below is a list of prerequisites that are required when using a Microsoft SQL Database server.

Prerequisite | Description
--- | ---
DB connection permissions | To connect to a Microsoft SQL database server, the installing database user must have sufficient permissions to perform specific administrative tasks in SQL. For SQL Authentication: An admin database user with "dbcreator" level permissions and a user with "public" permissions. For Windows Authentication: A domain user with "dbcreator" permissions. OpenText Enterprise Performance Engineering must be configured with this service user.
Collation | Collation for the SQL server must be set to SQL_Latin1_General_CP1_CI_AS.
Connection parameters | To add additional connection string parameters to a SQL server: Go to <Server_installdir>\LRE_BACKEND and open the appsettings.defaults.json file. In the "SiteParameters" section, modify the "MssqlExtraGlobalConnectionStringParams" connection string as required. Save the changes. Restart the OpenText Performance Engineering Backend Service, and try the database connection again from the Configuration wizard. Note: If the certificate installed on the SQL Server is self-signed (which is usually not recommended provided a proper certificate is installed), you need to add `"TrustServerCertificate=true"` to `"Value"`. After the change, this section should look like:

Back to top

## PostgreSQL Database servers

To connect to a PostgreSQL database server, the installing database user must either be:

- A PostgreSQL superuser with "CreateDatabase" and "CreateRole" permissions, or

- A PostgreSQL non-superuser with the following permissions: `Rolcanlogin = true`, `Rolcreatedb = true`, `Rolcreaterole = true`, and `Rolconnlimit = -1`.

Notes and limitations

- Migrating projects from versions 12.6x on Oracle or Microsoft SQL to 202x on PostgreSQL is not supported.

- If you try to install two environments (such as staging and production or a multi-tenant environment) on the same PostgreSQL database server, they overrun each other.

  Resolution: Set up a separate PostgreSQL database server for each environment.

  1. The first environment can be configured by running the Configuration wizard. For details, see Configure servers and hosts.

  2. For the second environment, you must change the tenant name.

     1. Open the appsettings.defaults.json file located in the <Server_installdir>\LRE_BACKEND folder.

     2. In the ‘Site’ section, change the “LRETenantName” value to one that is to different to the values on all the other environments.

- The first time you install OpenText Enterprise Performance Engineering, and for every time zone change you make on the OpenText Enterprise Performance Engineering server or database, make sure that you align the time zone from the operating system with the time zone in postgresql.conf on the database server machine. Failure to do this results in the Active Reservation/Timeslot ID column being empty in the Hosts grid when you run a test.

  To align the time zone:

  1. On the database server machine, open pgAdmin. Open lre_<tenant-name>_tenant_db or any OpenText Enterprise Performance Engineering related DB file.

     Open a new script and run:

     Copy code

         SELECT now()

     Check if there are any differences between the time displayed in the query result and the time of the operating system.

  2. Check the time zone set in PostgreSQL by running:

     Copy code

         SHOW timezone

     Check the time zone on the operating system to verify that a different time zone is set. If the time zones are the same then you have a different issue and there is no need to continue with these steps.

  3. Go to <postgresql-install-dir>/<version-of-pg>/data and open the postgresql.conf file. Search for the "timezone" section. You should find the following line:

     Copy code

         timezone = '<Continent>/<City>'

  4. Go back to pgAdmin and run the following:

     Copy code

         SELECT name, abbrev, utc_offset, is_dst FROM pg_timezone_names ORDER BY utc_offset;

     This should give you a table of all available values that you could put in the postgresql.conf file. Select the name that matches the operating system time zone. Replace the value in postgresql.conf with the chosen value, and save the file.

  5. In pgAdmin run:

     Copy code

         SELECT pg_reload_conf();

     Followed by:

     Copy code

         SHOW timezone

     Followed by:

     Copy code

          SELECT now()

     It should now display the correct (OS) time zone and time.

  6. Run a test and check for Active Reservation/Timeslot ID in the Hosts grid. The problem should be resolved.

  Back to top

https://admhelp.microfocus.com Enterprise Performance Engineering,LoadRunner Enterprise 8942
Tips to improve your search results...OpenText™ Enterprise Performance Engineering Help Center OpenText™ Enterprise Performance Engineering Help 26.1 All View Local Help Center View Online Help Center Version: