From owner-freebsd-database Mon Dec 21 03:55:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA11831 for freebsd-database-outgoing; Mon, 21 Dec 1998 03:55:50 -0800 (PST) (envelope-from owner-freebsd-database@FreeBSD.ORG) Received: from gaia.euronet.nl (gaia.euronet.nl [194.134.0.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA11826 for ; Mon, 21 Dec 1998 03:55:47 -0800 (PST) (envelope-from marcel@scc.nl) Received: from scones.sup.scc.nl (i300.ztm.euronet.nl [194.134.67.61]) by gaia.euronet.nl (8.8.8/8.8.8) with ESMTP id MAA22760; Mon, 21 Dec 1998 12:55:43 +0100 (MET) Received: from scc.nl (scones.sup.scc.nl [192.168.2.4]) by scones.sup.scc.nl (8.9.1/8.9.1) with ESMTP id MAA76176; Mon, 21 Dec 1998 12:55:09 +0100 (CET) (envelope-from marcel@scc.nl) Message-ID: <367E371C.AFEE58F6@scc.nl> Date: Mon, 21 Dec 1998 12:55:08 +0100 From: Marcel Moolenaar Organization: S.C.C. vof X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: =?iso-8859-1?Q?S=F8ren?= Schmidt CC: freebsd-database@FreeBSD.ORG Subject: Re: Oracle on FreeBSD References: <199812211059.LAA04570@freebsd.dk> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-database@FreeBSD.ORG Precedence: bulk "Søren Schmidt" wrote: > > It seems Marcel Moolenaar wrote: > > Both the server and the listeners are running. It survived the installation > > of the Oracle designer repository from a Win95 machine, while a make > > buildworld was running :-) > > > > NOOT: The kernel did *not* have the Linux thread commits by Julian Elischer. > > That is going to be tested next. > > > > Two issues remain: > > 1. An Oracle installation script had to be patched. Soren is/was looking at > > it. > > I am, we need to fix our {gs}etgroup emulation for this to work proberly. Ok... The patch can be used for Oracle in the mean time, but it is important enough to be fixed anyway. I'll keep it in mind. > > 2. The Linux_lib and Linux_devel ports cannot be used out of the box (I > > currently have Redhat packages installed). This should not be too hard to > > solve. > > Does this mean you have linking working now ? Instructions please :) Yes I have. HOWTO part 1: Setup an Oracle-friendly FreeBSD environment :-) 1. Download the RPM sources (www.rpm.com); compile and install it (FreeBSD native). 2. Remove everything from /compat/linux (packages and manual tweaking) 3. Make and run the following script (after you have downloaded all .rpm files): #!/bin/sh SRC=/where/you/have/the/redhat/packages DST=/compat/linux RPM="rpm -i --ignoreos --root $DST" mkdir -p $DST/var/local/lib/rpm touch $DST/var/local/lib/rpm/packages.rpm $RPM $SRC/setup-1.9.1-2.noarch.rpm $RPM $SRC/filesystem-1.3.1-3.noarch.rpm $RPM $SRC/ld.so-1.9.5-7.i386.rpm $RPM $SRC/ldconfig-1.9.5-3.i386.rpm brandelf -t Linux $DST/sbin/ldconfig $RPM $SRC/glib-1.0.1-3.i386.rpm $RPM $SRC/glibc-2.0.7-17.i386.rpm $RPM $SRC/termcap-9.12.6-11.noarch.rpm $RPM $SRC/libtermcap-2.0.8-9.i386.rpm $RPM $SRC/grep-2.2-2.i386.rpm $RPM $SRC/fileutils-3.16-9.i386.rpm brandelf -t Linux $DST/bin/* $DST/usr/bin/* $RPM $SRC/bash-2.02-1.i386.rpm brandelf -t Linux $DST/bin/bash $RPM $SRC/libc-5.3.12-27.i386.rpm $RPM $SRC/zlib-1.1.2-2.i386.rpm $RPM $SRC/ncurses-4.2-6.i386.rpm $RPM $SRC/info-3.12-6.i386.rpm $RPM $SRC/make-3.76.1-3.i386.rpm $RPM $SRC/binutils-2.9.1.0.7-1.i386.rpm $RPM $SRC/gcc-2.7.2.3-11.i386.rpm $RPM $SRC/kernel-headers-2.0.34-3.i386.rpm $RPM $SRC/glibc-devel-2.0.7-17.i386.rpm brandelf -t Linux $DST/bin/* $DST/sbin/* $DST/usr/bin/* $DST/usr/sbin/* rm $DST/etc/exports $DST/etc/group $DST/etc/passwd $DST/etc/hosts.allow $DST/etc /hosts.deny $DST/etc/motd $DST/etc/printcap $DST/etc/protocols $DST/etc/services 4. Make an 'oracle' user and 'dba' group. Set the shell of the 'oracle' user to /compat/linux/bin/bash. 5. Insert the following lines in ~oracle/.profile ORACLE_BASE=/oracle; export ORACLE_BASE ORACLE_HOME=/oracle; export ORACLE_HOME LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/jdbc/lib; export LD_LIBRARY_PATH ORACLE_SID=ORCL; export ORACLE_SID ORACLE_TERM=386x; export ORACLE_TERM CLASSPATH=$ORACLE_HOME/jdbc/lib/classes111.zip; export CLASSPATH PATH=/compat/linux/bin:/compat/linux/sbin: \ /compat/linux/usr/bin:/compat/linux/usr/sbin: \ /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin: \ $ORACLE_HOME/bin; export PATH 6. Login as oracle and run orainst... > > The following PRs apply to running Oracle: > > 9082: see quoted text > > 9154: unimplemented syscall in linux emulator > > > > If the PRs can be looked at and the patches committed, I'll test Julians code > > and post a short HOWTO to the list... > > I'll look at that as soon as I get home from work... Great! The HOWTO is almost finished :-) marcel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-database" in the body of the message