重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 5650|回复: 0
打印 上一主题 下一主题

[Oracle] 安装与配置ASMLib

[复制链接]
跳转到指定楼层
楼主
发表于 2020-2-14 18:39:09 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
1.查看系统内核版本
[root@orcl1 setup]# uname -a
Linux orcl13.10.0-862.el7.x86_64 #1 SMP Wed Mar 21 18:14:51 EDT 2018 x86_64 x86_64 x86_64GNU/Linux
2.检查系统中asm包的安装情况
[root@orcl1 setup]# rpm -ql *asm*
package asm is notinstalled
packageoracleasmlib-2.0.12-1.el7.x86_64.rpm is not installed
packageoracleasm-support-2.1.11-2.el7.x86_64.rpm is not installed
3.下载ASMLib驱动
asmlib程序包,含(安装包比系统要求的版本有点出入,影响并不是很大):
kmod-oracleasm-2.0.8-21.0.1.el7.x86_64.rpm
oracleasmlib-2.0.12-1.el7.x86_64.rpm
oracleasm-support-2.1.11-2.el7.x86_64.rpm
4.查看ASMLib驱动包:
[root@orcl1 asm]# ll
total 400
-rw-r--r-- 1 root root 296852 Feb 14 11:54kmod-oracleasm-2.0.8-21.0.1.el7.x86_64.rpm
-rw-r--r-- 1 root root 19360 Feb 14 11:55 oracleasmlib-2.0.12-1.el7.x86_64.rpm
-rw-r--r-- 1 root root 86908 Feb 14 11:55 oracleasm-support-2.1.11-2.el7.x86_64.rpm
5.安装ASMLib驱动:
[root@orcl1 asm]# rpm -ivh kmod-oracleasm-2.0.8-21.0.1.el7.x86_64.rpm
warning:kmod-oracleasm-2.0.8-21.0.1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, keyID ec551f03: NOKEY
Preparing...                         ################################# [100%]
Updating /installing...
   1:kmod-oracleasm-2.0.8-21.0.1.el7  ################################# [100%]
[root@orcl1 asm]# rpm -ivh oracleasmlib-2.0.12-1.el7.x86_64.rpm
warning:oracleasmlib-2.0.12-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key IDec551f03: NOKEY
Preparing...                          #################################[100%]
        packageoracleasmlib-2.0.12-1.el7.x86_64 is already installed
[root@orcl1 asm]# rpm -ivh oracleasm-support-2.1.11-2.el7.x86_64.rpm
warning:oracleasm-support-2.1.11-2.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, keyID ec551f03: NOKEY
Preparing...                         ################################# [100%]
        packageoracleasm-support-2.1.11-2.el7.x86_64 is already installed
6.启用ASMLib:
[root@orcl1 ~]# systemctl enable oracleasm
7.启动oracleasm服务:
[root@orcl1 init.d]#systemctl start oracleasm
8.配置ASMLib:
[root@orcl1 init.d]#oracleasm configure -i
Configuring theOracle ASM library driver.
This will configurethe on-boot properties of the Oracle ASM library
driver.  The following questions will determinewhether the driver is
loaded on boot andwhat permissions it will have.  Thecurrent values
will be shown inbrackets ('[]').  Hitting <ENTER>without typing an
answer will keepthat current value.  Ctrl-C will abort.
Default user to ownthe driver interface []: oracle
Default group to ownthe driver interface []: oinstall
Start Oracle ASMlibrary driver on boot (y/n) [n]: y
Scan for Oracle ASMdisks on boot (y/n) [y]: y
Writing Oracle ASMlibrary driver configuration: done
9.重启oracleasm服务
[root@orcl1 init.d]#systemctl restart oracleasm
10.查看oracleasm状态
[root@orcl1 init.d]#systemctl status oracleasm
●oracleasm.service - Load oracleasm Modules
   Loaded: loaded(/usr/lib/systemd/system/oracleasm.service; enabled; vendor preset: disabled)
   Active: active (exited) since Sat 2020-02-1502:17:32 CST; 6s ago
  Process: 60201ExecStart=/usr/sbin/oracleasm.init start_sysctl (code=exited, status=0/SUCCESS)
Main PID: 60201 (code=exited,status=0/SUCCESS)
Feb 15 02:17:31orcl2 systemd[1]: Starting Load oracleasm Modules...
Feb 15 02:17:31orcl2 oracleasm.init[60201]: Initializing the Oracle ASMLib...K
Feb 15 02:17:32orcl2 oracleasm.init[60201]: Scanning the system for Oracle...K
Feb 15 02:17:32orcl2 systemd[1]: Started Load oracleasm Modules.
Hint: Some lineswere ellipsized, use -l to show in full.
状态为active,说明oracleasm服务已正常启动且有效

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-11-30 10:21 , Processed in 0.093207 second(s), 21 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表