Oracle 10 on Slackware 10
刚刚找到的文档,自己还没试过,呵呵。留在这里备查。
原文地址。
http://www.visi.com/~mseberg/slacko.html
刚刚翻译了一下,贴在了http://slack.linuxsir.org/main/?q=node/127
Oracle 10 on Slackware 10
Oracle does not support Slackware Linux. However you may find these notes useful for your education.
Create Linux Groups
groupadd oinstall
groupadd dba
Create the Oracle User
useradd -g oinstall -G dba oracle
passwd oracle
Setting Shared Memory
Add these line to the /etc/sysctl.conf
kernel.shmall = 2097152
kernel.shmmax =2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
Create Oracle Directories as the root user
mkdir /u01/app/oracle
mkdir /u01/app/oracle/product
mkdir /u01/app/oracle/product/10.0.1.0.2
chown -R oracle.oinstall /u01/app/oracle
mkdir /home/oracle
chown -R oracle.oinstall /home/oracle
Trick Oracle 10 Installer
As root create the file /etc/redhat-release and add this line
redhat-3
Down Rev BinUtils
I downloaded binutils-2.10.1.tar.gz from :
http://mirrors.usc.edu/pub/gnu/binutils/?C=M;O=D
I installed it as follows:
# tar -xzvf binutils-2.10.1.tar.gz
# cd binutils-2.10.1
# ./configure
# make
# make install # as root
Next run these commands as root
# cd /usr/bin
# mv ld ld.new
# cp /usr/local/bin/ld ./
This temporarily replaces ld 2.11 with ld 2.10.
Note: I still get a few link errors during the Oracle install which I just clicked continue when they occured.
Setting the Shell limits for the Oracle user
Add the following lines to the /etc/security/limits.conf file:
* soft nproc 2047
* hard nproc 163844
* soft nofile 1024
* hard nofile 65536
Each line follows this format:
*<Tab><Tab>soft<Tab>nproc<Tab<Tab>2047
Set Oracle Environments
As the oracle user in the .profile in /home/oracle.
# Oracle Environment
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=/u01/app/oracle/product/10.0.1.0.2
export DISPLAY=localhost:0.0
export ORACLE_SID=test
export ORACLE_TERM=xterm
#export TNS_ADMIN= Set if sqlnet.ora, tnsnames.ora, etc. are not in $ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN;
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export LD_LIBRARY_PATH
# Set shell search paths
export PATH=$PATH:$ORACLE_HOME/bin
# CLASSPATH:
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib
export EDITOR=vi
set -o vi
PS1='$PWD:$ORACLE_SID >'
If [ $USER = "oracle" ]; then
If [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
Reboot the machine!
System Check
After the reboot you should check the memory parametes as root using these commands:
Review the current semaphore parameter values in the sem file by using the cat utility.
# cat /proc/sys/kernel/sem
You can check the shmmax parameter with:
# cat /proc/sys/kernel/shmmax
The reboot and sysctl.conf changes this to 2,147,483,648, but you can go as high as 2.7GB.
As the Oracle user try a few commands like these to make sure you enviroment is set correctlly
# echo $ORACLE_SID
# echo #ORACLE_HOME
You decide. Oracle patch 3006854
I download it and ran it (the Red hat version) Not sure if it helpped or hurt,
Install Oracle
Before you begin
You should have the following download this file from otn.oracle.com
ship.db.cpio.gz
Create an install directory and unpack your Oracle images
I created a directory /u01/app/oracle/100102install and copied the image there.
Run this command:
gunzip ship.db.cpio.gz
Then extract the cpio archive using this command:
cpio -idmv < ship.db.cpio
Start runInstaller as the oracle user
I changed the directory to Disk1 and ran the program by typing this ./RunInstaller
Answers to questions during the install:
Inventory Directory : I hit return for the defaults
Privileged Operating System Groups: dba and dba
I did produce two or three link errors starting ins_rdbms.mk
I clicked continue. I was able to configure and use everything fine.
Comments welcome mseberg@visi.com
If you can add anything of value I will strongly consider it.