12C 探路 第一个 ORA 28040

本文介绍了Oracle 12c数据库中Pluggable Database (PDB)的基本概念及其与传统模式的区别。包括如何判断当前环境是否为CDB、如何连接和启动PDB等内容,并解决了ORA-28040错误的相关配置问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >



基础知识回顾

1问:cbd,pdb?

在12c以前,Oracle数据库是通过Schema来进行用户模式隔离的,而现在通过pluggable pdb实现隔离,pdb有独立的system sysaux,让自用原数据和系统元数据隔离,可以调高数据库整体性能,例如No cbd模式的数据库,新建一个temp表,则一定会在公用的obj$,tab$中写入相关信息,在 cdb模式下,只需要在pdb的system sysaux写入元数据,而无需写入root container的数据字典元数据里。


2问:登陆12c?

首先确定是否是cdb


show parameter pluggable
select name,cdb,con_id from v$database;

查看当前用户连接是cdb还是pdb


show user
select con_id,name from v$containers;
SELECT con_id,NAME,OPEN_MODE,restricted from v$pdbs
通过上述关注con_id
show con_id
show con_name

3问:如何连接到pdb?


alter session set container=pdb$seed
或
conn sys/***@PDBORCL as sysdba

4问:如何启动pdb?


alter  pluggable database PDBORCL open;	


解析ORA 28040

-bash-3.2$ 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.



参考: 12c Database Alert.log File Shows The Message: Using Deprecated SQLNET.ALLOWED_LOGON_VERSION Parameter (文档 ID 2111876.1)

Specify the value for 'n' based on your own environment. The default setting for the new parameters is 11. Any client that attempts to connect must be at version 11 or higher unless these   parameters are explicitly set in the server side sqlnet.ora file.       

   3b. For example: Set these parameters at the lowest version level that is required in your environment.
        The example shpow below shows the following: All clients at version 10 or higher would require this setting:

       SQLNET.ALLOWED_LOGON_VERSION_SERVER=10
       SQLNET.ALLOWED_LOGON_VERSION_CLIENT=10


解决:

SQLNET.ALLOWED_LOGON_VERSION_SERVER=9

SQLNET.ALLOWED_LOGON_VERSION_CLIENT= 9


ok








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

转载于:http://blog.itpub.net/31454056/viewspace-2213582/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值