Open the terminal and execute the following commands:
su zenpostgres
LD_LIBRARY_PATH=/opt/microfocus/zenworks/share/pgsql/lib; export LD_LIBRARY_PATH
On SLES 15: export LD_LIBRARY_PATH=/opt/microfocus/zenworks/share/pgsql/lib:/opt/microfocus/zenworks/share/pgsql/stackbuilder/lib; export LD_LIBRARY_PATH
On SLES 15, the no version information available error message can be ignored.
PATH=$PATH:/opt/microfocus/zenworks/share/pgsql/bin; export PATH
PGPORT=<port_number>; export PGPORT
PGUSER=<user_name>; export PGUSER
PGDATABASE=<database_name>; export PGDATABASE
PGPASSWORD=<password>; export PGPASSWORD
./psql
Type quit to exit from the prompt.