Configuring a PostgreSQL database for AR System installation
Remedy supports case-sensitive PostgreSQL 10 database. The PostgreSQL support is available only for fresh installations of Remedy done through silent installation on the supported Linux platforms. For a list of supported Linux platforms and versions, see
BMC Solution and product availability and compatibility utility (SPAC)
.
You must configure your PostgreSQL database before you install the Remedy platform or any application in Remedy IT Service Management (ITSM) Suite.
You can install PostgreSQL database on the same computer where Remedy AR System server is installed, or on a remote server that is connected to the computer on which you plan to install Remedy AR System server. Remedy AR System server uses JDBC to connect to remote\local database.
To prepare your PostgreSQL database
- As a database administrator, install at least one instance of the PostgreSQL database. For more information, see PostgreSQL documentation.
Update the pg_hba.conf file.
The pg_hba.conf file stores the client authentication information. Perform the following steps to modify the IP address and password-based authentication method in the local and host records:Open the pg_hba.conf file by using the following command:
#vi /var/lib/pgsql/10/data/pg_hba.conf
Update the local and host records to use md5 authentication, as follows:
local all all md5 host all all 0.0.0.0/0 md5
Do not delete the remaining records in the pg_hba.conf file. You must manually update these values and not copy the values from here.
Note
If you do not update password-based authentication to md5, the AR System server installation and tenant creation will fail.
The value0.0.0.0/0
opens PostgreSQL for all incoming traffic. Consult your PostgreSQL administrator and update this parameter to configure incoming connections that you want to allow for the PostgreSQL instance.
Update the postgresql.conf file:
Open the postgresql.conf file by using the following command:
#vi /var/lib/pgsql/10/data/postgresql.conf
Uncomment and update the listen_addresses = 'localhost' parameter as follows:
listen_addresses = '*'
Uncomment and update the password_encryption parameter as follows:
password_encryption = md5
(Optional) Update the max_connections parameter and specify the maximum number of connections that PostgreSQL must accept.
Stop the PostgreSQL server and restart it by using the following commands:
#service postgresql-10 stop #service postgresql-10 start
To create a PostgreSQL database and a user for Remedy AR System
Perform the following steps to create a PostgreSQL database and user for Remedy AR System.
Log in as a root user and switch to the PostgreSQL account:
su - postgres
Run the following command and then type your PostgreSQL password:
psql
Create a user ARAdmin by using the following command:
CREATE ROLE "ARAdmin" LOGIN PASSWORD 'AR#Admin#' NOSUPERUSER INHERIT CREATEDB CREATEROLE NOREPLICATION;
- Create a schema by using the following command:
CREATE SCHEMA IF NOT EXISTS ARSystem AUTHORIZATION "ARAdmin";
Create a database ARSystem by using the following command:
CREATE DATABASE "ARSystem" ENCODING = 'UTF8' CONNECTION LIMIT = -1;
Create a dblink extension for the AR System database by using the following command:
CREATE EXTENSION dblink SCHEMA ARSystem;
Provide access to the user on the database:
GRANT ALL PRIVILEGES ON DATABASE "ARSystem" TO "ARAdmin";
Exit from the PostgreSQL prompt.
Navigate to the AR System server installation directory and run the following command:
./setup.bin -i silent -DOPTIONS_FILE=/path/to/ARSystem-ini-template.txt -Dbmc.install.BMC_ENABLE_PSQL=true
Where to go from here
Next task | Go to Running the installer in silent mode. |
---|
Comments
Please update the PQSL commands. ALL of them need a closing ; (semicolon) to work!
Thank you for your feedback. We have updated the topic.
Thanks, Manash
see case 01622769
Hi Conrad,
Thank you for your feedback. We have updated the topic.
Regards, Himanshu
Log in or register to comment.