From skaar@ita.chalmers.se Thu Jan 13 17:04:35 2000
Date: Wed, 1 Dec 1999 18:18:02 +0100
From: skaar <skaar@ita.chalmers.se>
To: rock-linux@clifford.at
Subject: [rock-linux] oracle8i quick-start on rocklinux

(I might turn this into some kind of extension in the future, but
this ought to be sufficient to get you going for now):

Thee are some quick notes on installing Oracle8i on rocklinux
(this is with the enterprise edition)

you need to have jre 1.1.6v5 installed in /usr/local/jre
(i'm serious about the version, it'll save you hours if you
just get this version, and install it in the above location)

get the linux_81501patch_ee.tgz patch from technet.oracle.com
(I believe the membership is still free).

before you start, do as root 

/usr/sbin/groupadd -g 40 oracle
/usr/sbin/groupadd -g 41 dba
/usr/sbin/useradd -m -d /opt/oracle8i -G 40 -g 41 -u 40 oracle

also: 
        ln -s /usr/bin/make /usr/bin/gmake

(I've asked clifford to include this in rock - bonus to please
bsd-people :)) 

su to oracle and set these environment variables, or something
like this.

export ORACLE_BASE=/opt/oracle8i
export ORACLE_HOME=$ORACLE_BASE/product/8.1.5
export ORACLE_SID=rock
export ORA_NLS32=$ORACLE_HOME/common/nls/admin/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH
export PATH=$ORACLE_HOME/bin:$PATH

now cd to /cdrom/install/linux/
and run ./runIns.sh
(the regular installer /cdrom/runInstaller will fail)

you will now get the ugly gui installer that 8i ships with.
It's supposed to be obvious what you should do, but when
getting the choice wether to run Typical or Custom, choose
Custom (you don't want to create the database now).

Even if you've choosed not to create the database, the
installer will launch dbassist - just cancel it for now.

when the installer is done, it'll ask you to run :
$ORACLE_HOME/root.sh

before you do that, edit the file and change the path to awk
from /bin/awk to /usr/bin/awk

while you're at it, you might now want to install the Oracle
Programmer option from the main installer view. (You'll need
to relink the precompiler later, but then you don't have to
see the installer gui anymore)

now, create something like /opt/oracle8i/orapatch, cd _to_ that
directory and untar linux_81501patch_ee.tgz in it
and run ./linux_81501patch_ee.sh

you're ready to create your database:
cd $ORACLE_HOME/bin ; ./dbassist

again choose Custom, use the defaults, as a skilled dba you
can change all this later *grin*, _except_ for the dbblocksize,
it defaults to 2k blocks, you want it to be 4k (it's in there
somewhere - and it's about the only thing you cannot change
later when the database is running).

at the end dbassist asks you if you want to create the database, or
if you want to save it into a script (it's actually a bunch of
scripts) - I save it to script, it's useful to have, and you don't
have to return to gui-land if you ditch you database and want to
recreate it.

you're up and running, the "system" user has "manager' as default pass.
"sys" have "change_on_install". change these.

now if you want the precompiler to work cd to $ORACLE_HOME/precomp/lib
run gmake -f ins_precomp.mk proc ; cp proc $ORACLE_HOME/bin ;
chmod 755 $ORACLE_HOME/bin/proc

there's probably a bunch of other stuff that needs to be relinked, but
now at least you got a working instance running

I also had to modify listener.ora and tnsnames.org, you'll get the idea
from the examples below:


==> /opt/oracle8i/product/8.1.5/network/admin/listener.ora <==

ROCK =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
    (PROTOCOL_STACK =
      (PRESENTATION = TTC)
      (SESSION = NS)
    )


==> /opt/oracle8i/product/8.1.5/network/admin/tnsnames.ora <==

rock =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL= TCP)(Host=localhost )(Port= 1521))
    (CONNECT_DATA = (SID = rock))
  )


that's it, have fun

/skaar


-- 
--------------------------------------------------------------------
kent skaar                 chalmers university of technology. IT-dep
skaar@ita.chalmers.se                                        sys adm
--------------------------------------------------------------------

--
To unsubscribe from this list: send a mail with the subject "unsubscribe
rock-linux" to <minimalist@clifford.at>. For more information about ROCK
Linux have a look at <http://www.rocklinux.org/>.
