Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Allow Oracle to find oracle user in NIS+
We use NIS+ here and I noticed that dbhome wasn't finding ORAHOME. Here is a diff to to fix dbhome on Oracle 7.3.2:
hilltop:/oracle/product/7.3.2/bin$ diff dbhome /usr/local/bin/dbhome
50a51
> PASSWD_TBL=passwd.org_dir
72c73
< # try /etc/passwd & yp for "oracle"
---Received on Thu Jun 19 1997 - 00:00:00 CDT
> # try /etc/passwd, yp, & nisplus for "oracle"
79c80,83 < ---
> if [ "$ORAHOME" = "" ]
> then ORAHOME=`(nismatch oracle $PASSWD_TBL) 2>/dev/null | \
> awk -F: '/^oracle:/ {print $6; exit}'`
> fi
If Oracle is listening, feel free to update the source. -- Randall W. Hron UNIX/Network Analyst mailto:randall.hron_at_paranet.com