Top
Enterprise Postgres 17 SP1 Installation and Setup Guide for Server

4.7.1 oracle_fdw

This feature is available only when the server command is used. It is not available for instances created with WebAdmin.

4.7.1.1 Setting Up oracle_fdw

  1. Add the path of the OCI library to the environment variable.
    Add the installation path of the OCI library to the LD_LIBRARY_PATH environment variable.

  2. As superuser, run the following command:

    $ su -
    Password:******
    # cp -r /opt/fsepv<x>server64/OSS/oracle_fdw/* /opt/fsepv<x>server64
  3. If a file named libclntsh.so.11.1 does not exist in your OCI library, create a symbolic link with the name libclntsh.so.11.1 to libclntsh.so.xx.1 (xx is the version of the OCI library).

    # ln -s libclntsh.so.xx.1 libclntsh.so.11.1
  4. Restart Fujitsu Enterprise Postgres.

  5. Execute CREATE EXTENSION for the database that will use this feature.
    Use the psql command to connect to the "postgres" database.

    postgres=# CREATE EXTENSION oracle_fdw;
    CREATE EXTENSION

Information

  • If the OCI library is not installed on the server, install it using the Oracle client or Oracle Instant Client.
    Refer to the relevant Oracle manual for information on the installation procedure.

  • If the version of the OCI library is updated, change the path of the OCI library in the LD_LIBRARY_PATH environment variable to the updated path. Also, re-create the symbolic link named libclntsh.so.11.1 if necessary.

4.7.1.2 Removing oracle_fdw

  1. Execute DROP EXTENSION for the database that will use this feature.
    Use the psql command to connect to the "postgres" database.

    postgres=# DROP EXTENSION oracle_fdw CASCADE;
    DROP EXTENSION
  2. As superuser, run the following command:

    $ su -
    Password:******
    # rm -rf /opt/fsepv<x>server64/filesCopiedDuringSetup

    Information

    The files copied during setup can be checked below.

    # find /opt/fsepv<x>server64/OSS/oracle_fdw