前提:安装centos的时候,最好把系统的所有的安装包都安装上。以下命令需手动输入,不要复制粘贴。

1.以root用户登录centos5.5的操作系统;创建oracle用户组和用户。

groupadd oinstall

useradd –g oinstall –s /bin/bash –d /opt/oracle oracle

passwd oracle

2.以root用户登录系统,修改系统内核参数,添加以下内容:

vi  /etc/sysctl.conf

fs.file-max = 6815744 
fs.aio-max-nr = 1048576 
kernel.shmall = 2097152 
kernel.shmmax = 2147483648 
kernel.shmmni = 4096 
kernel.sem = 250 32000 100 128 
net.ipv4.ip_local_port_range = 9000 65500 
net.core.rmem_default = 4194304 
net.core.rmem_max = 4194304 
net.core.wmem_default = 262144 
net.core.wmem_max = 1048576

3.要使 /etc/sysctl.conf 更改立即生效,执行以下命令。 输入:sysctl  -p

4.编辑/etc/security/limits.conf,添加以下内容:

vi /etc/security/limits.conf

oracle  soft  nproc  2047

oracle  hard  nproc  16384

oracle  soft   nofile  1024

oracle  hard  nofile  65536

5.编辑/etc/pam.d/login,添加以下内容:

vi /etc/pam.d/login

session required  pam_limits.so

6.编辑系统环境配置文件/etc/profile,在最后添加如下内容:

if [ $USER = "oracle" ]; then         

    if [ $SHELL = "/bin/ksh" ]; then
ulimit -p
ulimit -n
else
ulimit -u -n
fi
fi

编辑完成后,执行source profile,使其生效。

7.编辑/etc/csh.login,在最后添加如下内容:

if ( $USER == "oracle") then
limit maxproc
limit descriptors
endif

8.以orcale用户登录系统,编辑/opt/oracle/.bash_profile,在最后添加如下内容,使用 source /opt/oracle/.bash_profile使之生效。

umask
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_HOME/app/product/11.2.
export ORACLE_SID=orcl
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin

注:这里的ORACLE_SID的值,是需要用到的数据库的SID。

9.以oracle用户登录系统,将oracle11g客户端的包上传到/opt目录下解压;修改解压后包的文件权限。

unzip linux_11gR2_client.zip
chmod –R client

10.进入安装目录,执行./runInstall;

cd client

./ runInstall

启动图形化界面,点击下一步;

11.语言默认的English,下一步;

12.选择”Administrator(1.38GB)”安装类型,点击下一步;

13.设置Oracle base目录和Oracle home目录,点击下一步;

14.安装程序自动读取oracle用户环境变量中设置的目录和用户组;

选择目录/opt/oracle/ oraInventory目录,用户组默认为oinstall,点击下一步

15.校验安装oracle的安装环境发现内核缺少部分参数,系统缺少某些安装包,如果缺少,请安装。

16.安装完成后,再次检查是否存在失败的情况,若无,执行下一步;

17.系统开始安装,到最后的时候,系统会先提示你需要用root权限执行2个shell脚本:

打开终端,切换到root用户,根据路径执行两个脚本;如下所示:

# /opt/oracle/oraInventory/orainstRoot.sh

Changing permissions of /opt/oracle/oraInventory to 770.

Changing groupname of /opt/oracle/oraInventory to dba.

The execution of the script is complete

# /opt/oracle/oracle/product/11.1.0/root.sh

Running Oracle 11g root.sh script...

The following environment variables are set as:

ORACLE_OWNER=oracle

ORACLE_HOME=/opt/oracle/oracle/product/11.1.0

Enter the full pathname of the local bin directory: [/usr/local/bin]: [直接回车即可]

Copying dbhome to /usr/local/bin ...

Copying oraenv to /usr/local/bin ...

Copying coraenv to /usr/local/bin ...

Creating /etc/oratab file...

Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root.sh script. Now product-specific root actions will be performed.

18.点击finsh,完成安装。

19.重新打开一个新的终端,使用netca命令配置监听和本地的net服务.

20.本地net服务配置完成之后,用sqlplus连接测试是否成功。

2015-01-20 13:11:28

Oracle11g客户端for centos 5.5安装文档的更多相关文章

  1. SAP_ECC6_EHP7_IDES安装文档ORACLE11G+WINDOWS2012 R2 问题总结

    SAP_ECC6_EHP7_IDES安装文档ORACLE11G+WINDOWS2012 R2 问题总结 1.注意密码不能带@等特殊符号,否则会报如下错误,因为ORACLE数据是不容许密码带@的.@是一 ...

  2. win10操作系统下oracle11g客户端/服务端的下载安装配置卸载总结

    win10操作系统下oracle11g客户端/服务端的下载安装配置卸载总结 一:前提 注意:现在有两种安装的方式 1. oracle11g服务端(64位)+oracle客户端(32位)+plsql(3 ...

  3. zabbix 4.04 安装文档 - 基于CentOS 7.6

    1    安装前准备: 1.1   安装JDK 卸载openjdk # rpm -qa | grep java # yum remove java-1.8.0-openjdk # yum remove ...

  4. Apache Hadoop 集群安装文档

    简介: Apache Hadoop 集群安装文档 软件:jdk-8u111-linux-x64.rpm.hadoop-2.8.0.tar.gz http://www.apache.org/dyn/cl ...

  5. ORACLE LINUX 6.3 + ORACLE 11.2.0.3 RAC + VBOX安装文档

    ORACLE LINUX 6.3 + ORACLE 11.2.0.3 RAC + VBOX安装文档 2015-10-21 12:51 525人阅读 评论(0) 收藏 举报  分类: Oracle RA ...

  6. _00024 尼娜抹微笑伊拉克_云计算ClouderaManager以及CHD5.1.0群集部署安装文档V1.0

    笔者博文:妳那伊抹微笑 itdog8 地址链接 : http://www.itdog8.com(个人链接) 博客地址:http://blog.csdn.net/u012185296 博文标题:_000 ...

  7. HAProxy安装文档

    HAProxy安装文档 [toc][TOC] 一.环境说明 系统环境:CentOS Linux release 7.2.1511 (Core) 系统内核:3.10.0-327.el7.x86_64 软 ...

  8. ELK Stack 5.2.2 安装文档

    简介: ELK Stack 安装文档,这次都使用最新版本(5.2.2).RPM 包的方式搭建 ELK Stack. 下载地址: https://artifacts.elastic.co/downloa ...

  9. [转载]linux+nginx+python+mysql安装文档

    原文地址:linux+nginx+python+mysql安装文档作者:oracletom # 开发包(如果centos没有安装数据库服务,那么要安装下面的mysql开发包) MySQL-devel- ...

随机推荐

  1. UVA 11995 I Can Guess the Data Structure!(ADT)

    I Can Guess the Data Structure! There is a bag-like data structure, supporting two operations: 1 x T ...

  2. 常用数据结构[OpenCV 笔记12]

    Point 二维坐标系下的整数点, 定义如下 typedef Point_<int> Point2i; typedef Point2i Point; typedef Point_<f ...

  3. zoj 3686 A Simple Tree Problem (线段树)

    Solution: 根据树的遍历道的时间给树的节点编号,记录下进入节点和退出节点的时间.这个时间区间覆盖了这个节点的所有子树,可以当做连续的区间利用线段树进行操作. /* 线段树 */ #pragma ...

  4. bootstrap Tooltip换行问题

    bootstrap自身带有tooltip,使用起来很方便,但是美中不足,它的tooltip并不支持换行. 比如我们通过<textarea>输入框传入到数据库的长文本,文本是带有换行符的,但 ...

  5. react组件什么周期记录,转的

    react 的核心除了虚拟DOM,我想还有一个很重要的就是生命周期函数,理解生命周期函数,对写出合理的commponet很有帮助.下面总结一下我对生命周期函数的一些理解已经在项目过程中遇到的一些问题. ...

  6. PHP 读json文件并转php配置文件

    <?php$c = file_get_contents('./cities_v2.json');$s = "<?php return " . var_export(js ...

  7. 在线小词典(mysql扩展库操作)

    输入英文查询中文 1.建表 create table words( id int primary key auto_increment, enWords varchar(32) not null, c ...

  8. linux系统文件的颜色代表的意思

    1.蓝色代表目录 2.绿色代表可执行文件 3.红色代表可压缩文件 4.白色代表其他文件 5.浅蓝色代表链接文件 6.黄色代码设备 7.红色闪烁表示链接的文件有问题

  9. Eclipse+Tomcat WEB开发配置

    关键字:JDK,WEB,Eclipse,Tomcat OS: Windows 8.1 with update 1.下载安装JDK:http://www.oracle.com/technetwork/j ...

  10. Java 泛型快速排序 以sdut 1196为例

    oj链接:http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=1196 Java中,Arrays.so ...