六步搞定Linux Oracle 11gR2 配置安装

简介:

话不多说,下载Oracle 11gR2,注意为两个包linux_11gR2_database_1of2.zip,linux_11gR2_database_2of2.zip,下载后上传到Linux.


一、Linux系统下要安装的数据包。

个人经验,安装Linux过程中,选择全部默认的包,基本就安装差不多了。

linux系统要安装好以下的包,要安装的包有:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
binutils-2.15.92.0-10.EL4
compat-db-4.1.25-9
compat-gcc-32-3.2.3-47.3 
compat-gcc-32-c++-3.2.3-47.3 
compat-libstdc++-33-3.2.3-47.3 
control-center-2.8.0-12
gcc-3.4.3-9.EL4
gcc-c++-3.4.3-9.L4
glibc-2.3.4-2
glibc-common-2.3.4-2
gnome-libs-1.4.1.2.90EL4
libstdc++-3.4.3-9.EL4
libstdc++-devel-3.4.3-9.EL4
libaio-0.3.102-1
openmotif21-2.1.30-11
make -3.80.5
pdksh-5.2.14.30
sysstat-5.0.5-1
setarch-1.3-1 
xscreensaver-4.18-5.rhe4.2

配置主机名,这一步很重要。

1
2
#vi /etc/hosts
192.168.0.11  test .or.com  test

设置IP和计算机名是必须的,如果不配置,后面安装时就会报错,说连接不到主机之类的。

二、创建 Oracle 组和用户帐户

1
2
3
4
#usr/sbin/groupadd oinstall
#/usr/sbin/groupadd dba
#/usr/sbin/useradd -m -g oinstall -G dba oracle
#passwd oracle

三、创建目录并授权

1
2
3
4
5
#mkdir -p /oracle/app/oracle
#mkdir -p /oracle/app/oraInventory
  #chown -R oracle:oinstall /oracle/app/oracle
  #chown -R oracle:oinstall /oracle/app/oraInventory
  #chmod -R 775 /oracle/app/oracle

四、编辑内核参数

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#cat >> /etc/sysctl.conf <<EOF
kernel.shmall = 268435456
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.aio-max-nr = 1048576
fs. file -max = 6815744
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
EOF 
#/sbin/sysctl -p

五、为 oracle 用户设置 Shell 限制

1
2
3
4
5
6
7
8
9
#cat>> /etc/security/limits.conf <<EOF
oracle               soft    nproc  2047
oracle               hard    nproc  16384
oracle               soft    nofile 1024
oracle               hard    nofile 65536
EOF
#cat>> /etc/pam.d/login <<EOF
session    required     /lib/security/pam_limits .so
EOF


六、oracle 用户的环境变量 注意现在操作为oracle用户

1
2
3
4
5
6
7
8
9
10
11
12
$ vi  .bash_profile
export  ORACLE_BASE= /oracle/app/oracle
  
export  ORACLE_HOME= /oracle/app/oracle/product/11 .2.0 /dbhome_1
  
export  ORACLE_SID= test
  
export  PATH=$PATH:$ORACLE_HOME /bin
  
export  ORACLE_OWNER=oracle
  
$ source  .bash_profile

 好了,现在我们就可以安装Oracle 11gR2了。进入解压目录后。

$ ./runInstaller



本文转自 jackjiaxiong 51CTO博客,原文链接:http://blog.51cto.com/xiangcun168/1663322

相关文章
|
2月前
|
Oracle 关系型数据库 MySQL
Oracle Linux 8.10 编译安装sysbench
Oracle Linux 8.10 编译安装sysbench
123 34
|
27天前
|
Oracle Cloud Native 关系型数据库
Oracle Linux 10 - Oracle 提供支持 RHEL 兼容发行版
Oracle Linux 10 - Oracle 提供支持 RHEL 兼容发行版
88 11
Oracle Linux 10 - Oracle 提供支持 RHEL 兼容发行版
|
1月前
|
关系型数据库 MySQL Java
安装和配置JDK、Tomcat、MySQL环境,以及如何在Linux下更改后端端口。
遵循这些步骤,你可以顺利完成JDK、Tomcat、MySQL环境的安装和配置,并在Linux下更改后端端口。祝你顺利!
131 11
|
22天前
|
Oracle Cloud Native 关系型数据库
Oracle Linux 9.6 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
Oracle Linux 9.6 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
54 0
Oracle Linux 9.6 正式版发布 - Oracle 提供支持 RHEL 兼容发行版
|
14天前
|
Oracle 关系型数据库 Linux
MyEMS开源系统安装之CentOS/RHEL/Rocky/AlmaLinux/Oracle Linux
本指南介绍如何在CentOS/RHEL/Rocky/AlmaLinux/Oracle Linux服务器上部署MyEMS开源能源管理系统。内容涵盖系统准备、数据库配置、多个MyEMS服务(如myems-api、myems-admin、myems-modbus-tcp等)的安装与配置,以及Nginx服务器设置和防火墙规则调整。通过完成所有步骤,您将能够访问MyEMS Admin UI和Web UI,默认端口分别为8001和80,初始登录凭据已提供。
35 0
|
15天前
|
Linux 网络安全 开发工具
在Linux下配置gitee与Github的远程仓库
注意,git push后,是输入你的账号与密码。这个步骤可以通过特殊设置省去,但是一开始还是不要太省。
|
Oracle 网络协议 关系型数据库
linux安装oracle client客户端远程连接数据库
  linux安装oracle client客户端远程连接数据库。   1.到oracle官网下载basic,sqlplus,devel三个软件包   oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.tar   oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.tar   oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.tar   2.到root用户下创建一个oracle文件夹
531 0
|
Oracle 关系型数据库 Linux
实战篇:Linux 安装 Oracle 11GR2 数据库保姆级教程(二)
实战篇:Linux 安装 Oracle 11GR2 数据库保姆级教程(二)
实战篇:Linux 安装 Oracle 11GR2 数据库保姆级教程(二)
|
存储 Oracle 关系型数据库