我无法连接可插拔数据库中的本地用户(12C)

时间:2016-04-21 19:37:16

标签: sql oracle oracle12c

我无法连接可插拔数据库(12C)中的本地用户

以下是相关代码:

enter image description here

SQL> conn sys/sys as sysdba
Connected.
SQL> alter session set container=pdborcl;

Session altered.

SQL> create user user1 identified by user1;

User created.

SQL> grant create session,create table to user1;

Grant succeeded.

SQL> alter user user1 quota unlimited on users;

User altered.


SQL> conn user1/user1
ERROR:
ORA-01017: invalid username/password; logon denied


Warning: You are no longer connected to ORACLE.

1 个答案:

答案 0 :(得分:0)

这是一个变通办法,但是它对我来说适用于Oracle 18c Express Edition。 show con_name

然后以以下身份连接到user1

conn user1/user1@localhost:1521/xepdb1

enter image description here