If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > install.sh script fails when installing Oracle application

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-18-02, 09:16
ceecil ceecil is offline
Registered User
 
Join Date: Jan 2002
Location: west haven
Posts: 33
Post install.sh script fails when installing Oracle application

Hi all,

OS Solaris 8. Sun Sparc 20 - 256 MB 9.1 GB

I have installed Oracle 8.1.6 Rel 2 on the SUN Sparc. Everything is fine and a customised DB has been created. Now I have to install an Oracle application on the same server. I have a working knowledge of Unix but I don't know scripting.

I logged in as OPAPPS as required. (.chsrc). I have set the path with all possible directories and made it a member of group DBA as requested.

I put the CD in the CDROM and then cd /cdrom
# install.sh

BUT I get this message: install.sh not found or

install.sh: /cdrom/202103_1337//Disk1/install/: does not exist

------------------------------
install.sh exists on the CD. This is the contents of install.sh from the CD

#!/bin/sh
os=`uname | tr A-A a-z`
case "$os" in
sunos) platform=solaris
;;
hp-ux) platform=hp-ux
;;
osf1) platform=decunix
;;
esac

#The environment variable $SRCHOME cannot be set during installation
unset SRCHOME
unset SHLIB_PATH

CMDDIR=`dirname $0`

if [ "CMDDIR" = "." ]; then
CMDDIR=`pwd`;
fi

# Replace relatove path with fully qualified path
if [ ! "`echo $CMDDIR|grep '^/'`" ]; then
CMDDIR=`pwd`/$CMDDIR;
fi

if [ x${PATH} != x ] ; then
PATH=$PATH:/usr/bin: /bin
export PATH
else
PATH=/usr/bin:/bin
fi

cd $CMDDIR/$platform/Disk1/install/$platform
./runinstaller $*
-----------------------------------------------------
directory structure on CD
-r-xr-xr-x 1 root sys 638 Aug 23 2000 install.sh
dr-xr-xr-x solaris
dr-xr-xr-x hpunix
dr-xr-xr-x decunix
dr-xr-xr-x nls732


solaris/disk1/install/solaris and the file

-r-xr-xr-x runinsta.
-r-xr-xr-x oraparm.ini
dr-xr-xr-x images
d .
d ..

Would anybody know why I get

install.sh: /cdrom/202103_1337//Disk1/install/: does not exist


Thanks for your help.
Reply With Quote
  #2 (permalink)  
Old 04-25-02, 16:30
rnealejr rnealejr is offline
Registered User
 
Join Date: Feb 2002
Posts: 2,232
Normally, if you are running a script in the same directory you have to enter . ./ (this is a security feature), so for your example try the following:

. ./install.sh

Good luck.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On