Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SIDs and connectivity
On Sat, 23 Jul 2005 09:54:34 +0000, Dave interested us by writing:
> > "Dale" <dschmitz4_at_cox.net> wrote in message > news:kknEe.120163$yV4.16791_at_okepread03...
Oracle provides the 'oraenv' script to allow you to change the relevant variables. The 'oratab' file keeps the service and service-to-home cross reference, and oraenv reads that file to set up [all?] the variables.
By default, the script is placed in /usr/local/bin (remember that funny question during installation?). It must be run inline (read, dotted) or it will ot set the variables in your current shell. And can be run interactively or silently.
interactive:
. /usr/local/bin/oraenv
ORACLE SID <hans>? orcl <<- it prompts for SID, gives a default
silent: (as in your .profile)
ORACLE_SID=orcl <<- you set the desired SID ORAENV_ASK=NO <<- and tell it to shut up. /usr/local/bin/oraenv
-- Hans Forbrich Canada-wide Oracle training and consulting mailto: Fuzzy.GreyBeard_at_gmail.comReceived on Sat Jul 23 2005 - 09:57:16 CDT