After installing 12c Goldengate binaries for Oracle 12c database, I get following error.
This is the error when logging in sudoing as vtier account:
[ ~]$ sudo -iu d1rac1d1
/opt/app/d1rac1d1/ggs/12.1.2.0.0/ggsci: error while loading shared libraries: libnnz12.so: cannot open shared object file: No such file or directory
/opt/app/d1rac1d1/oracle/product/12.1.0.1/lib/libnnz12.so
I do see this file in ORACLE_HOME. Somehow my profile got changed and its not looking the file in OH and still searching in GGS_HOME.
My environment looks like this:
$ env | grep ggs
GGS_HOME=/opt/app/d1rac1d1/ggs/12.1.2.0.0
LD_LIBRARY_PATH=/opt/app/d1rac1d1/oracle/product/12.1.0.1/lib:/opt/app/d1rac1d1/ggs/12.1.2.0.0