|
[oracle@sztech orcl]$ sqlplus / as sysdba
SQL*Plus: Release 19.0.0.0.0 - Production on Tue Aug 23 16:02:55 2022
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
5 ORCL MOUNTED
SQL> alter pluggable database orcl open;
Warning: PDB altered with errors.
orcl实例虽然启动,但是只能在独占模式下启动,显然是存在问题的,我们通过alert日志查找更多的信息,发现启动时候,出现如下信息
SQL> show pdbs
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
5 ORCL READ WRITE YES
查看alter日志:
2022-08-23T16:53:30.247285+08:00
ORCL(5):Undo initialization recovery: err:0 start: 23930466 end: 23930472 diff: 6 ms (0.0 seconds)
ORCL(5):[30050] Successfully onlined Undo Tablespace 2.
ORCL(5):Undo initialization online undo segments: err:0 start: 23930472 end: 23931152 diff: 680 ms (0.7 seconds)
ORCL(5):Undo initialization finished serial:0 start:23930466 end:23931179 diff:713 ms (0.7 seconds)
2022-08-23T16:53:32.460876+08:00
Violations: Type: 1, Count: 1
Violations: Type: 2, Count: 2
ORCL(5):***************************************************************
ORCL(5):WARNING: Pluggable Database ORCL with pdb id - 5 is
ORCL(5): altered with errors or warnings. Please look into
ORCL(5): PDB_PLUG_IN_VIOLATIONS view for more details.
ORCL(5):***************************************************************
2022-08-23T16:53:44.728077+08:00
ORCL(5):Opening pdb with no Resource Manager plan active
ORCL(5):joxcsys_required_dirobj_exists: directory object exists with required path /u01/app/oracle/product/19.3.0/db_1/javavm/admin/, pid 30050 cid 5
2022-08-23T16:53:46.648573+08:00
Pluggable database ORCL opened read write
Completed: alter pluggable database orcl open
|
提示很清楚,叫我们去查询视图PDB_PLUG_IN_VIOLATIONS,该视图需要在CDB环境下去查询
SQL> select name,type,message from PDB_PLUG_IN_VIOLATIONs order by name;
NAME TYPE MESSAGE
-------------------- --------- ----------------------------------------------------------------------
ORCL ERROR Character set mismatch: PDB character set WE8MSWIN1252. CDB character
set ZHS16GBK.
ORCL WARNING Database option DV mismatch: PDB installed version NULL. CDB installed
version 19.0.0.0.0.
ORCL WARNING Database option OLS mismatch: PDB installed version NULL. CDB installe
d version 19.0.0.0.0.
ERROR提示,信息很明确,提示的是PDB的字符集为WE8MSWIN1252,而CDB的字符集为ZHS16GBK,看来在19C的情况下,CDB必须同其包含的PDB保持一致的字符集,否则无法启动。
|
|