Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Oracle 8.1.7
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
roman
n00b
n00b


Joined: 20 May 2002
Posts: 17

PostPosted: Mon May 20, 2002 9:55 am    Post subject: Oracle 8.1.7 Reply with quote

Hallo,

I've just installed Oracle 8.1.7 on my Gentoo Linux and here is the plan:

1. create group dba
Code:
# groupadd dba


2. create user oracle
Code:
# adduser -g dba -G wheel,audio,video,cdrom,cdrw -s /bin/bash -d /home/oracle -m oracle


3. change the password for oracle user
Code:
# passwd oracle


4. log in as user oracle

5. edit the .bash_profile and add these lines
Code:
umask 022
unset LANG
export LD_ASSUME_KERNEL=2.2.5
export ORACLE_BASE=/home/oracle
export ORACLE_HOME=$ORACLE_BASE/product/8.1.7
export ORACLE_TERM=vt100
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
export ORACLE_SID=<name of your future default instance>
export NLS_LANG=<name of your language> #I use 'Czech_Czech republic.EE8ISO8859P2'
export PATH=$PATH:$ORACLE_HOME/bin
export EDITOR=<your preffered editor> #I use vim :-)


6. apply the new enviroment
Code:
$ . ~/.bash_profile


7. create directory for installation
Code:
$ mkdir product
$ mkdir product/8.1.7


8. Get from the Oracle support the stubs patch:
glibc-2.1.3-stubs.tar.gz

9. move this patch to install path
Code:
$ mv glibc-2.1.3-stubs.tar.gz /home/oracle/product/8.1.7


10. Now you are prepared for the installation, so mount the cdrom and run in X
the runInstaller program from this CD. Important!!! Chose NOT TO create the
database at install. Also don't forget, than in root.sh script is an error
on line 102. Add " to rm -f -> RMF="rm -f";
Also find all declaration of awk and change the path from /bin/awk to /usr/bin/awk

11. When the installation ends, applay the stubs patch
Code:
$ cd ~/product/8.1.7
$ tar xvfoz glibc-2.1.3-stubs.tar.gz
$ ./setup_stubs.sh


12. Now all is done.

Roman Majer

P.S.: Please, sorry for my English.
Back to top
View user's profile Send private message
a_vogler
n00b
n00b


Joined: 02 Sep 2002
Posts: 6

PostPosted: Sat Sep 28, 2002 6:12 pm    Post subject: Oracle 9i (9.2.0) Database... Reply with quote

Hi,

To install Oracle 9.0.2 i had to modify the oraparam.ini (located in Disk1/install/linux) so that it points to my local installed blackdown-jre:
oraparam.ini:
#JRE_LOCATION=../../stage/Components/oracle.swd.jre/1.3.1.0.0/1/DataFiles/Expanded/jre/linux
JRE_LOCATION=/opt/blackdown-jre-1.3.1

Andy
Back to top
View user's profile Send private message
gillesg
Tux's lil' helper
Tux's lil' helper


Joined: 17 Sep 2002
Posts: 90

PostPosted: Thu Oct 03, 2002 10:15 pm    Post subject: Re: Oracle 9i (9.2.0) Database... Reply with quote

a_vogler wrote:

To install Oracle 9.0.2 i had to modify the oraparam.ini (located in Disk1/install/linux) so that it points to my local installed blackdown-jre:
oraparam.ini:
#JRE_LOCATION=../../stage/Components/oracle.swd.jre/1.3.1.0.0/1/DataFiles/Expanded/jre/linux
JRE_LOCATION=/opt/blackdown-jre-1.3.1


What does this change gave you?
What problem did you face without?

What gcc version do you have?

Thanks :)

Gilles
Back to top
View user's profile Send private message
a_vogler
n00b
n00b


Joined: 02 Sep 2002
Posts: 6

PostPosted: Thu Oct 03, 2002 10:27 pm    Post subject: Reply with quote

With this change Oracle-Installer works fine ;-)
I don't remeber the exactly problem, i think the Oracle-Installer didn't work.
gcc 3.2 (Gentoo 1.4)
Back to top
View user's profile Send private message
cca93014
Tux's lil' helper
Tux's lil' helper


Joined: 31 Jul 2002
Posts: 77
Location: London, UK

PostPosted: Mon Oct 21, 2002 11:06 pm    Post subject: Reply with quote

a_vogler wrote:
With this change Oracle-Installer works fine ;-)
I don't remeber the exactly problem, i think the Oracle-Installer didn't work.
gcc 3.2 (Gentoo 1.4)

Which version of Oracle is this? 9.0.2 or 9.2.0.1 ??? Will it install onto a 1.3 gentoo build?
Back to top
View user's profile Send private message
sdillon
n00b
n00b


Joined: 01 Jan 2003
Posts: 8

PostPosted: Sat Jan 04, 2003 1:19 am    Post subject: Oracle 8.1.7 install - LD_ASSUME_KERNEL problem Reply with quote

Trying to install Oracle's 8.1.7 client on a fresh Gentoo 1.4rc1 install. Have emerged sys-libs/lib-compat.

When I export LD_ASSUME_KERNEL=2.2.5 into my oracle user's session, I am unable to ls /mnt/cdrom, or anything else for that matter.

Using reiserfs on my hd if that makes any difference.
Back to top
View user's profile Send private message
Sasun
n00b
n00b


Joined: 07 May 2002
Posts: 15

PostPosted: Sat Jan 04, 2003 10:14 am    Post subject: Re: Oracle 9i (9.2.0) Database... Reply with quote

gillesg wrote:
a_vogler wrote:

To install Oracle 9.0.2 i had to modify the oraparam.ini (located in Disk1/install/linux) so that it points to my local installed blackdown-jre:
oraparam.ini:
#JRE_LOCATION=../../stage/Components/oracle.swd.jre/1.3.1.0.0/1/DataFiles/Expanded/jre/linux
JRE_LOCATION=/opt/blackdown-jre-1.3.1


What does this change gave you?
What problem did you face without?

What gcc version do you have?

Thanks :)

Gilles


Well, a month ago I installed last available from oracle version -9.2.0.1 I think. on a 1.4_rc1 with glibc-2.2.5, gcc-3.2. 512MB RAM, 1GB swap.

everything went just fine except, that there was a missing symlink in oracle's provided jre, so dbca - database create assistant was unable to start. You either have to fix this symlink, or use another jvm. I shall try next week another install with another jvm.
Back to top
View user's profile Send private message
poom
n00b
n00b


Joined: 04 Dec 2002
Posts: 1
Location: Tokyo, Japan

PostPosted: Sun Jan 12, 2003 3:26 am    Post subject: Re: Oracle 8.1.7 install - LD_ASSUME_KERNEL problem Reply with quote

sdillon wrote:
Trying to install Oracle's 8.1.7 client on a fresh Gentoo 1.4rc1 install. Have emerged sys-libs/lib-compat.


Same here. Now I've just got it worked with glibc-2.5.5.

sdillon wrote:
When I export LD_ASSUME_KERNEL=2.2.5 into my oracle user's session, I am unable to ls /mnt/cdrom, or anything else for that matter.


Got the same problem. After I tried glibc-2.5.5 (mask the 2.3.1 in /usr/portage/profile/package.mask), everything works as expected.

sdillon wrote:
Using reiserfs on my hd if that makes any difference.


Reiserfs here too. No problem.

Note that Net8 Assistant still doesn't work. I believe I came across an article which claims this can't be solved. Anyway you can still edit tnsnames.ora by hand.

For gcc, I only masked glibc, so my gcc is 3.2.1 and I can install, create database and fire it up. Seems fine so far. I don't know if this works on 9.0.2i.

Another note, I can't make it work with 1.4_rc2 install. Perhaps it uses glibc-2.3.1 and can't be downgraded. Please correct me if I'm wrong.

And, if anyone know how to safely downgrade glibc please raise your hand.

Cheers
Back to top
View user's profile Send private message
psims
n00b
n00b


Joined: 17 Sep 2002
Posts: 10

PostPosted: Wed Jan 22, 2003 2:43 am    Post subject: tnsping segmentation fault Reply with quote

I am getting a segmentation fault when running tnsping. strace says is looking for libclntsh.so.9.0 in $ORACLE_HOME/lib/i686/mmx/libclntsh.so.9.0. The file is actually in $ORACLE_HOME/lib/. Anyone else have this problem or any suggestions?

Thanks.
Back to top
View user's profile Send private message
psims
n00b
n00b


Joined: 17 Sep 2002
Posts: 10

PostPosted: Wed Jan 22, 2003 3:12 am    Post subject: Fixed Reply with quote

I fixed this (sqlnet.ora was in windows format)!
Back to top
View user's profile Send private message
roman
n00b
n00b


Joined: 20 May 2002
Posts: 17

PostPosted: Tue Jan 28, 2003 3:23 pm    Post subject: oracle 9.2.xx and glibc-2.3.1 Reply with quote

Confirmed.. oracle 9.2.xx WILL NOT work with glibc 2.3.1 !!!
Back to top
View user's profile Send private message
ebrostig
Bodhisattva
Bodhisattva


Joined: 20 Jul 2002
Posts: 3152
Location: Orlando, Fl

PostPosted: Wed Jan 29, 2003 3:01 am    Post subject: Reply with quote

8.1.7 will not ever work under gcc 3.2.1 and glibc 2.3.x

For more information on Oracle and Gentoo see Installing Oracle 9.2.0.1.0 Client on Gentoo 1.4

Erik
_________________
'Yes, Firefox is indeed greater than women. Can women block pops up for you? No. Can Firefox show you naked women? Yes.'
Back to top
View user's profile Send private message
jbuberel
n00b
n00b


Joined: 02 Feb 2003
Posts: 31
Location: Sunnyvale, CA

PostPosted: Sun Feb 02, 2003 5:10 pm    Post subject: Howto get Oracle 9i (9.2.0.1.0) installed with glibc-3.2.1 Reply with quote

If anyone else is having problems getting through the Oracle 9.2.0.1.0 installer with a recent gentoo which uses glibc-2.3.1, and in your Oracle installation log you are seeing:
Code:

 /lib/libdl.so.2: undefined reference to `_dl_addr@GLIBC_PRIVATE'
 /lib/libdl.so.2: undefined reference to `_dl_open@GLIBC_PRIVATE'
 /lib/libdl.so.2: undefined reference to `_dl_close@GLIBC_PRIVATE'
 /lib/libdl.so.2: undefined reference to `_dl_sym@GLIBC_PRIVATE'
 /lib/libdl.so.2: undefined reference to `_dl_vsym@GLIBC_PRIVATE'

You need to edit the file:
Code:

$ORACLE_HOME/ctx/lib/env_ctx.mk

and find the line that begins with the text:
Code:

INSO_LINK = -L$(CTXLIB) $(LDLIBFLAG)m

then modify that line to include the following:
Code:

INSO_LINK = -L$(CTXLIB) $(LDLIBFLAG)m  $(LDLIBFLAG)dl

Save your changes, return to the graphical installer window and press 'Retry'.

HOWEVER: As per other postings, due to Oracle 9i being linked against glibc-2.2.x, you would have to DOWNGRADE your gentoo installation to r1.2 in order to make Oracle run correctly. There is no way around it.

-jason

This fix was found in the excellent OracleLinux HOWTO doc below:
http://www.puschitz.com/OracleOnLinux.shtml
Back to top
View user's profile Send private message
murad
n00b
n00b


Joined: 29 Oct 2003
Posts: 44
Location: Rio de Janeiro, Brasil

PostPosted: Sun Mar 21, 2004 5:58 am    Post subject: Reply with quote

Anybody knows how can I get Oracle's 8.1.7 client to work on gentoo?

I just need the client to compile PHP with oci8. I need to access a oracle db in other machine with PHP.

Any help will be very appreciated.
_________________
Marcelo Mustafa Murad
http://dtmconsultoria.com
Back to top
View user's profile Send private message
carltao
n00b
n00b


Joined: 29 Sep 2003
Posts: 1

PostPosted: Thu Aug 26, 2004 1:21 am    Post subject: Need help Reply with quote

murad wrote:
Anybody knows how can I get Oracle's 8.1.7 client to work on gentoo?

I just need the client to compile PHP with oci8. I need to access a oracle db in other machine with PHP.

Any help will be very appreciated.

I just installed gentoo 2004.2 on a PC server and struggled to install the oracle 8.1.7 client for days and now I am facing the problem of JRE core dump.
It seems that oracle installation program must be used under JRE1.1.x. Could anyone give some help?
And now I am trying to install oracle 10g client, maybe it is backward compatible with 8i.
Back to top
View user's profile Send private message
ajaygautam
Apprentice
Apprentice


Joined: 23 Jan 2003
Posts: 205
Location: London Below

PostPosted: Wed Oct 05, 2005 10:47 pm    Post subject: Reply with quote

(Work in progress)
Installing oracle 8.1.7 on gentoo. make.profile pointed to gcc2. gcc-2.95 emerged and gcc-config'ed.

"IGNORE"d all *.mk errors from runInstaller. At the point where edit to line 102 of $ORACLE_HOME/root.sh

Just want to point put (for completion sake), that line 156 in root.sh also needs an edit: add ' to end to read:

RUID=`/usr/bin/id|$AWK -F\( '{print $2}'|$AWK -F\) '{print $1}'`

Will post the whole story later, if sucessful :)

Ajay
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum