Oracle 19.3.0.0.0密码验证失败

问题描述 投票:0回答:1

我创建了一个PDB,我可以通过sysdba以sysdba的身份连接到该PDB,但是我无法连接自己的普通用户或本地用户。

原因是ORA-01017:密码错误。

在sqlnet.ora中设置后:

SQLNET.ALLOWED_LOGON_VERSION_SERVER=11

并且密码开头以引号结尾,然后起作用。

创建用户和登录用户的命令:

create user c##test identified by "test" container=all;
grant create session to c##test container=all;
alter pluggable database FTR_SHOWCASE open;
conn c##test/"test"@localhost:1521/FTR_SHOWCASE

谢谢。

H。

oracle security connect oracle19c
1个回答
1
投票

使用EZCONNECT连接到数据库时,您需要为用户提供密码:

sqlplus user/pwd@hostname:port/service_name

或者您需要在tnsnames.ora中为您的pdb声明一个别名,并使用以下方式进行连接:

sqlplus user@alias

在您的第一个示例中,它有效,因为oracle使用os身份验证来连接您。

TEST:

SQL> create pluggable database FTR_SHOWCASE from PDBINV;

Pluggable database created.

SQL> create user c##test identified by "test" container=all;

User created.

SQL> grant create session to c##test container=all;

Grant succeeded.

SQL> alter pluggable database FTR_SHOWCASE open;

Pluggable database altered.

SQL> conn c##test/test@localhost:1521/FTR_SHOWCASE
Connected.
© www.soinside.com 2019 - 2024. All rights reserved.