Oracle安装

[b]1 [color=blue]修改用户的SHELL的限制[/color][/b]
修改/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

[b]2 [color=blue]linux操作系统的登陆配置文件[/color][/b]
修改/etc/pam.d/login 文件,输入命令:vi  /etc/pam.d/login

session   required    /lib/security/pam_limits.so
session   required    pam_limits.so

[b]3 [color=blue]配置一些系统信息[/color][/b]
修改linux内核,修改/etc/sysctl.conf文件,输入命令: 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

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

[b]4 [color=blue]创建相关用户和组[/color][/b]
创建用户,输入命令

groupadd  oinstall
groupadd  dba
useradd -g oinstall -G dba -m oracle
passwd  oracle


[b]5 [color=blue]创建数据库软件目录和数据文件存放目录[/color][/b]
目录的位置,根据自己的情况来定,注意磁盘空间即可,这里我把其放到oracle用户下,例如:

mkdir /home/oracle/app
mkdir /home/oracle/app/oracle
mkdir /home/oracle/app/oradata
mkdir /home/oracle/app/oracle/product


[b]6 [color=blue]创建数据库软件目录和数据文件存放目录[/color][/b]
输入命令

chown -R oracle:oinstall /home/oracle/app

[b]7 [color=blue]配置oracle用户的环境变量[/color][/b]
输入:su – oracle  ,然后直接在输入 : vi .bash_profile

umask 022
export LANG=en_US.UTF-8
export ORACLE_BASE=/home/oracle/app
export ORACLE_HOME=$ORACLE_BASE/oracle/product/11.2.0/dbhome_1
export ORACLE_SID=orcl
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

编辑完成后按Esc键,输入“:wq”存盘退出
[b]8 [color=blue]安装oracle[/color][/b]
从官网下载
[url]http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html[/url]
解压

unzip linux.x64_11gR2_database_1of2.zip
unzip linux.x64_11gR2_database_2of2.zip

[b]9 [color=blue]解压完成后 cd 进入其解压后的目录database[/color][/b]

cd database
./runInstaller


[b]10 [color=blue]图形化安装[/color][/b]

[img]http://dl2.iteye.com/upload/attachment/0099/7668/a3571ad5-d0f6-3aea-82f4-339a999861ce.jpg[/img]

[img]http://dl2.iteye.com/upload/attachment/0099/7670/25ef354f-2f23-3a28-bcfd-1a7b61661358.jpg[/img]

[img]http://dl2.iteye.com/upload/attachment/0099/7680/ba7200e5-83de-3dad-ba3f-469165396f23.jpg[/img]

[img]http://dl2.iteye.com/upload/attachment/0099/7678/4e0f25bb-7418-37cc-a730-7f7b18d57218.jpg[/img]

[img]http://dl2.iteye.com/upload/attachment/0099/7674/179f1f70-0185-3bc4-8763-8fe1fed50983.jpg[/img]

[img]http://dl2.iteye.com/upload/attachment/0099/7686/8d0c6434-c44d-3c70-bb62-f6fdcf81e787.jpg[/img]

[img]http://dl2.iteye.com/upload/attachment/0099/7684/56ab896b-1a82-3037-8e4e-641ce4401a04.jpg[/img]

[img]http://dl2.iteye.com/upload/attachment/0099/7692/4b06f4ba-751a-3dbf-b950-be6d15c2fd5d.jpg[/img]

[img]http://dl2.iteye.com/upload/attachment/0099/7682/109214e9-2910-3401-b063-b414d43ef383.jpg[/img]

[img]http://dl2.iteye.com/upload/attachment/0099/7688/19fcb67c-c07a-33d5-98a1-827fc23de248.jpg[/img]

[img]http://dl2.iteye.com/upload/attachment/0099/7690/bca3ea1c-108c-350c-a6f8-f73847e91842.jpg[/img]

[img]http://dl2.iteye.com/upload/attachment/0099/7672/721cba68-b93c-31f4-8b54-07b207bdf674.jpg[/img]

[img]http://dl2.iteye.com/upload/attachment/0099/7676/fcb2b7a4-f292-3a87-a5b0-e25d92348ca4.jpg[/img]

[img]http://dl2.iteye.com/upload/attachment/0099/7694/227eb078-66d5-3d7d-9037-06a0b8e86c15.jpg[/img]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值