Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2002
    Location
    west haven
    Posts
    33

    Post Unanswered: 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.

  2. #2
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •