Re: ORACLE for Solaris 2.3

From: <jl34778_at_corp02.d51.lilly.com>
Date: 26 Jan 94 19:51:55 EST
Message-ID: <1994Jan26.195155.1_at_corp02.d51.lilly.com>


I have installed 7.0.15.4 under Solaris 2.3 on 3 different machines and have not had any problems, except for a bug in the /opt/bin/coraenv script.

If you are interested, here is the problem.

The script tries to add $ORACLE_HOME to LD_LIBRARY_PATH. In the following code segment, the long setenv statment is incorrectly continued to a new line. You can't use the \ inside a back-quoted string.
#
# Reset LD_LIBRARY_PATH
#
if ($?LD_LIBRARY_PATH == 0) then

    setenv LD_LIBRARY_PATH $ORACLE_HOME/lib else

    switch ($LD_LIBRARY_PATH)
    case *$OLDHOME/lib* :

        setenv LD_LIBRARY_PATH `echo $LD_LIBRARY_PATH | \
            sed "s;$OLDHOME/lib;$ORACLE_HOME/lib;g"`
        breaksw

One way to fix it is to continue the line before the backquoted string.
#
# Reset LD_LIBRARY_PATH
#
if ($?LD_LIBRARY_PATH == 0) then

    setenv LD_LIBRARY_PATH $ORACLE_HOME/lib else

    switch ($LD_LIBRARY_PATH)
    case *$OLDHOME/lib* :

        setenv LD_LIBRARY_PATH \
	    `echo $LD_LIBRARY_PATH | sed "s;$OLDHOME/lib;$ORACLE_HOME/lib;g"`
        breaksw

-- 
Bob Swisshelm                | swisshelm_at_Lilly.com     | 317 276 5472
Eli Lilly and Company        | Lilly Corporate Center  | Indianapolis, IN 46285
Received on Thu Jan 27 1994 - 01:51:55 CET

Original text of this message