Avatar of eugeneca
eugeneca
 asked on

Oracle Preinstallation Setup

In the process of setup environment for Oracle 11g R2 on SUSE 11 R2 (SLES).  I encountered some problems when reach the 2.18 Configuring the oracle User's Environment (http://docs.oracle.com/cd/E11882_01/install.112/e24321/pre_install.htm#i1011717).

What I tried to do was to first locate the .bash_profile, then write the following to it:

umask 022
#Set the DISPLAY environment variable?
ORACLE_BASE=/u01/app/oracle
ORACLE_SID=test
export ORACLE_BASE ORACLE_SID
unset ORACLE_HOME
unset TNS_ADMIN

But first, where is the .bash_profile?  I searched it started from /, could not find it.  If it does not exist, can I create one?   Where to create?

How can I "Set the DISPLAY environment variable"?
DISPLAY=???:0.0


Thanks

PS: I believe another option is to manually type in the above commands.
Oracle DatabaseLinux

Avatar of undefined
Last Comment
slightwv (䄆 Netminder)

8/22/2022 - Mon
slightwv (䄆 Netminder)

.bash_profile is in your home directory.  This assumes you are using bash as your shell.

In this case, the oracle users hoe folder.

log in as oracle and from a cmd prompt:
cd ~
ls -al .bash_profile

>>How can I "Set the DISPLAY environment variable"?

You set it to the client's ip address but the client must be running an X-Windows emulator:

export DISPLAY=1.2.3.4:0.0

this assumes your X-display is on a machine with the ip address 1.2.3.4
omarfarid

How you connect to the system? is it through ssh session over the network or from the system console?
eugeneca

ASKER
Yes, I am using bash shell.


cd ~
ls -al .bash_profile

RESULT:
ls: cannot access .bash_profile: No such file or directory

Interestingly, there is a file named .bash_history
Your help has saved me hundreds of hours of internet surfing.
fblack61
slightwv (䄆 Netminder)

I believe .bash_profile is optional.  You should have the basic .profile.  That will suffice or you can manually create a .bash_profile.
eugeneca

ASKER
Where to create the .bash_profile?
slightwv (䄆 Netminder)

re: http:#a38146291
The home directory of the unix user that needs it.

As any user you can always get 'home' with: cd ~
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
eugeneca

ASKER
It sounds likethe /root directory.

Now I have the /root and the /home.  Which should be the real home in consideration when people talk about the home directory?
ASKER CERTIFIED SOLUTION
slightwv (䄆 Netminder)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.