Forum Stats

  • 3,839,356 Users
  • 2,262,486 Discussions
  • 7,900,947 Comments

Discussions

connect as sysdba to pdb

bb_as
bb_as Member Posts: 13 Red Ribbon

Hello,

OS: Windows 10

DB: Oracle Database 18c Express Edition Release 18.0.0.0.0

I want to connect as sysdba to my pluggable database XEPDB1.

1st case:

sqlplus sys/[email protected]/xepdb1 as sysdba

show con_name

=> XEPDB1

So far, so good.

2nd case, WITHOUT password:

sqlplus [email protected]/xepdb1 as sysdba

show con_name

=> CDB$ROOT ⁉️🤔

I am confused. The only difference is, that I specify a password in case 1 , but no password in case 2. In both cases I want to connect to "@localhost/xepdb1", but in case 2 I get connected to the container-database. Why?

Answers