都是逗号惹的祸 ORA-01017: invalid username/password; logon denied

Posted tingxin

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了都是逗号惹的祸 ORA-01017: invalid username/password; logon denied相关的知识,希望对你有一定的参考价值。

在做SAP系统迁移的时间发现一个问题 ORA-01017: invalid username/password; logon denied

root@test:> brconnect -u // -c -f check
BR0801I BRCONNECT 7.40 (36)
BR0805I Start of BRCONNECT processing: cfedpzix.chk 2020-07-03 14:01:23
BR0484I BRCONNECT log file: /app/oracle/d4c/sapcheck/cfedpzix.chk
BR0280I BRCONNECT time stamp: 2020-07-03 14:01:25
BR0301E SQL error -1017 at location BrInitOraCreate-1, SQL statement:
‘CONNECT BRT$ADM/*************** AT PROF_CONN IN SYSOPER MODE‘
ORA-01017: invalid username/password; logon denied

BR0806I End of BRCONNECT processing: cfedpzix.chk 2020-07-03 14:01:25
BR0280I BRCONNECT time stamp: 2020-07-03 14:01:26
BR0804I BRCONNECT terminated with errors

忙了半天发现了一个很诡异的原因 Oracle账号的 oper 组丢了
root@test: $ id d4cadm
uid=50001(d4cadm) gid=601(sapsys) groups=602(dba)
root@test:$ id Oracle
uid=50002(Oracle) gid=602(dba)

找到元凶:
root@test)?? cat /etc/group|grep -i oper
oper:!:603:,d4cadm,Oracle--at this line before d4cadm “,” should not there.

删除 “,”
root@test: $ cat /etc/group|grep -i oper
oper:!:603:d4cadm,Oracle

解决:
root@test: $ id d4cadm
uid=50001(d4cadm) gid=601(sapsys) groups=602(dba),603(oper)
root@test: $ id Oracle
uid=50002(Oracle) gid=602(dba) groups=603(oper)

root@ oracle 1> brconnect -u // -c -f check
BR0801I BRCONNECT 7.40 (36)
BR0805I Start of BRCONNECT processing: cfedsbde.chk 2020-07-04 00:07:18
BR0484I BRCONNECT log file: /app/oracle/d4c/sapcheck/cfedpzix.chk
BR0477I Oracle pfile /app/oracle/d4c/121/dbs/initd4c.ora created from spfile /app/oracle/d4c/121/dbs/spfiled4c.ora

BR0280I BRCONNECT time stamp: 2020-07-04 00:07:21
BR0813I Schema owners found in database d4c:



























以上是关于都是逗号惹的祸 ORA-01017: invalid username/password; logon denied的主要内容,如果未能解决你的问题,请参考以下文章

===都是缓存惹的祸=====

你应该知道的数仓安全:都是同名Schema惹的祸

都是缓存惹的祸

SEO分析:都是流量惹的祸

SEO分析:都是流量惹的祸

编程语言的“别样”编年史,原来都是“闲”惹的祸