Når du forsøgte at ændre adgangskoden for en bruger endte med fejlen ORA-65048. Dette er en 12R1-instans:
$ sqlplus / as sysdba SQL*Plus: Release 12.1.0.2.0 Production on Thu Jun 19 07:15:51 2020 Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Advanced Analytics and Real Application Testing options SQL> alter user "C##USRMASTER" identified by values password container=all; ERROR at line 1: ORA-65048: error encountered when processing the current DDL statement in pluggable database HPDBSERV ORA-01918: user 'C##USRMASTER' does not exist
PDB HPDBSERV blev oprettet uden USERS tablespace, som forhindrer PDB i at blive synkroniseret med den overordnede container. pdb_plug_in_violations indeholdt følgende besked:
'CREATE USER C##USRMASTER IDENTIFIED BY * DEFAULT TABLESPACE USERS TEMPORARY TABLESPACE TEMP PROFILE DEFAULT ACCOUNT UNLOCK container = all'
Jeg har løst problemet ved at bruge følgende løsning:
1. Forbind til containeren med det manglende tablespace:
SQL> alter session set container=HPDBSERV; Session altered. SQL> show con_name CON_NAME ------------------------------ HPDBSERV
2. Opret det manglende tablespace:
SQL> create tablespace USERS datafile size 8M autoextend on next 2M maxsize 3G; Tablespace created.
3. Luk og genåbn den pluggbare database:
SQL> alter pluggable database HPDBSERV close; Pluggable database altered. SQL> alter pluggable database HPDBSERV open read write; Pluggable database altered.
4. Skift brugeradgangskoden:
SQL> alter user "C##USRMASTER" identified by values password container=all; User altered.