Microsoft SQL Server
It’s assumed that SQL Server has been installed.
One notation used is <FMEServerDir>, which is the installation directory of FME Server. In Windows, this is typically C:\Program Files\FMEServer.
SQL scripts are provided to help with SQL Server database configuration. These SQL scripts are located in the <FMEServerDir>\Server\database\sqlserver\ directory of the machine on which the FME Server core was installed (not the machine on which the database is installed).
If you are upgrading, you should back up any job history you want to keep.
The SQLServer_createDB.sql script creates the required FME Server tables.
Oracle
It’s assumed that Oracle database is installed.
One notation used is <FMEServerDir>, which is the installation directory of FME Server. In Windows, this is typically C:\Program Files\FMEServer.
If you are upgrading, you should back up any job history you want to keep.
This section describes how to configure an Oracle database. You can configure the Oracle database from other Oracle database tools depending on your personal preference.
For an Oracle database configuration, various SQL scripts are provided to help.
These SQL scripts are located in the <FMEServerDir>\Server\database\oracle directory of the machine on which the FME Server core was installed (not the machine on which the database is installed).
To use the command prompt to configure the database, follow these instructions:
In this example, the following parameters were used and entered:
@”<FMEServerDir>\Server\database\oracle\oracle_createUser.sql”
By default, the provided SQL script creates an FME Server database user named fmeserver with the password fmeserver. The default TABLESPACE is the Oracle DB configured default. If the created user doesn’t have read/write permissions on the default TABLESPACE, change the default TABLESPACE or create an appropriate TABLESPACE.
This command creates a TABLESPACE on the Oracle DB server called FMESERVER shown in the following example:
CREATE SMALLFILE TABLESPACE FMESERVER DATAFILE 'E:\ORADATA\FMESERVER01.DBF' SIZE 100000K REUSE AUTOEXTEND ON NEXT 2048K MAXSIZE 1024M LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO DEFAULT NOCOMPRESS;
By default this command uses the TABLESPACE “FMESERVER” as shown in the following example:
CREATE USER fmeserver IDENTIFIED BY fmeserver DEFAULT TABLESPACE "FMESERVER" TEMPORARY TABLESPACE "TEMP";
In this example, the following parameters were used and entered on the user interface:
Note: The preceding example assumes your user name and password are fmeserver.
@”<FMEServerDir>\Server\database\oracle\oracle_createDB.sql”
Note: If you drop the FME Server database and login user, run the oracle_dropUser.sql script.
Oracle SQL*Plus is a freeware client for connecting to an Oracle database. You can download it from the Internet using the following address:
http://www.oracle.com/technology/software/tech/sql_plus/index.html
For more information, see the Oracle web site at:
http://www.oracle.com/technology/sample_code/tech/sql_plus/htdocs/demobld.html
The instructions that follow describe how to configure Oracle for use with FME Server. These instructions describe using SQL*Plus for the database setup. Depending on your personal preference, you can also configure the Oracle database using other Oracle tools.
For Oracle configurations, various SQL scripts are provided to help with Oracle database configuration. These SQL scripts are located in the <FMEServerDir>/Server/database oracle/ directory of the machine on which the FME Server core was installed (not the machine on which the database is installed).
To use the command prompt to configure the database, follow these instructions:
Run sqlplus and log on as a user with adequate privileges, such as SYSDBA.
For example:
sqlplus SYS/<password>@<Host>:<Port>/<service> AS SYSDBA
Create an FME Server database user. From the SQL prompt, run the oracle_createUser.sql script by entering the following command:
@”<FMEServerDir>/Server/database/oracle/oracle_createUser.sql”
By default, the provided SQL script creates an FME Server database user named fmeserver with the password fmeserver. The default TABLESPACE is the Oracle DB configured default.
If the created user doesn’t have read/write permissions on the default TABLESPACE, you need to change the default TABLESPACE or create an appropriate TABLESPACE.
This command creates a TABLESPACE on the Oracle DB server called FMESERVER shown in the following example:
CREATE SMALLFILE TABLESPACE FMESERVER DATAFILE '/ORADATA/FMESERVER01.DBF' SIZE 100000K REUSE AUTOEXTEND ON NEXT 2048K MAXSIZE 1024M LOGGING EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO DEFAULT NOCOMPRESS;
By default this command uses the TABLESPACE “FMESERVER” shown in this example:
CREATE USER fmeserver IDENTIFIED BY fmeserver DEFAULT TABLESPACE "FMESERVER" TEMPORARY TABLESPACE "TEMP";
When an FME Server database user has been created, you can connect to it by logging on again to SQL*Plus or by entering the following command:
CONNECT fmeserver/fmeserver@<Host>:<Port>/<service>;
When connected to the FME Server database, run the oracle_createDB.sql script by entering the following command:
@”<FMEServerDir>/Server/database/oracle/oracle_createDB.sql”
PostgreSQL
PostgreSQL is an open source database that can be downloaded from the Internet. For more information, see the PostgreSQL web site at:
It’s assumed that PostgreSQL is already installed .
One notation used is <FMEServerDir>, which is the installation directory of FME Server. In Windows, this is typically C:\Program Files\FMEServer.
It’s also assumed that you have JRE 5 or higher and PostgreSQL database installed before you proceed further. If you want to use the JDBC driver, there are several steps to perform.
If you are upgrading, you should back up any job history you want to keep.
This section describes how to configure a PostgreSQL database. You can configure this database from other PostgreSQL database tools, depending on your personal preference.
For a PostgreSQL database configuration, various SQL scripts are provided to assist you. These SQL scripts are located in the following directory:
<FMEServerDir>\Server\database\postgresql
Note: This directory refers to the machine on which the FME Server core was installed (not the machine on which the database is installed).
To use the command prompt to configure the database, follow these instructions:
\i '<FMEServerDIR>/Server/database/postgresql/postgresql_createUser.sql'
From the SQL prompt, run the postgresql_createDB.sql script by entering the following command:
\i '<FMEServerDIR>/Server/database/postgresql/postgresql_createDB.sql'
By default, the provided SQL script creates an FME Server database named fmeserver and grants all privileges on the database to user fmeserver.
From the SQL prompt, run the postgresql_createSchema.sql script by entering the following command:
\i '<FMEServerDir>/Server/database/postgresql/postgresql_createSchema.sql'
By default, the provided SQL script creates all FME Server related tables, indexes, views, and triggers.
Note: The preceding example assumes your user name and password are fmeserver.
This section describes configuring PostgreSQL from both the command prompt and a user interface, such as the PostgreSQL Query Browser and the PostgreSQL Administrator.
For PostgreSQL configurations, various SQL scripts are provided to help with PostgreSQL database configuration. These SQL scripts are located in the <FMEServerDir>/Server/database/postgresql/ directory of the machine on which the FME Server core was installed (not the machine on which the database is installed).
postgresql_createSchema.sql
– This script creates all FME Server related tables, indexes, views, and triggers.To use the command prompt to configure the database, follow these instructions:
<FMEServerDir>/Server/database/postgresql/
Run the postgresql program with the postgresql_createDB.sql script:
psql" -d postgres -h <hostname> -p <port> -f postgresql_createDB.sql
Run the postgresql program with the postgresql_createUser.sql script:
psql -d postgres -h <hostname> -p <port> -f postgresql_createUser.sql
Run the postgresql program with the postgresql_createSchema.sql script, as user fmeserver:
psql -U fmeserver -d fmeserver -h <hostname> -p <port> -f postgresql_createSchema.sql
Note: If you drop the FME Server database and login user, run the postgresql program with the appropriate postgresql_dropDB.sql or postgresql_dropUser.sql scripts.
After the database has been created, see Post-Configuration Scripts for an additional step.
Safe Software Inc. www.safe.com