Client connection defaults/other defaults v15
These parameters set miscellaneous client connection defaults.
oracle_home
Parameter type: String
Default value: none
Range: n/a
Minimum scope of effect: Cluster
When value changes take effect: Restart
Required authorization to activate: EDB Postgres Advanced Server service account
Before creating a link to an Oracle server, you must direct EDB Postgres Advanced Server to the correct Oracle home directory. Set the LD_LIBRARY_PATH
environment variable on Linux or PATH
on Windows to the lib
directory of the Oracle client installation directory.
Alternatively, you can set the value of the oracle_home
configuration parameter in the postgresql.conf
file. The value specified in the oracle_home
configuration parameter overrides the LD_LIBRARY_PATH
environment variable in Linux and PATH
environment variable in Windows.
Note
The oracle_home
configuration parameter must provide the correct path to the Oracle client, that is,OCI
library.
To set the oracle_home
configuration parameter in the postgresql.conf
file, add the following line:
<lib_directory> is the name of the oracle_home
path to the Oracle client installation directory that contains libclntsh.so
in Linux and oci.dll
in Windows.
After setting the oracle_home
configuration parameter, you must restart the server for the changes to take effect. Restart the server:
On Linux, using the
systemctl
command orpg_ctl
servicesOn Windows, from the Windows Services console
odbc_lib_path
Parameter type: String
Default value: none
Range: n/a
Minimum scope of effect: Cluster
When value changes take effect: Restart
Required authorization to activate: EDB Postgres Advanced Server service account
If you're using an ODBC driver manager and if it's installed in a nonstandard location, specify the location by setting the odbc_lib_path
configuration parameter in the postgresql.conf
file:
odbc_lib_path = 'complete_path_to_libodbc.so'
The configuration file must include the complete pathname to the driver manager shared library, which is typically libodbc.so
.
- On this page
- oracle_home
- odbc_lib_path