Support Center
If you need to configure Zato for Oracle DB connections and you want to ensure the highest performance possible, this is the post which goes through the process step-by-step. Read on for details.
Note that Zato 3.1+ is required. The tasks involved are:
Choose your preferred operating system and follow the general installation instructions - Oracle DB connections will work the same no matter the system Zato runs on
Create a Zato environment with as many servers as required. Again, there are no Oracle-specific steps at this point yet.
Download an Oracle client and install it on all the systems with Zato servers
Add the client's installation path to LD_LIBRARY_PATH. For instance, if the client is installed to /opt/zato/instantclient_19_3, add the following to ~/.bashrc
:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/zato/instantclient_19_3
cx_Oracle is a Python driver for Oracle DB, it can be installed using pip, as user zato, on each Linux instance that Zato servers use:
This step is crucial for achieving the highest performance of SQL queries
For each Zato server installed, open its server.conf file and find stanza [greenify]
If there is no such stanza in server.conf, create it yourself
Modify the stanza to greenify the libclntsh.so
library - this is a library that the Oracle client ships with. For instance, if the client's installation path is /opt/zato/instantclient_19_3, the full path to the library is /opt/zato/instantclient_19_3/libclntsh.so
The stanza should read as below, assuming the installation path as above:
=True
, which is a signal to Zato that a particular library should be processedFor each, make sure that an entry such as below is saved in server logs
Update the newly created connection's password by clicking Change password
Click Ping
to confirm the connectivity to the remote server
This concludes the process, the connection is ready for use in Zato services now