Solved

Entering the server as the oracle user I want to ask with what database are you going to work with

Posted on 2008-09-30
3
301 Views
Last Modified: 2013-12-27
I have two sets of environment variables, one for an oracle database version 11g and the other set of environment variables for another oracle database version 10.2.
I want that whenever me or one of my co-workers enter this server to ask with which database are they going to work with so that the right set of environment variables can be set.

Solaris 5.10
0
Comment
Question by:LindaC
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 500 total points
ID: 22608215
in the user's .profile , you may ask simple question and based on the answer set the right env. variables. e.g.

while true
do
  echo "1- oracle 10"
  echo "2- oracle 11"
  read ans
  if [ $ans -eq 1 -o ans -eq 2 ]
  then
     break
  fi
done
if [ $ans -eq 1 ]
then
      set oracle 10 env here
else
      set oracle 11 env here
fi
0
 
LVL 8

Author Comment

by:LindaC
ID: 22608336
Trying
0
 
LVL 8

Author Closing Comment

by:LindaC
ID: 31501653
Thank you.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now