Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Help! "localhost" in listener.ora?
Seems a unix machine where you want to do this.
Try a little shell script like
sed -e "s/SERVERNAME/`hostname`/g" listener.template >listener.ora
Deliver a file listener.template first that contains the word SERVERNAME where the servername should reside. The sed command extracts the local hostname and replaces the search pattern.
Good luck
Kai
Received on Tue Jan 26 1999 - 15:14:10 CST