Home > Database > Mysql Tutorial > body text

CentOS 5.5 64 位安装Oracle 10g日志

WBOY
Release: 2016-06-07 16:58:45
Original
928 people have browsed it

安装日志[20100707]1.DELL服务器2.安装CentOS 5.5 (64位)注意swap通常为4G3。安装Oracle 10.2 (64位)grep MemTotal /proc/me

安装日志[20100707]
1.DELL服务器
2.安装CentOS 5.5 (64位)
注意swap通常为4G
3。安装Oracle 10.2 (64位)

grep MemTotal /proc/meminfo

grep SwapTotal /proc/meminfo

uname -mi
4 检查环境:
rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' \
      binutils compat-db control-center gcc gcc-c++ glibc glibc-common \
      libstdc++ libstdc++-devel make pdksh sysstat libaio \
      glibc-devel compat-libstdc++-33 compat-libstdc++-296 glibc-headers \
      libgomp libXp openmotif setarch


再加上glibc-devel-2.5-49 (i386)
libgomp-4.4.0-6.el5 (i386)
libstdc++-devel-4.1.2-48.el5 (i386)
这3个文件

(以上文件都能从安装光盘中找到,所以安装完系统之后都要把镜像盘拷一份在某个目录下)
5. 配置服务器主机的物理环境            
vi /etc/sysctl.conf

kernel.shmmax=2147483648
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

5.2 执行#vi /etc/security/limits.conf ,修改或增添如下配置
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
5.3 执行#vi /etc/pam.d/login, 增添如下配置
session required /lib/security/pam_limits.so
5.4 执行#vi /etc/selinux/config,确认如下配置为disabled
SELINUX=disabled (这个关掉的目的是为了后面vnc连接的时候以免出错)

sysctl -p 使以上配置生效

6.编辑/etc/RedHat-release
vi /etc/redhat-release
把Red Hat Enterprise Linux Server release 5 替换成 redhat-4 ,替换这里的原因是在执行./runInstaller的时候,,其版本判断不支持redhat as5.

7.创建oracle用户和组
   在root用户下,执行下面的命令
groupadd dba
groupadd oinstall
useradd -c "Oracle software owner" -g oinstall -G dba oracle
passwd oracle

mkdir -p /oracle/u01/app/oracle
chown oracle.oinstall /oracle/u01/app/oracle

8.配置oracle用户的环境变量
vi ~oracle/.bash_profile   (这步最好切换到oracle用户下去操作)
export ORACLE_BASE=/oracle/u01/app/oracle
export ORACLE_SID=orcl

export LC_ALL=zh_CN.GBK
export LC_CTYPE=en_US.UTF-8

export ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"

在文档最后添加上以上语句。

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template