怎么解决oracle 19c sec_case_sensitive_logon参数问题
这篇文章主要介绍“怎么解决oracle 19c sec_case_sensitive_logon参数问题”,在日常操作中,相信很多人在怎么解决oracle 19c sec_case_sensitive_logon参数问题问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”怎么解决oracle 19c sec_case_sensitive_logon参数问题”的疑惑有所帮助!接下来,请跟着小编一起来学习吧!
11g前,密码不区分大小写,11g开始引入了sec_case_sensitive_logon参数控制密码敏感,默认true,大小写敏感。
安装完19C后,将sec_case_sensitive_logon调成false,设置密码大小写不敏感后,发现即使使用正确的密码也无法登录了。
原来19C中早已废弃了sec_case_sensitive_logon参数,重启数据库也可以看到提示:
MOS上相关的文章有很多,例如:
DBUARemovesSEC_CASE_SENSITIVE_LOGONInitParameterAfterUpgradingto12c(DocID2107717.1)SEC_CASE_SENSITIVE_LOGONinitparameterhasbeendeprecatedin12c,henceideallyyoushouldcommentoutthisparameterbeforeupgradeto12c.ButifyoustillsetSEC_CASE_SENSITIVE_LOGONsystemparameter,theDatabaseUpgradeAssistant(DBUA)removestheSEC_CASE_SENSITIVE_LOGONsystemparameterduringtheupgradeprocessifitexistsintheparameterfile(referenceBug16238456).18c:AlluserconnectionsfailwithORA-01017exceptSYSwhenSEC_CASE_SENSITIVE_LOGON=FALSE(DocID2502204.1)WhatIstheSEC_CASE_SENSITIVE_LOGONParameterandHowIsItUsed?(DocID2378179.1)TheSEC_CASE_SENSITIVE_LOGONparameterenablesordisablespasswordcasesensitivityinthedatabase.ItisdefaultedtoaTRUEvalue.True-DatabaselogonpasswordsarecasesensitiveFalse-DatabaselogonpasswordsarenotcasesensitiveForadditionalinformationpleaserefertothefollowingDatabaseSecurityGuide:https://docs.oracle.com/database/121/DBSEG/authentication.htm#DBSEG3225
测试过程如下:
查看数据库版本
SQL>selectbannerfromv$version;BANNER--------------------------------------------------------------------------------OracleDatabase19cEnterpriseEditionRelease19.0.0.0.0-Production
启动所有PDB
SQL>alterpluggabledatabaseallopen;SQL>showpdbsCON_IDCON_NAMEOPENMODERESTRICTED------------------------------------------------------------2PDB$SEEDREADONLYNO3CJCPDBREADWRITENO
查看当前参数值
SQL>showparametersec_case_sensitive_logonNAMETYPEVALUE-----------------------------------------------------------------------------sec_case_sensitive_logonbooleanTRUE
创建新用户
SQL>createuserc##chenidentifiedbya;Usercreated.SQL>grantconnecttoc##chen;Grantsucceeded.
密码区分大小写
SQL>connc##chen/aConnected.SQL>connc##chen/AERROR:ORA-01017:invalidusername/password;logondeniedWarning:YouarenolongerconnectedtoORACLE.
更改参数
SQL>showparametersec_case_sensitive_logonNAMETYPEVALUE-----------------------------------------------------------------------------sec_case_sensitive_logonbooleanTRUE
SQL>conn/assysdbaConnected.SQL>altersystemsetsec_case_sensitive_logon=false;Systemaltered.
新用户无法登录(即使使用正确的密码)
SQL>connc##chen/aERROR:ORA-01017:invalidusername/password;logondeniedWarning:YouarenolongerconnectedtoORACLE.SQL>connc##chen/AERROR:ORA-01017:invalidusername/password;logondenied
改回参数
SQL>conn/assysdbaConnected.SQL>altersystemsetsec_case_sensitive_logon=true;Systemaltered.SQL>connc##chen/AERROR:ORA-01017:invalidusername/password;logondeniedWarning:YouarenolongerconnectedtoORACLE.
可以正常登录
SQL>connc##chen/aConnected.SQL>showuserUSERis"C##CHEN"
也可以通过设置sqlnet.ora,实现大小写不敏感
该参数用来限制可以连接到数据库服务器上的最小客户端版本,比如设置值为10,即10g,11g等以上客户端版本可以连接到数据库服务器上。
[oracle@cjcos01admin]$pwd/u01/app/oracle/product/19.0.0/dbhome_1/network/admin[oracle@cjcos01admin]$catsqlnet.oraSQLNET.ALLOWED_LOGON_VERSION_SERVER=8SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8
修改参数
SQL>altersystemsetsec_case_sensitive_logon=false;Systemaltered.
创建用户
SQL>createuserc##cccidentifiedbya;Usercreated.SQL>grantconnecttoc##ccc;Grantsucceeded.
密码大小写不敏感
SQL>connc##ccc/aConnected.SQL>connc##ccc/AConnected.
到此,关于“怎么解决oracle 19c sec_case_sensitive_logon参数问题”的学习就结束了,希望能够解决大家的疑惑。理论与实践的搭配能更好的帮助大家学习,快去试试吧!若想继续学习更多相关知识,请继续关注亿速云网站,小编会继续努力为大家带来更多实用的文章!
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。