Description
Describe the issue
Setting a new password for SYS and SYSTEM works, but fails for PDBADMIN:
[oracle@localhost ~]$ /home/oracle/setPassword.sh Not_Very_N1ce_Pass
The Oracle base remains unchanged with value /opt/oracle
SQL*Plus: Release 18.0.0.0.0 - Production on Fri Sep 4 17:52:00 2020
Version 18.4.0.0.0
Copyright (c) 1982, 2018, Oracle. All rights reserved.
Connected to:
Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production
Version 18.4.0.0.0
SQL>
User altered.
SQL>
User altered.
SQL> 2 XEPDB1
*
ERROR at line 2:
ORA-02248: invalid option for ALTER SESSION
SQL> ALTER USER PDBADMIN IDENTIFIED BY "Not_Very_N1ce_Pass"
*
ERROR at line 1:
ORA-01918: user 'PDBADMIN' does not exist
SQL> Disconnected from Oracle Database 18c Express Edition Release 18.0.0.0.0 - Production`
Environment (please complete the following information):
- Host OS: Windows 10
- Vagrant version: 2.2.10
- VirtualBox version: 6.1.12r139181
- Vagrant project: OracleDatabase/18.4.0-XE
Additional information
Looks like there is an extra pdb with a long name, causing the error when trying to find the PDB name:
[oracle@localhost ~]$ ls -dl $ORACLE_BASE/oradata/$ORACLE_SID/*/ | grep -v pdbseed | awk '{print $9}' | cut -d/ -f6
AE7E20660A3D5A64E055000000000001
XEPDB1