Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting $ORACLE_HOME variable blank after Oracle DB Enterprise edition 11g R2 installation

PriyankBamoriyaApr 1 2016 — edited Apr 5 2016

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

This post has been answered by EdStevens on Apr 1 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 3 2016
Added on Apr 1 2016
11 comments
6,265 views