Creating a Repository on PostgreSQL Server

To create a repository on the PostgreSQL server in Linux OS:

  1. Make sure that BI server is installed on PostgreSQL server.

  2. Download and unpack the archive:

  1. Start the script depending on the unpacked archive:

NOTE. The script contains predefined parameters for creating a repository with default values. See the list of parameters and if required replace default values before running the script.

After executing the script with parameters with default values, the following changes on the PostgreSQL server:

NOTE. A custom scheme is created only if the create_repo_custom_scheme.sh script is executed.

The identifier of the created database is used as a unique identifier of metadata repository.

Changing Parameter Values

To change parameter values that should differ from default values, open the script for edit. Repository creation parameters are used as variables in the following script block:

# postgres credentials
export PGUSERNAME=postgres
export PGPASSWORD=$PGUSERNAME
# create database
export SERVER=localhost
export PORT=5432
export DBNAME=NEW_DATABASE
# create database role
export DBROLE=NEW_USER
# set password for created role
export DBPASSWORD=NEW_USER
# set repository id
export REPOSITORY_ID=$DBNAME
# create custom scheme
export SCHEMA_NAME=NEW_SCHEMA
# work directory
export RM_WORKDIR=/opt/foresight/fp10.x-biserver/bin
export RM_FILE=/opt/foresight/fp10.x-biserver/bin/rm/current.rm4
# service user credentials
export SUSERNAME=SERVICE_USER
export SUSERPASSWORD=$SUSERNAME

Description of variables:

NOTE. A variable is contained in the create_repo_custom_scheme.sh script.

IMPORTANT. The P4AUDIT server user name is reserved by the system and cannot be used.

NOTE. The sent credentials will be available only within a single console session, in which the script is to be executed.

See also:

Creating a Metadata Repository