LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 10-18-2010, 02:07 PM   #1
adyf
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Rep: Reputation: 0
Error during oracle 10 installation on solaris 10


Hello dear members,

I'm running on my local machine only Solaris 10 X86-32, no other windows OS. It has no connection to Internet.

I'm trying to install Oracle 10g (using the command line interface) and I'm getting the following error while running the runInstaller script as oracle user:

"Checking monitor: must be configured to display at least 256 colors >>> Could not execute auto check for display colors using command /usr/openwin/bin/xdpyinfo. Check if the DISPLAY variable is set. Failed <<<< Some requirement checks failed. You must fulfill these requirements before continuing with the installation,at which time they will be rechecked"

Please note that I'm not doing a remote installation, I need to install oracle on my local solaris server.

The IP of solaris 10 server is 192.168.2.14

After solaris 10 installation I did the following oracle pre-installation steps:

---> adding the dba group as below:

# groupadd dba
# useradd -G dba -m -d /export/home/oracle -s /usr/bin/bash oracle

---> adding the following line to the /etc/system file to set the system parameters:

set noexec_user_stack=1

---> configuring the system settings for Oracle :

# projadd -U oracle -K "project.max-shm-memory=(priv,4g,deny)" user.oracle
# projmod -sK "project.max-sem-nsems=(priv,256,deny)" user.oracle
# projmod -sK "project.max-sem-ids=(priv,100,deny)" user.oracle
# projmod -sK "project.max-shm-ids=(priv,100,deny)" user.oracle

---> adding the following lines to the /export/home/oracle/.bash_profile file and then setting the environment by running the file (. .bash_profile):

ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/102
ORACLE_SID=ORA10GR2
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:/usr/local/bin:/usr/ccs/bin:/usr/sfw/bin:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH

---> checking that all of the following packages are installed:

pkginfo -i SUNWlibms SUNWtoo SUNWi1cs SUNWi15cs SUNWxwfnt SUNWxwplt SUNWmfrun SUNWxwplr SUNWxwdv SUNWgcc SUNWbtool SUNWi1of SUNWhea SUNWlibm SUNWsprot SUNWuiu8

-bash-3.00$ cat /etc/hosts
#
# Internet host table
#
::1 localhost

127.0.0.1 localhost.localdomain localhost
192.168.2.14 solaris10.localdomain.com solaris10

I also created the .profile file in the oracle home directory and then I ran it, having the following contain:

# This is the default standard profile provided to a user.
# They are expected to edit it to meet their own needs.
MAIL=/usr/mail/${LOGNAME:?}
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID=TSH1; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

I'm able to run the xclock application as root user, but not as oracle user, getting the following output: "bash: xclock: command not found" - even if I use xhost + or xhost + IP or export DISPLAY=IP:0.0 commands

What am I missing here? What is it wrong?

Thanks in advance

Best Regards,

Adrian
 
Old 10-18-2010, 04:49 PM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
I would check to make sure DISPLAY is set prior to kicking off you install

#echo $DISPLAY

for the xclock not found error you probably just don't have it in your path try using the full path it should be /usr/openwin/bin/xclock
 
Old 10-19-2010, 02:02 AM   #3
adyf
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Hello,

Thank you for your response.

My understanding was that if I'm able to successfully run the xclock application as oracle user, then I can successfully run the installation script as well.

Please find the below output - I'm facing the following situation: I open a new terminal session as root, and I'm able to successfully run the xclock or /usr/openview/bin/xclock commands. I switch to oracle user, in the same terminal window and I'm not able to run the above commands; if I switch back to root, I'm also not able to run the xclock application. The only solution is to open a new terminal session as root and then I can successfully run xclock appl.

# xclock
# su - oracle
Oracle Corporation SunOS 5.10 Generic Patch January 2005
-bash-3.00$ echo $DISPLAY

-bash-3.00$ xclock
-bash: xclock: command not found
-bash-3.00$ /usr/openwin/bin/xclock
Error: Can't open display:
-bash-3.00$ export DISPLAY=192.168.2.14
-bash-3.00$ xhost +
-bash: xhost: command not found
-bash-3.00$ export DISPLAY=192.168.2.14:0.0
-bash-3.00$ xhost +
-bash: xhost: command not found
-bash-3.00$ xclock
-bash: xclock: command not found
-bash-3.00$ su -
Password:
Oracle Corporation SunOS 5.10 Generic Patch January 2005
# xclock
xclock: not found
# /usr/openwin/bin/xclock
Error: Can't open display:

If I want to install oracle on the same machine, not a remote installation, what should be the value of DISPLAY variable?

Best Regards,

Adrian
 
Old 10-19-2010, 02:34 AM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Log in as oracle user in the first place instead of launching the graphic environment as root which is not a recommended practice.
 
Old 10-19-2010, 03:35 AM   #5
adyf
LQ Newbie
 
Registered: Oct 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Smile

Thank you jlliagre, Blinker_Fluid, for your responses

The mistake was that each time I was logging in as root and after that I was switching to the oracle user and trying to run the runInstaller script .. which was giving me the described error

I set a password for oracle user, I logged out and I logged in back as oracle user. I opened the terminal session and I successfully met all the installer requirements

Thanks again

Best Regards,

Adrian
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
error occured during oracle database 10g installation muvendrann Linux - Software 1 10-06-2009 09:17 AM
Oracle 11 Installation error lennyli Linux - Software 2 05-06-2009 11:55 AM
sybase installation error in solaris 9 a.toraby Solaris / OpenSolaris 1 03-03-2008 10:14 AM
Oracle installation: error lockup space wanted peter_kz Linux - Software 9 04-01-2005 07:11 PM
Oracle Installation / runInstaller error ultraman Linux - Software 9 05-31-2003 05:47 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration