• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 405
  • Last Modified:

Profiles in Solaris

Can someone please let me know what are profiles used for in Solaris. Can I have different versions of the same software (say Oracle 8 and Oracle 9, or Java 1.5 and Java 1.6) installed on two different profiles in the same machine? Is this what profiles are used for?

Thank you
0
ank5
Asked:
ank5
  • 3
  • 2
  • 2
2 Solutions
 
Bryan ButlerCommented:
You user profile (http://en.wikipedia.org/wiki/User_profile) is a configuration file (see "Configuration files for shells" in http://en.wikipedia.org/wiki/Unix_shell).  

It is where you setup environment variables among other things. (http://en.wikipedia.org/wiki/Environment_variable)

RE. you question:  That is what profiles are used for and you would set each one up to point to different versions of oracle and/or java.
0
 
ank5Author Commented:
Thank You.

To do this are .profile files created in Solaris? Can you please let me know how are .profile files created?
0
 
Bryan ButlerCommented:
Usually a default profile is created when a user is created.  Also most shells have a global startup script that affects all users. (check manpage - "man login") Usually they are in: /etc/profile

A user will usually add to this profile by creating her/his own profile in the HOME dir.   To see if you have one:  
more ~/.profile

If a profile doesn't exist, create a file named ".profile" in your home folder.  Here's some examples:

http://www.unix.com/unix-advanced-expert-users/5477-looking-profile-examples.html
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
AmolCommented:
you can't use different version of software on different profiles. Software is OS based, not profile based.

You can install both version of software and set the environment variable (path of the s/w) accordingly to which software you want to use.
0
 
ank5Author Commented:
>>You can install both version of software and set the environment variable (path of the s/w) accordingly to which software you want to use

Thank you. Is the path set on .profile or some other file?
In our Solaris zone we have Documentum 5.3 and Documentum 6.6 installed. Once I login to the server (using PUTTY), to run Documentum 6.6 specific scripts I need to first execute the following command
. /home/document/.profile66
when I need to run Documentum 5.3 specific scripts then I need to use the following
. /home/document/.profile536

So I wanted to understand how using .profile66 or .profile536 enables me to run scripts specific to a particular Documentum version.
0
 
AmolCommented:
i think you have to add the path in PATH variable. type command "env" and see the PATH variable. different users have different .profile file. I think you need to have root permission for what you are trying to achieve.
0
 
Bryan ButlerCommented:
> "you can't use different version of software on different profiles. Software is OS based, not profile based."

Seems confusing as you can change your path in your profile and as you say, you can do this by changing your path.  If you can install and run 2 different versions on the same machine, then what does that say about being OS based? Just curios.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now