Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Oracle environment setup
I do the same thing in Unix and NT both. I set up all the environmentals
that I can so that I only need to change them in one place for upgrades or
when directories move. I reference all of these things in my Unix and NT
batch scripts.
Tom Mercadante
Oracle Certified Professional
-----Original Message-----
Sent: Wednesday, May 21, 2003 9:03 AM
To: Multiple recipients of list ORACLE-L
In addition to these, we also set couple of other variables like ORALOG which points to UDUMP/BDUMP/CDUMP etc as part of oraenv. so, to see alert log for current SID, I just have to do "cd $ORALOG" ... I love Unix ...
Raj
-----Original Message-----
<mailto:kirti.deshpande_at_verizon.com> ]
Sent: Tuesday, May 20, 2003 9:02 PM
To: Multiple recipients of list ORACLE-L
Not to my knowledge.
Our .profile for Oracle account uses oracle supplied 'oraenv' to set up appropriate environment using defined aliases. We have 20 databases on our test server (7.3 -> 9.2). One profile for oracle id. But, we source an 'alias' file for the server in the .profile file:
. .hptest.alias
File .hptest.alias contains:
#Add Database name here using the following format alias TBS='export ORACLE_SID=TBST; export ORAENV_ASK="NO";. oraenv;'
alias PRMT='export ORACLE_SID=PRMT; export ORAENV_ASK="NO";. oraenv;' alias PRMX='export ORACLE_SID=PRMX; export ORAENV_ASK="NO";. oraenv;' alias VP1D='export ORACLE_SID=VP1D; export ORAENV_ASK="NO";. oraenv; cd/u01/home/oracle/admin/VP1D;'
alias SDSD='export ORACLE_SID=SDSD; export ORAENV_ASK="NO";. oraenv;' alias SDST='export ORACLE_SID=SDST; export ORAENV_ASK="NO";. oraenv;' alias SVRP='export ORACLE_SID=SVRP; export ORAENV_ASK="NO";. oraenv;' alias SVRT='export ORACLE_SID=SVRT; export ORAENV_ASK="NO";. oraenv;' alias IDSU='export ORACLE_SID=IDSU; export ORAENV_ASK="NO";. oraenv;' alias IWVT='export ORACLE_SID=IWVT; export ORAENV_ASK="NO";. oraenv;'........
When changing environment for a given SID, we just type the SID name, and
get the right environment set.
ORACLE_SID is part of the UNIX prompt as well..
HTH,
-----Original Message-----
Sent: Tuesday, May 20, 2003 3:07 PM
To: Multiple recipients of list ORACLE-L
List,
Does Oracle provide default environment setup scripts. Like dbshut and dbstart? Has anybody ever heard of ORACLE_PROFILE? I am trying to set up 9i and 8i on the same box.
Tthanks,
David Ehresmann
-- Please see the official ORACLE-L FAQ: http://www.orafaq.netReceived on Wed May 21 2003 - 10:21:56 CDT
<http://www.orafaq.net>
-- Author: Ehresmann, David INET: David.Ehresmann_at_ps.net -- Please see the official ORACLE-L FAQ: http://www.orafaq.net
<http://www.orafaq.net>
-- Author: Deshpande, Kirti INET: kirti.deshpande_at_verizon.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com
<http://www.fatcity.com>
San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Mercadante, Thomas F INET: NDATFM_at_labor.state.ny.us Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).