修改GI文件的权限

2024-02-11 15:04
文章标签 修改 权限 gi

本文主要是介绍修改GI文件的权限,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

参考文档:

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

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

[grid@node19c01 ~]$ cluvfy comp software -n node19c01 -verbosePerforming following verification checks ...Software home: /u01/app/19.0.0/grid ...Node Name     Status                    Comment------------  ------------------------  ------------------------node19c01     passed                    1256 files verifiedSoftware home: /u01/app/19.0.0/grid ...PASSEDVerification 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 -initStandalone GI :
# cd <GRID_HOME>/crs/install/
# ./roothas.pl  -init12c及以上 
GI:
# cd <GRID_HOME>/crs/install/
# ./rootcrs.sh -initStandalone 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 dirall /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 

这篇关于修改GI文件的权限的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/700100

相关文章

Spring Security基于数据库的ABAC属性权限模型实战开发教程

《SpringSecurity基于数据库的ABAC属性权限模型实战开发教程》:本文主要介绍SpringSecurity基于数据库的ABAC属性权限模型实战开发教程,本文给大家介绍的非常详细,对大... 目录1. 前言2. 权限决策依据RBACABAC综合对比3. 数据库表结构说明4. 实战开始5. MyBA

Docker镜像修改hosts及dockerfile修改hosts文件的实现方式

《Docker镜像修改hosts及dockerfile修改hosts文件的实现方式》:本文主要介绍Docker镜像修改hosts及dockerfile修改hosts文件的实现方式,具有很好的参考价... 目录docker镜像修改hosts及dockerfile修改hosts文件准备 dockerfile 文

Python实现无痛修改第三方库源码的方法详解

《Python实现无痛修改第三方库源码的方法详解》很多时候,我们下载的第三方库是不会有需求不满足的情况,但也有极少的情况,第三方库没有兼顾到需求,本文将介绍几个修改源码的操作,大家可以根据需求进行选择... 目录需求不符合模拟示例 1. 修改源文件2. 继承修改3. 猴子补丁4. 追踪局部变量需求不符合很

Linux修改pip和conda缓存路径的几种方法

《Linux修改pip和conda缓存路径的几种方法》在Python生态中,pip和conda是两种常见的软件包管理工具,它们在安装、更新和卸载软件包时都会使用缓存来提高效率,适当地修改它们的缓存路径... 目录一、pip 和 conda 的缓存机制1. pip 的缓存机制默认缓存路径2. conda 的缓

Linux修改pip临时目录方法的详解

《Linux修改pip临时目录方法的详解》在Linux系统中,pip在安装Python包时会使用临时目录(TMPDIR),但默认的临时目录可能会受到存储空间不足或权限问题的影响,所以本文将详细介绍如何... 目录引言一、为什么要修改 pip 的临时目录?1. 解决存储空间不足的问题2. 解决权限问题3. 提

SpringSecurity 认证、注销、权限控制功能(注销、记住密码、自定义登入页)

《SpringSecurity认证、注销、权限控制功能(注销、记住密码、自定义登入页)》SpringSecurity是一个强大的Java框架,用于保护应用程序的安全性,它提供了一套全面的安全解决方案... 目录简介认识Spring Security“认证”(Authentication)“授权” (Auth

Linux文件名修改方法大全

《Linux文件名修改方法大全》在Linux系统中,文件名修改是一个常见且重要的操作,文件名修改可以更好地管理文件和文件夹,使其更具可读性和有序性,本文将介绍三种在Linux系统下常用的文件名修改方法... 目录一、引言二、使用mv命令修改文件名三、使用rename命令修改文件名四、mv命令和rename命

mybatis-plus 实现查询表名动态修改的示例代码

《mybatis-plus实现查询表名动态修改的示例代码》通过MyBatis-Plus实现表名的动态替换,根据配置或入参选择不同的表,本文主要介绍了mybatis-plus实现查询表名动态修改的示... 目录实现数据库初始化依赖包配置读取类设置 myBATis-plus 插件测试通过 mybatis-plu

Linux下修改hostname的三种实现方式

《Linux下修改hostname的三种实现方式》:本文主要介绍Linux下修改hostname的三种实现方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录linux下修改ho编程stname三种方式方法1:修改配置文件方法2:hFvEWEostnamectl命

Spring Security注解方式权限控制过程

《SpringSecurity注解方式权限控制过程》:本文主要介绍SpringSecurity注解方式权限控制过程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、摘要二、实现步骤2.1 在配置类中添加权限注解的支持2.2 创建Controller类2.3 Us