日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

java ora 28040_Oracle 11g与112c中ORA-28040 错误解决

發(fā)布時(shí)間:2024/9/27 编程问答 24 豆豆
生活随笔 收集整理的這篇文章主要介紹了 java ora 28040_Oracle 11g与112c中ORA-28040 错误解决 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

今天遇到一個(gè)連接192.168.56.102這個(gè)庫(kù)報(bào)錯(cuò)

Java.sql.SQLException: ORA-28040: No matching authentication protocol

Oracle 12C下查詢此報(bào)錯(cuò)

oralce:/oracle/db/app/12.1.0/db/network/admin> oerr ora 28040

28040, 0000, "No matching authentication protocol"

// *Cause:? There was no acceptable authentication protocol for

//? ? ? ? ? either client or server.

// *Action: The administrator should set the values of the

//? ? ? ? ? SQLNET.ALLOWED_LOGON_VERSION_SERVER and

//? ? ? ? ? SQLNET.ALLOWED_LOGON_VERSION_CLIENT parameters, on both the

//? ? ? ? ? client and on the server, to values that match the minimum

//? ? ? ? ? version software supported in the system.

//? ? ? ? ? This error is also raised when the client is authenticating to

//? ? ? ? ? a user account which was created without a verifier suitable for

//? ? ? ? ? the client software version. In this situation, that account's

//? ? ? ? ? password must be reset, in order for the required verifier to

//? ? ? ? ? be generated and allow authentication to proceed successfully.

Oracle 11g下查詢報(bào)錯(cuò)

oracle@oralce:/oracle/app/oracle/product/11.2.0/db/network/admin$ oerr ora 28040

28040, 0000, "No matching authentication protocol"

// *Cause:? No acceptible authentication protocol for both client and server

// *Action: Administrator should set SQLNET_ALLOWED_LOGON_VERSION parameter

//? ? ? ? ? on both client and servers to values that matches the minimum

//? ? ? ? ? version supported in the system.

很明顯,在11G和12C下的解決方案是不一樣的。

在11G中的參數(shù)是SQLNET_ALLOWED_LOGON_VERSION;

而在12C中的參數(shù)是SQLNET.ALLOWED_LOGON_VERSION_SERVER和SQLNET.ALLOWED_LOGON_VERSION_CLIENT

因?yàn)槲业沫h(huán)境是12C的,所以我使用12C的解決方式,設(shè)置以上2個(gè)參數(shù)。

因?yàn)槲业沫h(huán)境上沒(méi)有sqlnet.ora文件,所以新建了一個(gè)

vi sqlnet.ora

SQLNET.ALLOWED_LOGON_VERSION_SERVER=8

SQLNET.ALLOWED_LOGON_VERSION_CLIENT=8

然后重啟監(jiān)聽(tīng)

lsnrctl reload

LSNRCTL for IBM/AIX RISC System/6000: Version 12.1.0.2.0 - Production on 13-JUN-2017 11:42:52

Copyright (c) 1991, 2016, Oracle.? All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

TNS-01190: The user is not authorized to execute the requested listener command

oralce:/oracle/db/app/12.1.0/db/network/admin>

oralce:/oracle/db/app/12.1.0/db/network/admin>

oralce:/oracle/db/app/12.1.0/db/network/admin> lsnrctl status

LSNRCTL for IBM/AIX RISC System/6000: Version 12.1.0.2.0 - Production on 13-JUN-2017 11:42:57

Copyright (c) 1991, 2016, Oracle.? All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

STATUS of the LISTENER

------------------------

Alias? ? ? ? ? ? ? ? ? ? LISTENER

Version? ? ? ? ? ? ? ? ? TNSLSNR for IBM/AIX RISC System/6000: Version 12.1.0.2.0 - Production

Start Date? ? ? ? ? ? ? ? 09-JUN-2017 22:46:07

Uptime? ? ? ? ? ? ? ? ? ? 3 days 12 hr. 56 min. 50 sec

Trace Level? ? ? ? ? ? ? off

Security? ? ? ? ? ? ? ? ? ON: Local OS Authentication

SNMP? ? ? ? ? ? ? ? ? ? ? OFF

Listener Parameter File? /oracle/gridhome/app/12.1.0/grid/network/admin/listener.ora

Listener Log File? ? ? ? /oracle/grid/diag/tnslsnr/oralce/listener/alert/log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=135.10.89.101)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=135.10.89.103)(PORT=1521)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcps)(HOST=oralce)(PORT=5500))(Security=(my_wallet_directory=/oracle/db/app/12.1.0/db/admin/zykgdb/xdb_wallet))(Presentation=HTTP)(Session=RAW))

Services Summary...

Service "+ASM" has 1 instance(s).

Instance "+ASM2", status READY, has 1 handler(s) for this service...

Service "zykgdb" has 1 instance(s).

Instance "zykgdb2", status READY, has 1 handler(s) for this service...

Service "zykgdbXDB" has 1 instance(s).

Instance "zykgdb2", status READY, has 1 handler(s) for this service...

The command completed successfully

如果是RAC,那么就需要在2個(gè)節(jié)點(diǎn)都設(shè)置sqlnet.ora文件。

創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來(lái)咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)

總結(jié)

以上是生活随笔為你收集整理的java ora 28040_Oracle 11g与112c中ORA-28040 错误解决的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。