日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

toad连接oracle12c,[20181107]低版本toad连接18c数据库问题.txt

發(fā)布時間:2025/5/22 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 toad连接oracle12c,[20181107]低版本toad连接18c数据库问题.txt 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

[20181107]低版本toad連接18c數(shù)據(jù)庫問題.txt

--//同事使用低版本toad連接18c遇到的問題,無法連接.實際上該版本toad使用10.2.0的oracle client.

根據(jù)MOS文檔 (ID 755605.1),ORA-28040的錯誤需要在Oracle 用戶(非grid用戶)的sqlnet.ora 文件中添加:

SQLNET.ALLOWED_LOGON_VERSION=8

或者使用更高版本的客戶端。

但實際上,根據(jù)MOS文檔(ID 2111876.1), 在Oracle 12c 以后的版本,

SQLNET.ALLOWED_LOGON_VERSION 參數(shù)已經(jīng)棄用了,應(yīng)該使用以下2個參數(shù)代替:

SQLNET.ALLOWED_LOGON_VERSION_SERVER = n

SQLNET.ALLOWED_LOGON_VERSION_CLIENT = n

--//修改數(shù)據(jù)庫的sqlnet.ora文件加入:

SQLNET.ALLOWED_LOGON_VERSION_SERVER = 10

SQLNET.ALLOWED_LOGON_VERSION_CLIENT = 10

--//嘗試連接報ora-1017錯誤,密碼肯定沒有問題,檢查視圖發(fā)現(xiàn):

XXXX> select username,password_versions from dba_users;

USERNAME ? ? ? ? ? ? ? ? ? ? ? PASSWORD_VERSIONS

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

SYS ? ? ? ? ? ? ? ? ? ? ? ? ? ?11G 12C

SYSTEM ? ? ? ? ? ? ? ? ? ? ? ? 11G 12C

...

--//可以發(fā)現(xiàn)PASSWORD_VERSIONS沒有包括10g.

XXXX> alter user system identified by xxxx;

alter user system identified by xxxx

*

ERROR at line 1:

ORA-65066: The specified changes must apply to all containers

--//自己終于知道為什么修改system密碼為什么必須應(yīng)用全部containers.鏈接如下:

All Oracle-supplied administrative user accounts, such as SYS and SYSTEM, are common users and can navigate across the

CDB. Common users can have different privileges in different PDBs. For example, the common user SYSTEM can switch

between PDBs and use the privileges that are granted to SYSTEM in the current PDB.

. . .

If you plug a PDB that contains a common user into a CDB, then the following actions take place:

The common user accounts in this PDB lose commonly granted privileges that they may have had, including the SET

CONTAINER privilege.

If the target CDB has a common user with the same name as a common user in a newly plugged-in PDB, then the new common

user is merged with the target CDB common user. The password of the target CDB common user takes precedence.

See that last sentence? As others, and the doc, say a common user is COMMON. The standard users SYS and SYSTEM are

common users so only have one password.

--//登錄cdb數(shù)據(jù)庫,執(zhí)行如下ok.

alter user SYSTEM identified by xxxx container=all;

--//不過有點奇怪的是

CDB> select username,password_versions from dba_users;

USERNAME ? ? ? ? ? ? ? ? ? ? ? PASSWORD_VERSIONS

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

SYS ? ? ? ? ? ? ? ? ? ? ? ? ? ?11G 12C

SYSTEM ? ? ? ? ? ? ? ? ? ? ? ? 10G 11G 12C

--//而PDB下顯示的依舊不包括10g.

CDB> select username,password_versions from dba_users;

USERNAME ? ? ? ? ? ? ? ? ? ? ? PASSWORD_VERSIONS

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

SYS ? ? ? ? ? ? ? ? ? ? ? ? ? ?11G 12C

SYSTEM ? ? ? ? ? ? ? ? ? ? ? ? 11G 12C

--//另外注意的問題,比如我當前的client端是12c版本.如果我執(zhí)行alter user SYSTEM identified by xxxx container=all;,口令版本

--//一樣無效,不會包括10g,必須修改我的sqlnet.ora文件加入:

SQLNET.ALLOWED_LOGON_VERSION_SERVER=10

SQLNET.ALLOWED_LOGON_VERSION_CLIENT=10

--//再登錄數(shù)據(jù)庫修改口令才會生效.

總結(jié)

以上是生活随笔為你收集整理的toad连接oracle12c,[20181107]低版本toad连接18c数据库问题.txt的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

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