Oracle返回错误“ORA-01031:权限不足”
当我运行sqlplus / as sysdba但是sqlplus sys / oracle123,因为sysdba没有,为什么?
> Oracle版本:Oracle数据库10g企业版10.2.0.1.0版 – 64位
> Linux版本:SUSE Linux Enterprise Server 11(x86_64)
我知道Oracle在运行sqlplus / as sysdba时使用OS身份验证,我也仔细检查了sqlnet.ora,它包含SQLNET.AUTHENTICATION_SERVICES =(NTS).
我也更改了oracle用户的组,oracle用户绝对属于dba组,因为当我运行命令id时,以下信息返回:
oracle@linux-mage:~> id
uid=103(oracle) gid=106(dba) groups=105(oinstall),106(dba)
另一个信息是我可以通过sqlplus sys / oracle123作为sysdba登录,但是我无法关闭实例:
oracle@linux-mage:~> sqlplus sys/oracle123 as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Sep 5 16:29:57 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected.
SQL> shutdown immediate
ORA-24324: service handle not initialized
ORA-24323: value not allowed
ORA-27140: attach to post/wait facility failed
SQL> shutdown abort
ORA-01031: insufficient privileges
SQL>
我运行strace -o trace.out sqlplus“/ as sysdba”并获得以下输出消息.
strace信息太大了.所以我把它粘贴到pastebin中.请访问此链接
ipcs -s和ipcs -ls信息:
甲骨文@ Linux的法师:〜> ipcs -s
------ Semaphore Arrays --------
key semid owner perms nsems
oracle@linux-mage:~> ipcs -ls
------ Semaphore Limits --------
max number of arrays = 200
max semaphores per array = 250
max semaphores system wide = 32000
max ops per semop call = 100
semaphore max value = 32767
解决方法:
在操作系统级别出现问题 – 检查this page是否有一些步骤可以追踪问题
标签:linux,oracle
来源: https://codeday.me/bug/20190805/1589734.html