Skip to main content
You can build a FlexiCapture database by hand instead of creating it from the Administration and Monitoring Console. First create a blank database, and then initialize and configure it.

Create a blank database

For Microsoft SQL Server or Oracle, create a blank database with your standard database management tools, and then continue with Initialize and configure the database. For PostgreSQL, create the database from the psql client:
  1. Connect to the PostgreSQL server using an account with CREATEDB+CREATEROLE or SUPERUSER privileges:
  2. Create a user account with a predefined password and the right to log in to the server (here and in later steps, rolename is your user name):
  3. Create a new database (here and in later steps, dbname is your database name):
  4. Grant the user the rights to connect to the database and to create temporary tables:
  5. Prioritize the fc schema over the public schema:
  6. Connect to the newly created database:
  7. Create an fc schema and specify the user you created as its owner:
  8. Create an ltree extension in the database:
  9. Disconnect from the PostgreSQL server.
Carry out all subsequent operations on the PostgreSQL database under this user account.

Initialize and configure the database

After the blank database exists, complete the following steps. Where the database engines differ, run the variant for your database.
  1. Run the schema description script for your database:
    • Microsoft SQL Server: Description.sql
    • Oracle: Description_Oracle.sql
    • PostgreSQL: Description_PostgreSQL.sql
    By default, these scripts are in the C:\inetpub\wwwroot\FlexiCapture12\Server folder on the computer where the Application Server is installed.
  2. Run the data initialization script for your database:
    • Microsoft SQL Server: DBInitFill.sql
    • Oracle: DBInitFill_Oracle.sql
    • PostgreSQL: DBInitFill_PostgreSQL.sql
  3. Provide a unique identifier for the database. Microsoft SQL Server:
    PostgreSQL:
  4. Add the first user. Microsoft SQL Server:
    PostgreSQL:
    Where:
    • Login — The login the user will use. Specify the login of the Windows user that will open the Administration and Monitoring Console when connecting to the database.
    • FullName — The full name of the user as displayed in their profile.
    • Email — The user’s email address.
  5. Specify the system administrator roles for the new user. Microsoft SQL Server:
    PostgreSQL:
  6. Connect to the newly created database using the Administration and Monitoring Console.
For details about the permissions an account needs to create and configure a database, see Create a database.