没有合适的资源?快使用搜索试试~ 我知道了~
11GR2单实例安装(ASM).doc
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 62 浏览量
2022-06-23
11:26:03
上传
评论
收藏 513KB DOC 举报
温馨提示
试读
12页
11GR2单实例安装(ASM).doc
资源推荐
资源详情
资源评论
11GR2 单实例安装(ASM)
环境:
OS: Red Hat Linux As5
DB:11.2.0.1
------------------------------------------Linux 安装 11GR2 软件部分---------------------------------------
1.下载安装软件
[root@hxl soft]# ls -1
linux_11gR2_database_1of2.zip
linux_11gR2_database_2of2.zip
linux_11gR2_grid.zip
2.解压压缩包
[root@hxl soft]unzip linux_11gR2_database_1of2.zip
[root@hxl soft]unzip linux_11gR2_database_2of2.zip
[root@hxl soft]unzip linux_11gR2_grid.zip
3.配置相应参数
vi /etc/security/limits.conf
添加如下内容:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
vi /etc/sysctl.conf
添加如下内容
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
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 = 1048576
注意 64bit 的系统 kernel.shmmax 设置建议是物理内容的一半.
参数设置完成后需要重系统,参数才能生效.
4.创建 oracle 用户和 dba,oinstall 组
[root@hxl soft]#groupadd oinstall
[root@hxl soft]#groupadd dba
[root@hxl soft]#mkdir -p /u01/export/home
[root@hxl soft]#useradd -d /u01/export/home/oracle -g oinstall -G dba -s /bin/bash oracle -m
[root@hxl soft]#chown oracle:dba /u01/export/home/oracle /u01
[root@hxl soft]#passwd oracle
5.使用 oracle 用户登录,设置环境变量
export PS1='['`hostname`':$LOGIN:$PWD]$'
export EDITOR=vi
export ORACLE_SID=oracl
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib
export PATH=$ORACLE_HOME/bin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/bin:/sbin
export NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"
6.创建环境变量中定义的目录
[oracle@hxl /]$mkdir -p $ORACLE_BASE
[oracle@hxl /]$mkdir -p $ORACLE_BASE/product/11.2.0/db_1
7.安装 oracle 软件(选择只安装软件)
进入数据库软件目录
[oracle@hxl database]$ ./runInstaller
安装过程中将检查项需要安装的包都安装上,安装包在安装介质中可以找到.
---------------------------------------------------安装 ASMlib 部分------------------------------------------
1. 查看系统内核
[grid@hxl grid_soft]$ uname -r
2.6.18-8.el5
2. 按照如下顺序安装 asmlib
[root@hxl asmlib]# rpm -ivh oracleasm-support-2.1.7-1.el5.i386.rpm
[root@hxl asmlib]# rpm -ivh oracleasm-2.6.18-8.el5-2.0.4-1.el5.i686.rpm
[root@hxl asmlib]# rpm -ivh oracleasmlib-2.0.4-1.el5.i386.rpm
3. 设置 ASM 驱动
[root@hxl asmlib]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
4. 查看当前磁盘
[root@hxl asmlib]# fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 201 2610 19358325 83 Linux
/dev/sda2 1 200 1606468+ 82 Linux swap / Solaris
Partition table entries are not in disk order
Disk /dev/sdb: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Disk /dev/sdc: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
5. 对 sdb 和 sdc 进行分区(具体步骤省略)
[root@hxl dev]# fdisk /dev/sdb
[root@hxl dev]# fdisk /dev/sdc
分区后的结果如下:
剩余11页未读,继续阅读
资源评论
智慧安全方案
- 粉丝: 3652
- 资源: 59万+
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Python 程序语言设计模式思路-结构型模式:组合模式:将对象组合成树形结构
- 毕业设计基于python矩阵分解的推荐算法研究源码+详细文档+全部数据资料 高分项目.zip
- 基于网络的入侵检测系统源码+数据集+详细文档(高分毕业设计).zip
- 微信小程序源码 旅行故事分享 - 面包旅行App界面设计与文本展示资源下载
- 微信小程序源码 创意互动游戏 - 你画我猜App下载
- 摸底考试_学生版20230305.py
- 课程设计基于FPGA数字钟课程设计源码+课设报告(95分以上).zip
- 基于Java的企业家申报系统设计源码
- Cesium案例,集成各种模型,推演,各种Cesium效果
- 基于Python的Struts2全漏洞扫描利用工具设计源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功