我无法与可插拔数据库中的本地用户连接(12C)
以下是相关代码:
在此处输入图像描述
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.
这是一个解决方法,但它在 Oracle 18c 速成版上对我有用。首先通过以下方式查找容器名称 show con_name
然后连接到用户 1 作为
conn user1/user1@localhost:1521/xepdb1
在此处输入图像描述