[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
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
Medium Priority
?
309 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
omarfarid earned 2000 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…
Suggested Courses

650 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