I am not able to pass ORACLE_HOME to remote server (slc05pzz.us.oracle.com )
echo does give the correct result but
ssh -qt [email protected] 'export ORACLE_HOME=/u01/IDMTOP/products/dir/oid;export PATH=$ORACLE_HOME/bin:$PATH;echo $ORACLE_HOME;$ORACLE_HOME/ldapbind -h slc05pzz.us.oracle.com -p 3060 -D \"cn=orcladmin\" -w 'password';
above code gives below result
bash: /u01/IDMTOP/products/dir/oid/ldapbind: No such file or directory
as its searching for ldapbind on the server where the script is executed which is wrong and not on slc05pzz.us.oracle.com . What is that am missing here?