Discussion:
coding issue
Andrew Kerber
2018-11-14 16:08:36 UTC
Permalink
So I ran into something strange the other day when I was installing an
oracle 18c home. I looked at the file, and found this gem hardcoded into
kfod in the GI home zip file:

OHOME=/u01/app/18.0.0/grid
ORACLE_HOME=${OHOME}
export ORACLE_HOME

exec $OHOME/bin/kfod.bin "$@"

Perhaps Oracle should work on their coding just a bit.
--
Andrew W. Kerber

'If at first you dont succeed, dont take up skydiving.'
Tanel Poder
2018-11-15 23:35:32 UTC
Permalink
Not exactly the same thing, but some time ago I hit the bug 20513257
( kfod.bin: No such file or directory error on Linux )

Solution, open <GridHome>/bin/kfod in an editor and change:

OHOME=%ORACLE_HOME%

To:
OHOME=$ORACLE_HOME

*On Linux!*

I wonder what kind of automated tests would pass on Linux when some
critical environment variable values go missing... but perhaps the
hardcoded paths elsewhere in the script explain why the tests pass ... as
long as your grid home *happens to be *the hardcoded one, it's all good...

--
Tanel Poder
https://blog.tanelpoder.com/seminar/
Post by Andrew Kerber
So I ran into something strange the other day when I was installing an
oracle 18c home. I looked at the file, and found this gem hardcoded into
OHOME=/u01/app/18.0.0/grid
ORACLE_HOME=${OHOME}
export ORACLE_HOME
Perhaps Oracle should work on their coding just a bit.
--
Andrew W. Kerber
'If at first you dont succeed, dont take up skydiving.'
Hemant K Chitale
2018-11-16 04:04:30 UTC
Permalink
This reminds of the description of automated testing in this post :

https://news.ycombinator.com/item?id=18442941


Hemant K Chitale
Post by Tanel Poder
Not exactly the same thing, but some time ago I hit the bug 20513257
( kfod.bin: No such file or directory error on Linux )
OHOME=%ORACLE_HOME%
OHOME=$ORACLE_HOME
*On Linux!*
I wonder what kind of automated tests would pass on Linux when some
critical environment variable values go missing... but perhaps the
hardcoded paths elsewhere in the script explain why the tests pass ... as
long as your grid home *happens to be *the hardcoded one, it's all good...
--
Tanel Poder
https://blog.tanelpoder.com/seminar/
Post by Andrew Kerber
So I ran into something strange the other day when I was installing an
oracle 18c home. I looked at the file, and found this gem hardcoded into
OHOME=/u01/app/18.0.0/grid
ORACLE_HOME=${OHOME}
export ORACLE_HOME
Perhaps Oracle should work on their coding just a bit.
--
Andrew W. Kerber
'If at first you dont succeed, dont take up skydiving.'
Loading...