This page provides the system requirements and installation instructions for the FlexDeploy database tier on PostgreSQL.

Requirements

Installation Instructions

Customers should follow their standard practices for Database and File System(Artifact Repository) backup. During upgrade procedure, we have defined steps to take complete backup of database and file system as well.


You must be in /database/postgres/install folder from extracted zip when executing scripts.

FlexDeploy uses three schemas (FD, FF, and FD_ADMIN) in the database and performs all work using the FD_ADMIN user. Run database scripts from where you extracted downloaded FlexDeploy zip file. Navigate to the /database/postgres/install directory.

Step 1

You should set the FD_ADMIN password before running the scripts.

You should record the FD_ADMIN password, as that will be used in configuration of data source on application server.

Step 2. Install PostgreSQL database, if you have not done that already. Follow guidelines for your platform as documented in PostgreSQL documentation.

Step 3. Create flexdeploy database.

Database name is setup as flexdeploy various documentation steps, you are free to use different name. If you use database name other than flexdeploy, then consider following points.

  1. Modify commands below appropriately for different database name.
  2. Modify <FlexDeploy Unzip Folder>/database/postgres/install/scripts/CreateSchemas.sql, statement "GRANT CONNCET ON DATABASE flexdeploy TO FD_ADMIN;" should be modified for proper database name.
  3. Adjust JDBC URL in context.xml appropriately.

These are high level steps, you can find more detailed steps in PostgreSQL documentation.

cd <PosgreSQL Install Home>\pgsql\bin
initdb.exe -D <Data Folder> --username=postgres --auth=trust
pg_ctl -D ../data -l logfile start
pg_ctl start -l <Data Folder>\server.log -D <Data Folder>
createdb flexdeploy

Step 4. Create FlexDeploy schema objects.

Linux

Windows