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

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3787|回复: 2
打印 上一主题 下一主题

[Oracle] oracle ASMLib配置文件

[复制链接]
跳转到指定楼层
楼主
发表于 2018-1-18 11:27:57 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
环境:centos7.3+11g

ASMLib所对应的配置文件在/etc/sysconfig下,文件名oracleasm-_dev_oracleasm
[root@hisdg sysconfig]# pwd
/etc/sysconfig
[root@hisdg sysconfig]# ll oracle*
lrwxrwxrwx. 1 root root  24 Dec 29 14:37 oracleasm -> oracleasm-_dev_oracleasm
-rw-r--r--. 1 root root 888 Jan 18 11:11 oracleasm-_dev_oracleasm

文件内容如下:
[root@hisdg sysconfig]# more oracleasm-_dev_oracleasm
#
# This is a configuration file for automatic loading of the Oracle
# Automatic Storage Management library kernel driver.  It is generated
# By running /etc/init.d/oracleasm configure.  Please use that method
# to modify this file
#

# ORACLEASM_UID: Default user owning the /dev/oracleasm mount point.
ORACLEASM_UID=grid                 /*指定asm磁盘组owner*/

# ORACLEASM_GID: Default group owning the /dev/oracleasm mount point.
ORACLEASM_GID=asmdba             /*指定asm磁盘组所属group*/

# ORACLEASM_SCANBOOT: 'true' means scan for ASM disks on boot.
ORACLEASM_SCANBOOT=true          /*指定重启系统是否扫描磁盘组,为false表示不扫描*/

# ORACLEASM_SCANORDER: Matching patterns to order disk scanning
ORACLEASM_SCANORDER=""

# ORACLEASM_SCANEXCLUDE: Matching patterns to exclude disks from scan
ORACLEASM_SCANEXCLUDE=""

# ORACLEASM_USE_LOGICAL_BLOCK_SIZE: 'true' means use the logical block size
# reported by the underlying disk instead of the physical. The default
# is 'false'
ORACLEASM_USE_LOGICAL_BLOCK_SIZE=false


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

使用道具 举报

沙发
发表于 2018-1-19 17:16:37 | 只看该作者
你这个配置文件是不是少了一行?
# ORACLEASM_ENABLED: 'true' means to load the driver on boot.
ORACLEASM_ENABLED=true  /*指定重启系统加载ASMLIB DRIVER*/
回复 支持 反对

使用道具 举报

板凳
 楼主| 发表于 2018-1-19 18:02:37 | 只看该作者
我这是7.3的操作系统,在安装asmlib包后。执行了systemctl enable oracleasm.service命令,写到服务里面的,不写配置文件了
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-21 06:13 , Processed in 0.174053 second(s), 19 queries .

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

© 2001-2020

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