迷彩 潜伏 隐蔽 伪装
分类:
2012-04-07 21:12:17
Oracle Database 10g Release 2 (10.2.0.1) Installation On Red Hat Enterprise Linux 5 (RHEL5)
Oracle Database 10g Release 2 (10.2.0.1) Installation On CentOS release 5 (Final)
一安装需求
1、物理内存:512M
我所用的服务器主存为2G,远远大于512MB,所以不用考虑这个了;
2、交换空间2G
注意:在进行ORACL安装时,安装进程会提示教换空间最少要3068MB,与这里所说的2G有出入,没有关系,直接安装是不会有问题的,
我在安装的时候实际所用的SWAP空间为1086MB,连2G都不到,但是最后成功了;
3、禁用secure Linux
关于禁用secure Linux有很多办法,可以在安装LINUX的过程中禁用,也可以在系统里面进行禁用,通过编辑/etc/selinux/config 文
件禁用secure linux,确认其中的SELINUX标记如下:SELINUX=disabled。
也可以通过GUI工具(Applications > System Settings > Security Level),选择SELinux禁用该属性;
4、已经安装下列包(为简单起见,安装RedHat AS 4时最好选择全部安装):
A、X Window System
B、GNOME Desktop Environment
C、Editors
D、Graphical Internet
E、Text-based Internet
F、Server Configuration Tools
G、Development Tools
H、Administration Tools
I、System Tools
二安装过程
1.软件下载
2.解包
unzip 10201_database_linux32.zip
3. host配置
vi /etc/sysctl.conf file:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
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
4. 运行下面命令使设置生效/sbin/sysctl -p
vi /etc/security/limits.conf
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
vi /etc/pam.d/login
session required /lib/security/pam_limits.so
vi /etc/selinux/config
SELINUX=disabled
5. 要查看系统上安装了这些程序包的哪些版本,以 root 用户身份运行以下命令:
rpm -q gcc make binutils openmotif setarch compat-db compat-gcc \
compat-gcc-c compat-libstdc compat-libstdc -devel
6. 安装下面的rpm包(CentOS5,本人用的DVD版的,所以就一张盘)
# From RedHat AS5 Disk 1
cd /media/cdrom/Server
rpm -Uvh setarch-2*
rpm -Uvh make-3*
rpm -Uvh glibc-2*
rpm -Uvh libaio-0*
cd /
eject
# From RedHat AS5 Disk 2
cd /media/cdrom/Server
rpm -Uvh compat-libstdc -33-3* (或rpm -Uvh compat-libstdc++-33-3*)
rpm -Uvh compat-gcc-34-3*
rpm -Uvh compat-gcc-34-c -3* (或rpm -Uvh compat-gcc-34-c++-3*)
rpm -Uvh gcc-4*
rpm -Uvh libXp-1*
cd /
eject
# From RedHat AS5 Disk 3
cd /media/cdrom/Server
rpm -Uvh openmotif-2*
rpm -Uvh compat-db-4*
cd /
eject
7. 建立oracle用户和组
groupadd oinstall
groupadd dba
groupadd oper
useradd -g oinstall -G dba oracle
passwd oracle
8. 建立相应的目录
mkdir -p /u01/app/oracle/product/10.2.0/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
Login as root and issue the following command:
xhost +
9. 登陆oracle 建立相应的环境变量
su - oracle
vi ~/.bash_profile
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_HOME
ORACLE_SID=orcl
export ORACLE_SID
ORACLE_TERM=xterm
export ORACLE_TERM
PATH=/usr/sbin:$PATH
PATH=$ORACLE_HOME/bin:$PATH
export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH
#LD_ASSUME_KERNEL=2.4.1; export LD_ASSUME_KERNEL
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
export DISPLAY=172.24.88.40:0.0
export LANG=en_US.utf8
export LANGUAGE=en_US.utf8
export NLS_LANG="Simplified Chinese_China.UTF8"
export LC_ALL=en_US.utf8
10. 开始安装
设置显示语言为英语
export LANG=en_US
设置显示位置
DISPLAY=:0.0; export DISPLAY
启动安装程序
./runInstaller (说明:如果这时出can't connect to x11 Widows server,用root在另一个终端执行 xhost )
(./runInstaller -ignoreSysPrereqs)
(./runInstaller -ignorePatchConflicts) (我用此命令安装成功)
11. 安装过程
Select Installation Method
Specify Inventory Directory and Credentials
Select Installation Type
Specify Home Details
Product-Specific Prerequisite Checks
Select Configuration Option
Select Database Configuration
Specify Database Configuration Options
Select Database Management Option
Specify Database Storage Option
Specify Backup and Recovery Options
Specify Database Schema Passwords
Summary
Install
Configuration Assistants
Database Configuration Assistant
Database Configuration Assistant Password Management
Execute Configuration Scripts
End Of Installation
12. 设置开机启动vi /etc/oratab
orcl:/u01/app/oracle/product/10.2.0/db_1:Y
三、安装检测
安装完成后,可以在oracle用户下,打开终端,运行dbca命令,后有一个向导出现,说明安装成功。