- 论坛徽章:
- 0
|
1. 检查软件配置要求
a. Linux内核要求为2.6.16.21:
suse-linux:~ # cat /proc/version
Linux version 2.6.16.21-0.8-default (geeko@buildhost) (gcc version 4.1.0 (SUSE Linux)) #1 Mon Jul 3 18:25:39 UTC 2006
也可以使用uname命令
suse-linux:~ # uname -r
2.6.16.21-0.8-default
b. 检查文件包
Ø binutils-2.16.91.0.5
suse-linux:~ # rpm -q binutils
binutils-2.16.91.0.5-23.4
Ø compat-libstdc++-5.0.7
suse-linux:~ # rpm -q compat-libstdc++
compat-libstdc++-5.0.7-22.2
Ø glibc-2.4-31.2
suse-linux:~ # rpm -q glibc
glibc-2.4-31.2
Ø glibc-devel-2.4-31.2
suse-linux:~ # rpm -q glibc-devel
glibc-devel-2.4-31.2
Ø gcc-4.1.0
suse-linux:~ # rpm -q gcc
gcc-4.1.0-28.4
Ø ksh-93r-12.9
suse-linux:~ # rpm -q ksh-93r
ksh-93r-12.9
Ø libaio-0.3.104
suse-linux:~ # rpm -q libaio
libaio-0.3.104-14.2
Ø libaio-devel-0.3.104
suse-linux:~ # rpm -q libaio-devel
package libaio-devel is not installed
suse-linux:~ # yast2 -i libaio-devel
suse-linux:~ # rpm -q libaio-devel
libaio-devel-0.3.104-14.2
Ø libelf-0.8.5
suse-linux:~ # rpm -q libelf
package libelf is not installed
suse-linux:~ # yast2 -i libelf
suse-linux:~ # rpm -q libelf
libelf-0.8.5-47.2
Ø libgcc-4.1.0
suse-linux:~ # rpm -q libgcc
libgcc-4.1.0-28.4
Ø libstdc++-4.1.0
suse-linux:~ # rpm -q libstdc++
libstdc++-4.1.0-28.4
Ø libstdc++-devel-4.1.0
suse-linux:~ # rpm -q libstdc++-devel
libstdc++-devel-4.1.0-28.4
Ø make-3.80
suse-linux:~ # rpm -q make
make-3.80-202.2
Ø sysstat-6.0.2
suse-linux:~ # rpm -q sysstat
package sysstat is not installed
suse-linux:~ # yast2 -i sysstat
suse-linux:~ # rpm -q sysstat
sysstat-6.0.2-16.4
Ø unixODBC-2.2.11
suse-linux:~ # rpm -q unixODBC
package unixODBC is not installed
suse-linux:~ # yast2 -i unixODBC
suse-linux:~ # rpm -q unixODBC
unixODBC-2.2.11-21.4
Ø unixODBC-devel-2.2.11
suse-linux:~ # rpm -q unixODBC-devel
package unixODBC-devel is not installed
suse-linux:~ # yast2 -i unixODBC-devel
suse-linux:~ # rpm -q unixODBC-devel
unixODBC-devel-2.2.11-21.4
2. 安装orarun软件包
suse-linux:~ # yast2 -i orarun
或
suse-linux:~ #rpm –ivh orarun-1.8-109.15.i586.rpm
3. 修改环境变量
当orarun软件包安装时,会自动建立名为oracle的用户,和一个oinstall组等。
a. 现首先使oracle用户可用
修改/etc/passwd文件中oracle用户的shell
suse-linux:/ # vi /etc/passwd
at:x:25:25:Batch jobs daemon:/var/spool/atjobs:/bin/bash
bin:x:1:1:bin:/bin:/bin/bash
daemon:x:2:2:Daemon:/sbin:/bin/bash
ftp:x:40:49:FTP account:/srv/ftp:/bin/bash
games:x:12:100:Games account:/var/games:/bin/bash
gdm:x:50:105:Gnome Display Manager daemon:/var/lib/gdm:/bin/false
haldaemon:x:101:102:User for haldaemon:/var/run/hal:/bin/false
lp:x:4:7:Printing daemon:/var/spool/lpd:/bin/bash
mail:x:8:12:Mailer daemon:/var/spool/clientmqueue:/bin/false
man:x:13:62:Manual pages viewer:/var/cache/man:/bin/bash
messagebus:x:100:101:User for D-BUS:/var/run/dbus:/bin/false
news:x:9:13:News system:/etc/news:/bin/bash
nobody:x:65534:65533:nobody:/var/lib/nobody:/bin/bash
ntp:x:74:103:NTP daemon:/var/lib/ntp:/bin/false
postfix:x:51:51:Postfix Daemon:/var/spool/postfix:/bin/false
root:x:0:0:root:/root:/bin/bash
sshd:x:71:65:SSH daemon:/var/lib/sshd:/bin/false
suse-ncc:x:102:104:Novell Customer Center User:/var/lib/YaST2/suse-ncc-fakehome:/bin/bash
uucp:x:10:14:Unix-to-Unix CoPy system:/etc/uucp:/bin/bash
wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
test:x:1000:100:test:/home/test:/bin/bash
oracle:x:103:106:Oracle user:/opt/oracle:/bin/bash
红字为更改后的内容
b. 修改/ect/profile.d/oracle.sh文件
suse-linux:/etc/profile.d # vi oracle.sh
#
# Set your ORACLE environment variable here
# ORACLE_HOME - Used here and in /etc/init.d/oracle (ora_environment())
# ORACLE_SID - Your Oracle System Identifier
#
ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2/db_1
ORACLE_SID=orcl
export ORACLE_BASE ORACLE_HOME ORACLE_SID
#
# Login environment variable settings for Oracle
# The code below is done ONLY if the user is "oracle":
#
if [ `id -un` == "oracle" ]; then
# Get settings, if file(s) exist(s). If not, we simply use defaults.
if test -f /etc/sysconfig/oracle; then
# new location as of SL 8.0 is directory /etc/sysconfig/
. /etc/sysconfig/oracle
else
if test -f /etc/rc.config.d/oracle.rc.config; then
# location is directory /etc/rc.config.d/
. /etc/rc.config.d/oracle.rc.config
else
if test -f /etc/rc.config; then
# old SuSE location was to have everything in one file
. /etc/rc.config
fi
fi
fi
# Grid Control Agent Home
AGENT_HOME=$ORACLE_BASE/product/10.2/agent
TNS_ADMIN=$ORACLE_HOME/network/admin
# Set ORA_NLSxx depending on 9i or 10g
test -d $ORACLE_HOME/ocommon/nls/admin/data && export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
test -d $ORACLE_HOME/nls/data && export ORA_NLS10=$ORACLE_HOME/nls/data
PATH=$PATH:$ORACLE_HOME/bin
LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_HOME/network/jlib
export AGENT_HOME PATH LD_LIBRARY_PATH CLASSPATH TNS_ADMIN
# ORACLE_TERM=xterm; export ORACLE_TERM
# NLS_LANG=AMERICAN_AMERICA.UTF8; export NLS_LANG
#
# This requires the limits to have been increased by root
# e.g. at boot time by the /etc/rc.d/oracle script, both
# ulimit and kernel parameters.
#
# RAC (cluster) component GSD commands don't run when this is
# set - which it is if a SuSE Java package is installed.
# Set ulimits:
#
# We suppress any warning messages, so if the hard limits have not been
# increased by root and the commands don't work we keep silent...
# This is because the only one who needs it is the shell that starts
# the DB server processes, and the number of warning messages created
# here is potentially way too much and confusing
# core dump file size
ulimit -c ${MAX_CORE_FILE_SIZE_SHELL:-0} 2>/dev/null
# max number of processes for user
ulimit -u ${PROCESSES_MAX_SHELL:-16384} 2>/dev/null
# max number of open files for user
ulimit -n ${FILE_MAX_SHELL:-65536} 2>/dev/null
# For x86/9iR2 (Not required for Oracle 10gR1 or 10gR2)
# Add package "gcc_old" gcc 2.95.3 to path - FIRST
if test -x /opt/gcc295/bin/gcc; then
export PATH=/opt/gcc295/bin:$PATH
fi
# SLES9 specific (Not required for SLES10)
# Set LD_ASSUME_KERNEL (uncomment for SLES9)
# export LD_ASSUME_KERNEL=2.4.21
# This is needed for Oracle 9iR2 Installer.
test -f /usr/lib/libInternalSymbols.so && export LD_PRELOAD=/usr/lib/libInternalSymbols.so
fi
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib:$ORACLE_H"oracle.sh" 91L, 3057C written
红字部分为需要修改的部分
4. 安装Oracle
注意:安装时不能使用root用户su到oracle用户,这将造成不能启动图形界面
由于Oracle 10g不能识别Suse linux 10,所以使用如下方法安装:
既可以
#. /runInstaller –ignoresysprereqs
也可以修改oraparam.ini文件,将其中添加SuSE-10
具体图形化安装步骤省略
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/26431/showart_1676357.html |
|