++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
在RHEL5.5x64上安装Oracle10gR2的简单步骤
方法1:Last login: Wed Feb 19 20:28:59 2014 from 192.168.1.1
[root@node1 ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.5 (Tikanga)
改为
Red Hat Enterprise Linux Server release 4.5 (Tikanga)
方法2:需要修改安装文件/install/oraparam.ini,添加红色[Certified Versions]
Linux=redhat-3,SuSE-9,redhat-4,UnitedLinux-1.0,asianux-1,asianux-2,redhat-5。
Requirements For Installing Oracle10gR2 On RHEL 5/OEL 5 (x86_64) [ID 421308.1]
1. Hardware Requirements
i) Physical Memory
# grep MemTotal /proc/meminfo
ii) Swap Space
# grep SwapTotal /proc/meminfo
2. Kernel Requirements
# uname -r
The system must be running the following kernel version (or a later version)
2.6.18-8
SELinux /etc/selinux/config
disable
iptable
3. Installing required packages
方法一:
rpm -q --qf ‘%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n‘ binutils \
compat-libstdc++-33 \
elfutils-libelf \
elfutils-libelf-devel \
elfutils-libelf-devel-static \
gcc \
gcc-c++ \
glibc \
glibc-common \
glibc-devel \
glibc-headers \
kernel-headers \
ksh \
libaio \
libaio-devel \
libgcc \
libgomp \
libstdc++ \
libstdc++-devel \
make \
sysstat \
unixODBC \
unixODBC-devel \
libXp
方法二:
rpm -qa | grep binutils-2.17.50.0.6-2 (x86_64)
rpm -qa | grep compat-db-4.2.52-5.1 (x86_64)
rpm -qa | grep compat-libstdc++-296-2.96-138 (i386)
rpm -qa | grep compat-libstdc++-33-3.2.3-61(x86_64)
rpm -qa | grep compat-libstdc++-33-3.2.3-61 (i386)
rpm -qa | grep control-center-2.16.0-14 (x86_64)
rpm -qa | grep gcc-4.1.1-52 (x86_64)
rpm -qa | grep gcc-c++-4.1.1-52 (x86_64)
rpm -qa | grep glibc-2.5-12 (x86_64)
rpm -qa | grep glibc-2.5-12 (i686)
rpm -qa | grep glibc-common-2.5-12 (x86_64)
rpm -qa | grep glibc-devel-2.5-12 (x86_64)
rpm -qa | grep glibc-devel-2.5-12 (i386) 需要安装
rpm -qa | grep glibc-headers-2.5-12 (x86_64)
rpm -qa | grep ksh-20060214-1.4 (x86_64)
rpm -qa | grep libaio-0.3.106-3.2 (x86_64)
rpm -qa | grep libgcc-4.1.1-52 (i386)
rpm -qa | grep libgcc-4.1.1-52 (x86_64)
rpm -qa | grep libgnome-2.16.0-6 (x86_64)
rpm -qa | grep libgnomeui-2.16.0-5 (x86_64)
rpm -qa | grep libgomp-4.1.1-52 (x86_64)
rpm -qa | grep libstdc++-4.1.1-52 (x86_64)
rpm -qa | grep libstdc++-devel-4.1.1-52 (x86_64)
rpm -qa | grep libXp-1.0.0-8 (i386)
rpm -qa | grep libXtst-1.0.1-3.1(i386)
rpm -qa | grep make-3.81-1.1 (x86_64)
rpm -qa | grep sysstat-7.0.0-3 (x86_64)
这里可以配置本地yum源,方便解决包的依赖性
<1>.mount /dev/cdrom /mnt
<2>.vi /etc/yum.repo.d/dvd.repo
[dvd]
name=dvd install
baseurl=file:///mnt/server
enabled=1
gpgcheck=0
<3>.yum clean all
<4>.yum list
4.Set the kernel parameters
/etc/sysctl.conf文件中增加
kernel.shmall = physical RAM size / pagesize For most systems, this will be the value 2097152. See Note 301830.1 for more information.
kernel.shmmax = 1/2 of physical RAM. This would be the value 2147483648 for a system with 4Gb of physical RAM.
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 2097152
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
例子:
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 4294967295
kernel.shmall = 268435456
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6815744
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
fs.aio-max-nr = 1048576
5. Create Oracle user and groups
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle
6. Create the required directories for Oracle database and change the ownership
mkdir -p /u01/app/oracle
chown -R oracle:oinstall /u01/app/oracle
7. Set the session limits for Oracle user
Add the following lines to the /etc/security/limits.conf file
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
Add the following line in the /etc/pam.d/login file
session required pam_limits.so
Add the following lines to the /etc/profile.
if [ $USER = "oracle" ]; then
ulimit -u 16384
ulimit -n 65536
fi
8. Configure the Oracle user‘s environment
For example, if oracle user is using bash shell, and has the home directory as /home/oracle,
The following lines to be added to /home/oracle/.bash_profile
#export PATH
PATH=$PATH:$HOME/bin
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID=orcl
export PATH=.:${PATH}:$HOME/bin:$ORACLE_HOME/bin
export PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin
export PATH=${PATH}:$ORACLE_BASE/common/oracle/bin
export ORACLE_TERM=xterm
export TNS_ADMIN=$ORACLE_HOME/network/admin
export ORA_NLS10=$ORACLE_HOME/nls/data
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib
export CLASSPATH=$ORACLE_HOME/JRE
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib
export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib
export THREADS_FLAG=native
export TEMP=/tmp
export TMPDIR=/tmp
9. The gcc-4.1.1 and gcc-c++-4.1.1 RPM items above will ensure that the correct gcc / g++ versions are installed.
It is also required that you ensure that these correct gcc / g++ versions are active, and in-use.
Ensure that the commands "gcc --version" and "g++ --version" each return "4.1.x".
10.配置VNC 或安装Xmanager
root:
export DISPLAY=操作机IP地址:0.0(参考)
xhost +
su - oracle
export DISPLAY=操作机IP地址:0.0(参考)
dbca
Invoking OUI
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
cpio -idmv < 10201_database_linux_x86_64.cpio
升级:
解压p8202632_10205_Linux-x86-64.zip,
执行./runInstaller升级软件
如果有数据库的话,执行dbua进行数据库升级