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
cd /opt/microfocus/zenworks/share/pgsql/bin/
./psql
docker exec -it -e PGUSER=<super user retrieved from zman dgcs> -e PGDATABASE=postgres -e PGPASSWORD=<password retrieved from zman dgcs> zenpostgres psql
Type quit to exit from the prompt.