Oracle 11gR2 在linux 64位平台的安装
oracle linux
Oracle 11gR2 在linux(64bit)上的安装
一,数据库安装前的配置 (一)安装前的检查 1.swap配置需求
2.检查
grep SwapTotal /proc/meminfo free
df -h /dev/shm/
3.Disk空间要求 要求/tmp大于1GB df -h /tmp
要求 /oracle需要20G
要求/oradata 根据数据库数据量确定,但至少大于 20G
4.操作系统要求
Oracle Database 11g Release 2 (11.2)要求下列操作系统或者更新版本: (1)oracle Linux
Oracle Linux 4 Update 7 Oracle Linux 5 Update 2
Oracle Linux 5 Update 5 (仅支持 Oracle Unbreakable Enterprise Kernel) (2)Redhat Linux
Red Hat Enterprise Linux 4 Update 7 Red Hat Enterprise Linux 5 Update 2
Red Hat Enterprise Linux 5 Update 5 (仅支持 Red Hat compatible kernel)
oracle linux
(3)SUSE Linux
SUSE Linux Enterprise Server 10 SP2 SUSE Linux Enterprise Server 11 5.内核版本要求:
cat /proc/version or uname –a
(1)对于 Oracle Linux 4 and Red Hat Enterprise Linux 4: 2.6.9 或者以后版本
(2)Oracle Linux 5 Update 2, and Red Hat Enterprise Linux 5 Update 2: 2.6.18 或者以后版本
(3)On Oracle Linux 5 Update 5 and Red Hat Enterprise Linux 5 Update 5: Unbreakable Enterprise Kernel based on the 2.6.32 stable kernel Red Hat compatible kernel for strict Red Hat compatibility
(4)SUSE Linux
SUSE Linux Enterprise Server 10:2.6.16.21 或者以后版本 SUSE Linux Enterprise Server 11:2.6.27.19 或者以后版本 执行命令验证: uname -a
(二)Oracle 11g所依赖软件包的检查和安装 检查软件包: rpm -q package_name
1.Oracle Linux 4 and Red Hat Enterprise Linux 4 应当安装以下软件包 binutils-2.15.92.0.2
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit) elfutils-libelf-0.97
elfutils-libelf-devel-0.97 expat-1.95.7 gcc-3.4.6 gcc-c++-3.4.6 glibc-2.3.4-2.41
glibc-2.3.4-2.41 (32 bit)
oracle linux
glibc-common-2.3.4 glibc-devel-2.3.4 glibc-headers-2.3.4 libaio-0.3.105
libaio-0.3.105 (32 bit) libaio-devel-0.3.105
libaio-devel-0.3.105 (32 bit) libgcc-3.4.6
libgcc-3.4.6 (32-bit) libstdc++-3.4.6
libstdc++-3.4.6 (32 bit) libstdc++-devel 3.4.6 make-3.80
numactl-0.6.4.x86_64 pdksh-5.2.14 sysstat-5.0.5
2. Oracle Linux 5, and Red Hat Enterprise Linux 5 应当安装以下软件包 binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit) elfutils-libelf-0.125
elfutils-libelf-devel-0.125 gcc-4.1.2 gcc-c++-4.1.2 glibc-2.5-24
glibc-2.5-24 (32 bit) glibc-common-2.5 glibc-devel-2.5
glibc-devel-2.5 (32 bit) glibc-headers-2.5 ksh-20060214 libaio-0.3.106
libaio-0.3.106 (32 bit) libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit) libgcc-4.1.2
libgcc-4.1.2 (32 bit) libstdc++-4.1.2
libstdc++-4.1.2 (32 bit) libstdc++-devel 4.1.2 make-3.81
numactl-devel-0.9.8.x86_64 sysstat-7.0.2
3. SUSE Linux Enterprise Server 10 应当安装以下软件包
oracle linux
binutils-2.16.91.0.5 compat-libstdc++-5.0.7 gcc-4.1.0 gcc-c++-4.1.2 glibc-2.4-31.63
glibc-devel-2.4-31.63
glibc-devel-32bit-2.4-31.63 ksh-93r-12.9 libaio-0.3.104
libaio-32bit-0.3.104 libaio-devel-0.3.104
libaio-devel-32bit-0.3.104 libelf-0.8.5 libgcc-4.1.2 libstdc++-4.1.2
libstdc++-devel-4.1.2 make-3.80
numactl-0.9.6.x86_64 sysstat-8.0.4
4. SUSE Linux Enterprise Server 11应当安装以下软件包 binutils-2.19 gcc-4.3
gcc-32bit-4.3 gcc-c++-4.3 glibc-2.9
glibc-32bit-2.9 glibc-devel-2.9
glibc-devel-32bit-2.9 ksh-93t
libaio-0.3.104
libaio-32bit-0.3.104 libaio-devel-0.3.104
libaio-devel-32bit-0.3.104 libstdc++33-3.3.3
libstdc++33-32bit-3.3.3 libstdc++43-4.3.3_20081022
libstdc++43-32bit-4.3.3_20081022 libstdc++43-devel-4.3.3_20081022
libstdc++43-devel-32bit-4.3.3_20081022 libgcc43-4.3.3_20081022 libstdc++-devel-4.3 make-3.81 sysstat-8.1.5
(三)系统环境配置
oracle linux
1.配置hosts文件 确认hosts文件如下
127.0.0.1 ora11g localhost.localdomain localhost 192.168.138.5 ora11g 注:ora11g是hostname
2.配置系统参数
vi /etc/sysctl.conf fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152
kernel.shmmax = 536870912 ###根据服务器实际情况设置 kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
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 = 1048586 使用如下命令验证 /sbin/sysctl -p
/sbin/sysctl –a #系统下次启动时自动加载/etc/sysctl.conf
在SUSE Linux上:
/sbin/chkconfig boot.sysctl on #让suse启动时加载/etc/sysctl.conf echo 501 > /proc/sys/vm/hugetlb_shm_group # /sbin/chkconfig boot.sysctl on 3.配置limits文件
/etc/security/limits.conf
oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240
oracle linux
4. 配置oracle用户环境 (1)用户和组
/usr/sbin/groupadd oinstall /usr/sbin/groupadd gid=500 dba /usr/sbin/groupadd oper
/usr/sbin/useradd –u 500 -g dba oracle 注:Suse Linux中使用添加用户用下面命令 useradd –g oinstall –G dba –m oracle
id oracle
uid=500(oracle) gid=500(dba) groups=500(dba)
(2)数据库相关目录和权限 mkdir -p /oracle
chown -R oracle:dba /oracle 数据库软件存放目录 mkdir –p /pkg/oracle
chown -R oracle:dba /pkg/oracle (3)配置oracle环境变量: su - oracle vi .bash_pfile
export ORACLE_BASE=/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0 export ORACLE_SID=xxxx #需根据实际设置 export PATH=$ORACLE_HOME/bin:$PATH export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
oracle linux
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib export LIBPATH=$ORACLE_HOME/lib:$ORACLE_HOME/ctx/lib
相关推荐:
- [资格考试]石油钻采专业设备项目可行性研究报告编
- [资格考试]2012-2013学年度第二学期麻风病防治知
- [资格考试]道路勘测设计 绪论
- [资格考试]控烟戒烟知识培训资料
- [资格考试]建设工程安全生产管理(三类人员安全员
- [资格考试]photoshop制作茶叶包装盒步骤平面效果
- [资格考试]授课进度计划表封面(09-10下施工)
- [资格考试]麦肯锡卓越工作方法读后感
- [资格考试]2007年广西区农村信用社招聘考试试题
- [资格考试]软件实施工程师笔试题
- [资格考试]2014年初三数学复习专练第一章 数与式(
- [资格考试]中国糯玉米汁饮料市场发展概况及投资战
- [资格考试]塑钢门窗安装((专项方案)15)
- [资格考试]初中数学答题卡模板2
- [资格考试]2015-2020年中国效率手册行业市场调查
- [资格考试]华北电力大学学习实践活动领导小组办公
- [资格考试]溃疡性结肠炎研究的新进展
- [资格考试]人教版高中语文1—5册(必修)背诵篇目名
- [资格考试]ISO9001-2018质量管理体系最新版标准
- [资格考试]论文之希尔顿酒店集团进入中国的战略研
- 全国中小学生转学申请表
- 《奇迹暖暖》17-支2文学少女小满(9)公
- 2019-2020学年八年级地理下册 第六章
- 2005年高考试题——英语(天津卷)
- 无纺布耐磨测试方法及标准
- 建筑工程施工劳动力安排计划
- (目录)中国中央空调行业市场深度调研分
- 中国期货价格期限结构模型实证分析
- AutoCAD 2016基础教程第2章 AutoCAD基
- 2014-2015学年西城初三期末数学试题及
- 机械加工工艺基础(完整版)
- 归因理论在管理中的应用[1]0
- 突破瓶颈 实现医院可持续发展
- 2014年南京师范大学商学院决策学招生目
- 现浇箱梁支架预压报告
- Excel_2010函数图表入门与实战
- 人教版新课标初中数学 13.1 轴对称 (
- Visual Basic 6.0程序设计教程电子教案
- 2010北京助理工程师考试复习《建筑施工
- 国外5大医疗互联网模式分析




