There are times when we have more than 1 database on a single servers. So setting OS profile for oracle environment becomes complicated. Like how to set SID or oracle home for all Databases.
A Solution can be is creating a separate OS user for different database or can go with below statement. Editing oracle .profile in /home/oracle.
Below showing 5 different SID with 4 different versions of database, 10.1.0.1, 10.2.0.4, 220.127.116.11, 18.104.22.168. We can see there are two database DB4 and DB5 with same oracle version 22.214.171.124, so even in this case we need to have 2 different option 4 and 5 as the SID are different.
cat .profile PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/usr/bin/X11:/sbin:. export PATH if [ -s "$MAIL" ] # This is at Shell startup. In normal then echo "$MAILMSG" # operation, the Shell checks fi # periodically. echo " " echo " " echo " ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" echo " Database options"…
View original post 216 more words