OS:AIX 7.1
DB:12.1.0.2.0 RAC

oracle@DB01:/home/oracle>sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on 5 17:54:59 2018

Copyright (c) 1982, 2014, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup
ORA-01078: failure in processing system parameters
ORA-01565: error in identifying file '+DATADG/SGSOPEN/spfileSGSOPEN.ora'
ORA-17503: ksfdopn:2 Failed to open file +DATADG/SGSOPEN/spfileSGSOPEN.ora
ORA-12547: TNS:lost contact
SQL> exit

--oracle 节点1异常
oracle@DB01:/home/oracle>ls -tl $ORACLE_HOME/bin/oracle
-rwxrwsrwx 1 oracle asmadmin 548483537 Jul 16 14:42 /oracle/app/oracle/product/12.1.0/db_1/bin/oracle

--grid 节点1异常
grid@DB01:/home/grid>ls -tl $ORACLE_HOME/bin/oracle
-rwxrwxrwx 1 grid oinstall 534880722 Jul 16 11:27 /oracle/app/12.1.0/grid/bin/oracle

--oracle 节点2正常
oracle@DB02:/home/oracle>ls -tl $ORACLE_HOME/bin/oracle
-rwsr-s--x 1 oracle asmadmin 548483537 Jul 16 14:46 /oracle/app/oracle/product/12.1.0/db_1/bin/oracle

--grid 节点2正常
grid@DB02:/home/grid>ls -tl $ORACLE_HOME/bin/oracle
-rwsr-s--x 1 grid oinstall 534880722 Jul 16 11:32 /oracle/app/12.1.0/grid/bin/oracle

--分别设置oracle和grid用户的oracle文件权限为6751,如果属主不对记得修改属主

su - root

chmod 6751 /oracle/app/oracle/product/12.1.0/db_1/bin/oracle
chmod 6751 /oracle/app/12.1.0/grid/bin/oracle

chown oracle:asmadmin /oracle/app/oracle/product/12.1.0/db_1/bin/oracle
chown grid:oinstall /oracle/app/12.1.0/grid/bin/oracle

ls -ld /oracle/app/oracle/product/12.1.0/db_1/bin/oracle
ls -ld /oracle/app/12.1.0/grid/bin/oracle


Sun Jul 29 15:29:40 2018

Cluster communication is configured to use the following interface(s) for this instance
169.254.252.28
cluster interconnect IPC version: Oracle UDP/IP (generic)
IPC Vendor 1 proto 2
Oracle instance running with ODM: Oracle Direct NFS ODM Library Version 3.0
Starting background process PMON
Sun Jul 29 15:29:41 2018
Errors in file /oracle/app/oracle/diag/rdbms/sgsopen/WWJD2/trace/WWJD2_pmon_5899158.trc:
ORA-27140: attach to post/wait facility failed
ORA-27300: OS system dependent operation:invalid_egid failed with status: 1
ORA-27301: OS failure message: Not owner
ORA-27302: failure occurred at: skgpwinit6
ORA-27303: additional information: startup egid = 301 (oinstall), current egid = 309 (asmadmin)
Sun Jul 29 15:29:41 2018
USER (ospid: 5899158): terminating the instance due to error 27140
Sun Jul 29 15:29:42 2018
Instance terminated by USER, pid = 5899158

上面报错的原因是启动数据库的命令一直在sqlplus中的没有退出用户重新进入导致的


如果在修改oracle文件时数据库已经启动,那么再登陆数据库执行命令会提示如下:

SQL> shutdown immediate;

ERROR:

ORA-27140: attach to post/wait facility failed

ORA-27300: OS system dependent operation:invalid_egid failed with status: 1

ORA-27301: OS failure message: Operation not permitted

ORA-27302: failure occurred at: skgpwinit6

ORA-27303: additional information: startup egid = 1100 (oinstall), current egid = 1201 (asmadmin)

这里修改回oracle:oinstall属组后可以正常关闭数据库


root@DB01:/>chmod -help

chmod: Not a recognized flag: e
Usage: chmod [-R] [-f] [-h] {u|g|o|a ...} {+|-|=} {r|w|x|X|s|t ...} File ...
chmod [-R] [-f] [-h] OctalNumber File ...
Changes the permission codes for files or directories.
u 表示该档案的拥有者
g 表示与该档案的拥有者属于同一个群体(group)者
o 表示其他以外的人
a 表示这三者皆是

r=4
w=2
x=1

+ 表示增加权限
- 表示取消权限
= 表示唯一设定权限

关于$ORACLE_HOME/bin/oracle文件属性的更多相关文章

  1. ORA-15025: could not open disk "/dev/asm***"--转载

    Symptoms: 打完补丁后,数据库报错ORA-15025,数据库无法启动. alert日志信息: Wed Jul22 16:26:57 2015 ORA-15025:could not open ...

  2. 用NBU无法还原数据库到ASM磁盘

    描述:用NBU无法还原数据库到ASM磁盘,却可以还原到数据库本地磁盘 错误提示: ORA-15025: could not open disk "/dev/mapper/DATA1" ...

  3. nbu还原集群数据库异常问题

    集群数据库软件均已安装完毕,现在想从NBU上还原数据库,但在还原控制文件报错 [oracle@oracle-db1 ~]$ rman target / Recovery Manager: Releas ...

  4. oracle的特殊权限s bit丢失

    在SUN Cluster搭建过程中,主机工程师在配置集群资源组时报一个oracle的文件权限错误: 协助排查,发现报错很明确,直接指出说oracle的s bit 权限未设置. 直接去查看$ORACLE ...

  5. ORA-1034 ORACLE not available (转)

    http://blog.csdn.net/onlyone_htliu/article/details/6075150 前言 每一个DBA在进行数据库管理的过程中不可避免的要遇到形形色色的错误(ORA- ...

  6. ORACLE数据库异步IO介绍

    异步IO概念 Linux 异步 I/O (AIO)是 Linux 内核中提供的一个增强的功能.它是Linux 2.6 版本内核的一个标准特性,当然我们在2.4 版本内核的补丁中也可以找到它.AIO 背 ...

  7. CentOS6.5 oracle 11g R2 开机自动启动

    1.root 用户下修改ORATAB(将N该为Y): [root@ora11gr2 ~]# vim /etc/oratab mytest:/oracle/product//db_1:Y 2.oracl ...

  8. 示例Oracle 10.2.0.1.0升级到10.2.0.4.0一例

    1.查看当前系统版本 [oracle@std Disk1]$ sqlplus '/as sysdba' SQL*Plus: Release - Production on Thu Jan :: Cop ...

  9. ubuntu下安装oracle

    本来打算在 redhat 下面安装了,但是没有 redhat 的盘了,就装了个 ubuntu 桌面版,结果安装起来十分费劲,主要是之前没安装过,对 oracle 的架构和配置也不太懂. 下面记录我安装 ...

随机推荐

  1. 论文阅读笔记四十五:Region Proposal by Guided Anchoring(CVPR2019)

    论文原址:https://arxiv.org/abs/1901.03278 github:code will be available 摘要 区域anchor是现阶段目标检测方法的重要基石.大多数好的 ...

  2. vue入门知识点

    最近入坑vue 做一点小的记录 有不对的 辛苦指出 会第一时间更改上新 0.利用vue-cli构建项目新建一个目标文件夹 ,全局安装vue-cli脚手架工具 (全局安装一次即可) npm instal ...

  3. B - Housewife Wind-树链剖分-树状数组

    思路:边权转化到点权上,统一把每一条边的边权集中到深度较深的点上去. #include<stdio.h> #include<iostream> #include<cstr ...

  4. django——面试题(已工作,暂停更新)

    谈谈你对HTTP协议的认识. 什么是协议? 协议,是指通信的双方,在通信流程或内容格式上,共同遵守的标准. 什么是http协议? http协议,是互联网中最常见的网络通信标准. http协议的特点 ① ...

  5. Struts2深入

    Struts2架构剖析 1.客户端向Servlet容器(如Tomcat)提交一个请求 2.请求经过一系列过滤器(如ActionContextCleanUp过滤器等) 3.核心控制器被调用,询问Acti ...

  6. hadoop解决Could not locate executable null\bin\winutils.exe in the Hadoop binaries.问题

    先看下自己的JAVA_HOME里面有没有空格目录,如果有的话,先把JAVA_HOME换个没空格的位置. 在windows系统本地运行spark的wordcount程序,会出现一个异常,但不影响现有程序 ...

  7. 阿里云 Windows 2012 如果安装IIS

    用可视化安装如果出错, 那就用 windows powershell 安装 https://help.aliyun.com/knowledge_detail/40959.html?spm=5176.1 ...

  8. priority_queue和sort应用

    #include"iostream" #include"String" #include"stdio.h" #include "s ...

  9. jQuery插件开发的五种形态小结(转)

    关于jQuery插件的开发自己也做了少许研究,自己也写过多个插件,在自己的团队了也分享过一次关于插件的课.开始的时候整觉的很复杂的代码,现在再次看的时候就清晰了许多.这里我把我自己总结出来的东西分享出 ...

  10. 关于python列表和元组的基本操作

    一.列表 列表是python中最常出现的一种数据存储形式,掌握列表的基本操作可以快速而有效的提高我们的代码书写效率.列表中存放的数据有如下基本操作:如增.删.改.查,掌握了这四个操作,就基本掌握了列表 ...