Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Allow Oracle to find oracle user in NIS+

Allow Oracle to find oracle user in NIS+

From: Randall W. Hron <randall.hron_at_paranet.com>
Date: 1997/06/19
Message-ID: <33A941D2.29E6@paranet.com>#1/1

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"

---

> # 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
Received on Thu Jun 19 1997 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US