【密码文件】Oracle 18c orapwd 命令 OPW-00029- Password complexity failed

【密码文件】Oracle 18c orapwd 命令 OPW-00029- Password complexity failed18c 创建密码文件报错 OPW 00029 Password complexity failed for SYS user Password must contain at least 8 characters 解决 orapwd file orapwrac18cp password lhr

大家好,我是讯享网,很高兴认识大家。

18c创建密码文件报错:

OPW-00029: Password complexity failed for SYS user : Password must contain at least 8 characters.

解决:

 orapwd file=orapwrac18cphy password=lhr format=12 force=y 

讯享网

当忘记sys口令的时候,可以使用orapwd命令重建口令文件。但是在Oracle 18c中却会报OPW-00029的错误。

讯享网 [ dbs]$ sqlplus -version SQL*Plus: Release 18.0.0.0.0 - Production Version 18.3.0.0.0 [ dbs]$ orapwd file=/u01/app/oracle/product/18.3.0/db_1/dbs/orapwcndba password='oracle'   OPW-00029: Password complexity failed for SYS user : Password must contain at least 8 characters. [ dbs]$ 
 The ora12c_verify_function function fulfills the Department of Defense Database Security Technical Implementation Guiderequirements. This function checks for the following requirements when users create or modify passwords:     The password contains no fewer than 8 characters and includes at least one numeric and one alphabetic character.     The password is not the same as the user name or the user name reversed.     The password is not the same as the database name.     The password does not contain the word oracle (such as oracle123).     The password differs from the previous password by at least 8 characters.     The password contains at least 1 special character. 
所以解决方法有两种:
1. 在指定符合验证函数的密码
讯享网 [ dbs]$ orapwd file=/u01/app/oracle/product/18.3.0/db_1/dbs/orapwcndba password='$www.cndba.cn$666'   [ dbs]$ 
2. 在orapwd命令中指定format到12.2 之前的版本。 该参数默认是12.2. 根据命令帮助,将format指定为12即可。
 [ dbs]$ orapwd -h Usage 1: orapwd file=<fname> force={y|n} asm={y|n}           dbuniquename=<dbname> format={12|12.2}           delete={y|n} input_file=<input-fname>           'sys={y | password | external(<sys-external-name>)                 | global(<sys-directory-DN>)}'           'sysbackup={y | password | external(<sysbackup-external-name>)                       | global(<sysbackup-directory-DN>)}'           'sysdg={y | password | external(<sysdg-external-name>)                   | global(<sysdg-directory-DN>)}'           'syskm={y | password | external(<syskm-external-name>)                   | global(<syskm-directory-DN>)}' [ dbs]$ orapwd file=/u01/app/oracle/product/18.3.0/db_1/dbs/orapwcndba password='oracle' format=12   [ dbs]$ 

When I tried to create a password file for a 12.2 database, it initially failed with my favorite (simple) password:

讯享网 [oracle@uhesse dbs]$ orapwd file=$ORACLE_HOME/dbs/orapwprima password=oracle OPW-00029: Password complexity failed for SYS user : Password must contain at least 8 characters. 

Two options to resolve this: Either provide a password that passes the complexity check, like:

 [oracle@uhesse dbs]$ orapwd file=$ORACLE_HOME/dbs/orapwprima password=Very_Complex§1 

Or create the password file in 12.1 format (default being 12.2 format)

讯享网 [oracle@uhesse dbs]$ orapwd describe file=orapwprimaPassword file Description : format=12.2  [oracle@uhesse dbs]$ rm orapwprima[oracle@uhesse dbs]$ orapwd file=$ORACLE_HOME/dbs/orapwprima password=oracle format=12 [oracle@uhesse dbs]$ orapwd describe file=orapwprimaPassword file Description : format=12 

The only drawback of the 12.1 format seems to be the lack of support for granting administrative privileges to external users and enabling SSL and Kerberos authentication for administrative users, according to the  documentation . Which means for me I will keep my passwords simple 



About Me

........................................................................................................................

● 本文作者:小麦苗,部分内容整理自网络,若有侵权请联系小麦苗删除

● 本文在itpub( http://blog.itpub.net/ )、博客园( http://www.cnblogs.com/lhrbest )和个人weixin公众号( xiaomaimiaolhr )上有同步更新

● 本文itpub地址: http://blog.itpub.net/

● 本文博客园地址: http://www.cnblogs.com/lhrbest

● 本文pdf版、个人简介及小麦苗云盘地址: http://blog.itpub.net//viewspace-/

● 数据库笔试面试题库及解答: http://blog.itpub.net//viewspace-/


讯享网

● DBA宝典今日头条号地址: http://www.toutiao.com/c/user//#mid=05826

........................................................................................................................

● 号: (满)

● weixin群:可加我weixin,我拉大家进群,非诚勿扰

● 联系我请加好友 ,注明添加缘由

● 于 2018-11-01 06:00 ~ 2018-11-31 24:00 在魔都完成

● 最新修改时间:2018-11-01 06:00 ~ 2018-11-31 24:00

● 文章内容来源于小麦苗的学习笔记,部分整理自网络,若有侵权或不当之处还请谅解

● 版权所有,欢迎分享本文,转载请保留出处

........................................................................................................................

小麦苗的微店 : https://weidian.com/s/?wfr=c&ifr=shopdetail

小麦苗出版的数据库类丛书 : http://blog.itpub.net//viewspace-/

小麦苗OCP、OCM、高可用网络班 : http://blog.itpub.net//viewspace-/

小麦苗腾讯课堂主页 : https://lhr.ke..com/

........................................................................................................................

使用 weixin客户端 扫描下面的二维码来关注小麦苗的weixin公众号( xiaomaimiaolhr )及(DBA宝典)、添加小麦苗weixin, 学习最实用的数据库技术。

........................................................................................................................

欢迎与我联系

 

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net//viewspace-/,如需转载,请注明出处,否则将追究法律责任。

小讯
上一篇 2025-02-19 17:34
下一篇 2025-03-17 23:19

相关推荐

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容,请联系我们,一经查实,本站将立刻删除。
如需转载请保留出处:https://51itzy.com/kjqy/24945.html