Hi,
I have installed Oracle Linux 5 and created user oracle as mentioned in https://docs.oracle.com/cd/E26370_01/doc.121/e26358/dbinstall.htm. After installation of Oracle DB Enterprise edition 11g R2, I am executing post installation scripts which are orainstRoot.sh and root.sh.
I executed it and it completed successfully. But when I am executing below command for modifying tnsnames.ora with Fully qualified domain name, it is giving me error message
Command:
sed -i -e 's/localhost/machineName.company.com/g' $ORACLE_HOME/network/admin/tnsnames.ora
Error:
sed: can't read /network/admin/tnsnames.ora: No such file or directory
Also when I checked $ORACLE_HOME by sending echo command, it is displaying blank line. Please see the attachment for snap.
Now I am not able to understand why environment variables are not setting properly through the installation. Is there any permission issue in oracle user? Please help