当前位置: 首页 > article >正文

修改GI文件的权限

参考文档:

How to check and fix file permissions on Grid Infrastructure environment (Doc ID 1931142.1)
 

-- 验证二进制文件的权限

[grid@node19c01 ~]$ cluvfy comp software -n node19c01 -verbose

Performing following verification checks ...

  Software home: /u01/app/19.0.0/grid ...
  Node Name     Status                    Comment
  ------------  ------------------------  ------------------------
  node19c01     passed                    1256 files verified
  Software home: /u01/app/19.0.0/grid ...PASSED

Verification of software was successful.

CVU operation performed:      software
Date:                         Feb 11, 2024 9:29:29 AM
CVU version:                  19.22.0.0.0 (122623x8664)
Clusterware version:          19.0.0.0.0
CVU home:                     /u01/app/19.0.0/grid
Grid home:                    /u01/app/19.0.0/grid
User:                         grid
Operating system:             Linux3.10.0-693.el7.x86_64
[grid@node19c01 ~]$

-- 检查以下两个文件,两个文件在GI安装的时候产生

- crsconfig_dirs which has all directories listed in <GRID_HOME> and their permissions
- crsconfig_fileperms which has list of files and their permissions and locations in <GRID_HOME>.

[grid@node19c01 node19c01]$ ls -l
total 36
-rw-r--r-- 1 grid oinstall 14942 Feb  3 10:34 crsconfig_dirs
-rw-r--r-- 1 grid oinstall 18394 Feb  3 10:34 crsconfig_fileperms
[grid@node19c01 node19c01]$ pwd
/u01/app/19.0.0/grid/crs/utl/node19c01
[grid@node19c01 node19c01]$

-- 在crs没有启动的情况下,执行初始化权限

11.2 
GI :
# cd <GRID_HOME>/crs/install/
# ./rootcrs.pl -init

Standalone GI :
# cd <GRID_HOME>/crs/install/
# ./roothas.pl  -init

12c及以上 
GI:
# cd <GRID_HOME>/crs/install/
# ./rootcrs.sh -init

Standalone GI :
# cd <GRID_HOME>/crs/install/
# ./roothas.sh -init

-- 附crsconfig_dirs和 crsconfig_fileperms的内容

[grid@node19c01 node19c01]$ more crsconfig_dirs
# Copyright (c) 2009, 2023, Oracle and/or its affiliates.
# The values in each line use the following format:
#
# OSLIST DIRNAME OWNER GROUP CLOSED-PERMS OPEN-PERMS
#
# Note:
# 1) OSLIST is a comma-separated list of platforms on which the directory
#    needs to be created.  'all' indicates that the directory needs to be
#    created on every platform.  OSLIST MUST NOT contain whitespace.
# 2) Permissions need to be specified AS OCTAL NUMBERS.  If permissions are
#    not specified, default (umask) values will be used.
#
# TBD: OPEN-PERMS need to be added for each dir

all /u01/app/19.0.0/grid/cdata grid oinstall 0775
all /u01/app/19.0.0/grid/log grid oinstall 0775
all /u01/app/19.0.0/grid/log/node19c01 root oinstall 01755
all /u01/app/19.0.0/grid/log/node19c01/crsd root oinstall 0750
all /u01/app/19.0.0/grid/log/node19c01/ctssd root oinstall 0750
all /u01/app/19.0.0/grid/log/node19c01/evmd grid oinstall 0750
all /u01/app/19.0.0/grid/log/node19c01/cssd grid oinstall 0750
all /u01/app/19.0.0/grid/log/node19c01/mdnsd grid oinstall 0750
all /u01/app/19.0.0/grid/log/node19c01/gpnpd grid oinstall 0750



[grid@node19c01 node19c01]$ more  crsconfig_fileperms
# Copyright (c) 2009, 2022, Oracle and/or its affiliates.
# The values in each line use the following format:
#
# OSLIST FILENAME OWNER GROUP PERMS
#
# Note:
# 1) OSLIST is a comma-separated list of platforms on which the file
#    permissions need to be set.  'all' indicates that the directory needs
#    to be created on every platform.  OSLIST MUST NOT contain whitespace.
# 2) Permissions need to be specified AS OCTAL NUMBERS.  If permissions
#    are not specified, default (umask) values will be used.
# 3) The fields within each line of this file must be delimited by a single space
#
unix /u01/app/19.0.0/grid/bin/usrvip root oinstall 0755
unix /u01/app/19.0.0/grid/bin/appvipcfg root oinstall 0755
unix /u01/app/19.0.0/grid/bin/appvipcfg.pl root oinstall 0750
unix /u01/app/19.0.0/grid/bin/crsrename root oinstall 0755
unix /u01/app/19.0.0/grid/bin/crsrename.pl root oinstall 0750
unix /u01/app/19.0.0/grid/bin/cdpcfg root oinstall 0755
unix /u01/app/19.0.0/grid/bin/cdpcfg.pl root oinstall 0750
unix /u01/app/19.0.0/grid/crs/install/s_crsconfig_defs grid oinstall 0755

END 


http://www.kler.cn/a/234023.html

相关文章:

  • postgresql ERROR: cannot drop the currently open database
  • 一文掌握如何编写可重复执行的SQL
  • openwrt 负载均衡方法 openwrt负载均衡本地源接口
  • MySQL索引为什么是B+树
  • Android U 多任务启动分屏——system_server流程(更新中)
  • 【MySQL基础篇】多表查询(隐式/显式内连接、左/右外连接、自连接查询、联合查询、标量/列/行/表子查询)
  • 双活工作关于nacos注册中心的数据迁移
  • C#系列-C#访问MongoDB+redis+kafka(7)
  • Avalonia学习(二十三)-大屏
  • 方格定位2_题解
  • Qt安装配置教程windows版(包括:Qt5.8.0版本,Qt5.12,Qt5.14版本下载安装教程)(亲测可行)
  • STM32 FSMC (Flexible static memory controller) 灵活静态内存控制器介绍
  • Android java基础_类的继承
  • python如何用glob模块匹配路径
  • Lua Global环境
  • 时间序列预测——BiGRU模型
  • 应急响应-挖矿木马-常规处置方法
  • notepad++成功安装后默认显示英文怎么设置中文界面?
  • 突破编程_C++_面试(基础知识(10))
  • 学习笔记——ENM模拟
  • 微服务学习 | Spring Cloud 中使用 Sentinel 实现服务限流
  • 零基础学编程从入门到精通,系统化的编程视频教程上线,中文编程开发语言工具构件之缩放控制面板构件用法
  • Centos 7系统安装proftpd-1.3.8过程
  • 图像的旋转不变特性及应用
  • React18原理: Fiber架构下的单线程CPU调度策略
  • 代码随想录-背包问题