Skip to content
Prev 22708 / 398502 Next

Summary:ROracle error

Oracle is finally up and running on RH 7.3 now. I will try to summarize
the pitfalls to avoid here for future reference.

1> Make sure you have the Pro C/C++ drivers in Oracle client installed.
This can be verified by looking for the existence of the proc directory
in $ORACLE_HOME. Existence of proc means it worked


2> Put the following in the .bashrc script in root
export ORACLE_HOME=/home/oracle/OraHome1
export PATH=$PATH:/sbin:/usr/sbin:/home/oracle:$ORACLE_HOME/bin:
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66

The last ' /usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66' to be
replaced by your gcc directory. The way you find your gcc directory is
by doing locate stddef.h
It will return a bunch of paths. Look for the one which is similar to
the one above.

Note that Oracle is only certified for gcc 2.95 or before. RH 7.3 comes
installed with 2.96. You will have to copy gcc 2.95 from another machine
which has it

3> make sure the pcscfg.cfg file under $ORACLE_HOME/precomp/admin looks
like 

sys_include=($ORACLE_HOME/precomp/public,/usr/lib/gcc-lib/i386-redhat-li
nux/egcs-2.91.66/include,/usr/include)
include=($ORACLE_HOME/precomp/public)
include=($ORACLE_HOME/rdbms/demo)
include=($ORACLE_HOME/network/public)
include=($ORACLE_HOME/plsql/public)
ltype=short

The 2nd path in the sys_include should be your gcc folder include file

4> export $LIBRARY_PATH=$ORACLE_HOME/lib
5> Run . .bashrc to set environment variables. Now you can run the R CMD
INSTALL ROracle_0.3-3.tar.gz command

6> If the error says that it cannot find stddef.h or stdarg.h, create a
soft link for
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stddef.h and
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/include/stdarg.h
respectively in the directory that gcc is searching in (probably
/usr/include)

Thanks,
Vikram









-----Original Message-----
From: David James [mailto:dj at research.bell-labs.com] 
Sent: Thursday, August 15, 2002 5:48 AM
To: Vikram Khurana
Subject: Re: [R] ROracle error

Hi Vikram,

I forgot to ask you.  If and when you solve your problem, could you
please summarize it and send a copy to r-help?  I'm sure at some
point other people may encounter the same problem, and it would be
nice if you could save them some precious time.

Thanks,

--
David
Vikram Khurana wrote:
sys_include=($ORACLE_HOME/precomp/public,/home/local/gcc-2.95.3/gcc/ginc
too.
sys_include=($ORACLE_HOME/precomp/public,/usr/lib/gcc-lib/i386-redhat-li
logged
continue.
hoping
also
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.