1、安装linux 64位操作系统

2、安装包检查:

加载 Redhat as 5.4 光盘
到Server目录下执行

rpm -Uvh binutils-2.* rpm -Uvh elfutils-

libelf-0.*
rpm -Uvh glibc-2.* rpm -Uvh glibc-common-2.*
rpm -Uvh libaio-0.* rpm -Uvh libgcc-4.*
rpm -Uvh libstdc++-4.*
rpm -Uvh make-3.*
rpm -Uvh compat-libstdc++-33*
rpm -Uvh elfutils-libelf-devel-0.*
rpm -Uvh glibc-devel-2.*
rpm -Uvh gcc-4.*
rpm -Uvh gcc-c++-4.*
rpm -Uvh libaio-devel-0.*
rpm -Uvh libstdc++-devel-4.*
rpm -Uvh unixODBC-2.*
rpm -Uvh unixODBC-devel-2.*
rpm -Uvh sysstat-7.*
rpm -ivh compat-libstdc++-296-2.96-138.i386.rpm
rpm -ivh openmotif-2.3.1-2.el5_4.1.i386.rpm
rpm -ivh openmotif22-2.2.3-18.i386.rpm
rpm -ivh gcc-c++-4.1.2-48.el5.x86_64.rpm
rpm -ivh compat-gcc-34-3.4.6-4.x86_64.rpm
rpm -ivh compat-db-4.2.52-5.1.i386.rpm

rpm -q make
rpm -q gcc-3.2.3-34
rpm -q glibc
rpm -q compat-db-4.0.14-5
rpm -q compat-gcc-7.3-2.96.128
rpm -q compat-gcc-c++-7.3-2.96.128
rpm -q compat-libstdc++-7.3-2.96.128
rpm -q compat-libstdc++-devel-7.3-2.96.128
rpm -q libXp
rpm -q openmotif21
rpm -q setarch

rpm -q gcc make binutils glibc libaio libXp

3、修改系统参数文件:

3.1、修改版本号:
vi /etc/redhat-release
redhat-4

3.2 修改系统 host
vi /etc/hosts
# Do not remove the following line, or

various programs
# that require network functionality will

fail.
127.0.0.1       localhost
::1             localhost6.localdomain6

localhost6
192.168.1.1     tsgdataserver  

tsgdataserver
~
3.3、修改操作系统内核文件
vi /etc/sysctl.conf
kernel.shmall = 4194304
kernel.shmmax = 2147483648
#以上参数如果 比系统中大则修改系统中参数到此

,否则保留系统中的较大的值

kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144
使修改有效:
sysctl -p

4、添加oracle 用户,配置oracle 运行运行环境
4.1、用户与目录准备
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle

mkdir /opt/oracle
chown oracle.oinstall /opt/oracle
chmod 755 /opt/oracle

修改密码
passwd oracle

su - oracle 使用 oracle 身份登录

4.2、修改oracle用户的环境变量文件
export LANG=zh_CN.GBK

vi ./.bash_profile

export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=/opt/oracle/db10
export ORACLE_SID=GLIS
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export LC_CTYPE=en_US.UTF-8
export TNS_ADMIN=$ORACLE_HOME/network/admin
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

4.3  使用oracle 用户登录图形界面安装oracle
gunzip 10201_database_linux_x86_64.cpio.gz
cpio -idmv  < 10201_database_linux_x86_64.cpio

5、数据库自动启动
vi /etc/oratab

glis:/opt/oracle/db10:Y

首先在/etc/init.d/目录下配置Oracle的服务文件

 

.

touch oracle10g
chmod a+x oracle10g
然后编辑此oracle10g文件.内容如下.

下载: oracle10g
# !/bin/bash
# whoami
# root
# chkconfig: 345 51 49
# /etc/init.d/oracle10g
# description: starts the oracle dabase

deamons
#
ORA_HOME=/opt/oracle/db10
ORA_OWNER=oracle
case "$1" in
start)
echo -n "Starting oracle10g: "
su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart"
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl

start"
touch /var/lock/subsys/oracle10g
echo
;;

stop)
echo -n "shutting down oracle10g: "
su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut"
su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl

stop"
rm -f /var/lock/subsys/oracle10g
echo
;;

restart)
echo -n "restarting oracle10g: "
$0 stop
$0 start
echo
;;
*)
echo "Usage: `basename $0`

start|stop|restart"
exit 1

esac
exit 0
保存文件,退出以后,添加并启动察看服务.

/sbin/chkconfig --add oracle10g
/sbin/chkconfig --list oracle10g

 

安装过程视频资料下载地址

http://down.51cto.com/data/470654