Call now: 252-767-6166  
Oracle Training Oracle Support Development Oracle Apps

 
 Home
 E-mail Us
 Oracle Articles
New Oracle Articles


 Oracle Training
 Oracle Tips

 Oracle Forum
 Class Catalog


 Remote DBA
 Oracle Tuning
 Emergency 911
 RAC Support
 Apps Support
 Analysis
 Design
 Implementation
 Oracle Support


 SQL Tuning
 Security

 Oracle UNIX
 Oracle Linux
 Monitoring
 Remote s
upport
 Remote plans
 Remote
services
 Application Server

 Applications
 Oracle Forms
 Oracle Portal
 App Upgrades
 SQL Server
 Oracle Concepts
 Software Support

 Remote S
upport  
 Development  

 Implementation


 Consulting Staff
 Consulting Prices
 Help Wanted!

 


 Oracle Posters
 Oracle Books

 Oracle Scripts
 Ion
 Excel-DB  

Don Burleson Blog 


 

 

 


 

 

 
 


Setting Environmental Variables with oraenv

Oracle Database Tips by Donald Burleson

Oracle provides a script called oraenv that can be used to change the environmental variables $ORACLE_HOME, $ORACLE_SID, and $PATHto allow a user to connect to a given database instance (a database instance is often referred to as a 'sID? or Oracle System Identifier). It can then be used again to switch to a different SID easily, even if the ORACLE_HOME for the new SID is different.

There are two methods for using the oraenv script. The first method is interactive, with the script asking the user to type in the SID. To make oraenv export the variables to the shell environment, it must be preceded with a period and a space as seen in Figure 6.5. 

The second method for using oraenv is non-interactive. This is done by setting the variables $ORAENV_ASK=NO and $ORACLE_SID=<sid> and then running the script with a period and space before it. This time, oraenv will not ask for the SID. It will use the one it finds in the variable $ORACLE_SID.  This non-interactive method is useful when calling oraenv from a script.

Figure 6.5 demonstrates using oraenv. The which command attempts to find the path to the dbca program. This command cannot find dbca in any of the directories identified by the $PATHvariable, and it reports the error. After running the oraenv script using * for the SID, the $PATH environmental variable is set properly and dbca is found.

Learn More about PC RAC:
 

If you want to learn RAC at home, get the bestselling book "Personal Oracle Real Application Clusters" by Edward Stoever.

You can buy it direct from the publisher for 30%-off and get instant access to the code depot of Oracle tuning scripts.


 

 

��  
 
 
Oracle Training at Sea
 
 
 
 
oracle dba poster
 

 
Follow us on Twitter 
 
Oracle performance tuning software 
 
Oracle Linux poster
 
 
 

 

Burleson is the American Team

Note: This Oracle documentation was created as a support and Oracle training reference for use by our DBA performance tuning consulting professionals.  Feel free to ask questions on our Oracle forum.

Verify experience! Anyone considering using the services of an Oracle support expert should independently investigate their credentials and experience, and not rely on advertisements and self-proclaimed expertise. All legitimate Oracle experts publish their Oracle qualifications.

Errata?  Oracle technology is changing and we strive to update our BC Oracle support information.  If you find an error or have a suggestion for improving our content, we would appreciate your feedback.  Just  e-mail:  

and include the URL for the page.


                    









Burleson Consulting

The Oracle of Database Support

Oracle Performance Tuning

Remote DBA Services


 

Copyright © 1996 -  2020

All rights reserved by Burleson

Oracle ® is the registered trademark of Oracle Corporation.