受限模式下的 Oracle 12c 可插拔数据库
Oracle 12c Pluggable Database in Restricted Mode
我们创建了容器数据库,但是当我们尝试创建 PDB 时,它会在受限模式下创建。
SQL> SELECT v.name, v.open_mode, v.restricted, d.status
FROM v$pdbs v, dba_pdbs d WHERE v.guid = d.guid ORDER BY v.create_scn;
NAME OPEN_MODE RES STATUS
=======================================================================
PDB$SEED READ ONLY NO NORMAL
NMPDBTST READ WRITE YES NORMAL
以下是摘自dba_registry;
SQL> select comp_id||'|'||comp_name||'|'||version||'|'||status||'|'||procedure from dba_registry;
COMP_ID||'|'||COMP_NAME||'|'||VERSION||'|'||STATUS||'|'||PROCEDURE
---------------------------------------------------------------------------- -------------------------------------------------------------------------------- --------------------------------------------
DV|Oracle Database Vault|12.1.0.2.0|VALID|VALIDATE_DV
APEX|Oracle Application Express|4.2.5.00.08|VALID|VALIDATE_APEX
OLS|Oracle Label Security|12.1.0.2.0|VALID|VALIDATE_OLS
SDO|Spatial|12.1.0.2.0|VALID|VALIDATE_SDO
ORDIM|Oracle Multimedia|12.1.0.2.0|VALID|VALIDATE_ORDIM
CONTEXT|Oracle Text|12.1.0.2.0|VALID|VALIDATE_CONTEXT
OWM|Oracle Workspace Manager|12.1.0.2.0|VALID|VALIDATE_OWM
XDB|Oracle XML Database|12.1.0.2.0|VALID|DBMS_REGXDB.VALIDATEXDB
CATALOG|Oracle Database Catalog Views|12.1.0.2.0|VALID|DBMS_REGISTRY_SYS.VALIDATE_CATALOG
CATPROC|Oracle Database Packages and Types|12.1.0.2.0|VALID|DBMS_REGISTRY_SYS.VALIDATE_CATPROC
JAVAVM|JServer JAVA Virtual Machine|12.1.0.2.0|VALID|INITJVMAUX.VALIDATE_JAVAVM
XML|Oracle XDK|12.1.0.2.0|VALID|XMLVALIDATE
CATJAVA|Oracle Database Java Packages|12.1.0.2.0|VALID|DBMS_REGISTRY_SYS.VALIDATE_CATJAVA
APS|OLAP Analytic Workspace|12.1.0.2.0|VALID|APS_VALIDATE
XOQ|Oracle OLAP API|12.1.0.2.0|VALID|XOQ_VALIDATE
RAC|Oracle Real Application Clusters|12.1.0.2.0|OPTION OFF|DBMS_CLUSTDB.VALIDATE
以下是 pdb_plug_in_violations
的输出
SQL> select name||'|'||message||'|'||action||'|'||type||'|'||status from pdb_plug_in_violations where type ='ERROR';
**NAME||'|'||MESSAGE||'|'||ACTION||'|'||TYPE||'|'||STATUS**
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PDB$SEED|Database option CATJAVA mismatch: PDB installed version . CDB installed version 12.1.0.2.0.|Fix the database option in the PDB or the CDB|ERROR|PENDING
PDB$SEED|Database option ORDIM mismatch: PDB installed version . CDB installed version 12.1.0.2.0.|Fix the database option in the PDB or the CDB|ERROR|PENDING
NMPDBTST|Database option CATJAVA mismatch: PDB installed version . CDB installed version 12.1.0.2.0.|Fix the database option in the PDB or the CDB|ERROR|PENDING
NMPDBTST|Database option ORDIM mismatch: PDB installed version . CDB installed version 12.1.0.2.0.|Fix the database option in the PDB or the CDB|ERROR|PENDING
有人可以告诉我我们在创建 CDB/PDB 时犯了什么错误吗?
感谢期待。
此致,
罗希特·古拉提
好的,已解决。
通过分析所有日志,我们了解到 java_pool_size 是不够的,因此 JVM 没有正确安装。
一旦我们将 java_pool_size 增加到 150 MB,我们就能够创建可插入数据库。
此致,
罗希特
我们创建了容器数据库,但是当我们尝试创建 PDB 时,它会在受限模式下创建。
SQL> SELECT v.name, v.open_mode, v.restricted, d.status
FROM v$pdbs v, dba_pdbs d WHERE v.guid = d.guid ORDER BY v.create_scn;
NAME OPEN_MODE RES STATUS
=======================================================================
PDB$SEED READ ONLY NO NORMAL
NMPDBTST READ WRITE YES NORMAL
以下是摘自dba_registry;
SQL> select comp_id||'|'||comp_name||'|'||version||'|'||status||'|'||procedure from dba_registry;
COMP_ID||'|'||COMP_NAME||'|'||VERSION||'|'||STATUS||'|'||PROCEDURE
---------------------------------------------------------------------------- -------------------------------------------------------------------------------- --------------------------------------------
DV|Oracle Database Vault|12.1.0.2.0|VALID|VALIDATE_DV
APEX|Oracle Application Express|4.2.5.00.08|VALID|VALIDATE_APEX
OLS|Oracle Label Security|12.1.0.2.0|VALID|VALIDATE_OLS
SDO|Spatial|12.1.0.2.0|VALID|VALIDATE_SDO
ORDIM|Oracle Multimedia|12.1.0.2.0|VALID|VALIDATE_ORDIM
CONTEXT|Oracle Text|12.1.0.2.0|VALID|VALIDATE_CONTEXT
OWM|Oracle Workspace Manager|12.1.0.2.0|VALID|VALIDATE_OWM
XDB|Oracle XML Database|12.1.0.2.0|VALID|DBMS_REGXDB.VALIDATEXDB
CATALOG|Oracle Database Catalog Views|12.1.0.2.0|VALID|DBMS_REGISTRY_SYS.VALIDATE_CATALOG
CATPROC|Oracle Database Packages and Types|12.1.0.2.0|VALID|DBMS_REGISTRY_SYS.VALIDATE_CATPROC
JAVAVM|JServer JAVA Virtual Machine|12.1.0.2.0|VALID|INITJVMAUX.VALIDATE_JAVAVM
XML|Oracle XDK|12.1.0.2.0|VALID|XMLVALIDATE
CATJAVA|Oracle Database Java Packages|12.1.0.2.0|VALID|DBMS_REGISTRY_SYS.VALIDATE_CATJAVA
APS|OLAP Analytic Workspace|12.1.0.2.0|VALID|APS_VALIDATE
XOQ|Oracle OLAP API|12.1.0.2.0|VALID|XOQ_VALIDATE
RAC|Oracle Real Application Clusters|12.1.0.2.0|OPTION OFF|DBMS_CLUSTDB.VALIDATE
以下是 pdb_plug_in_violations
的输出SQL> select name||'|'||message||'|'||action||'|'||type||'|'||status from pdb_plug_in_violations where type ='ERROR';
**NAME||'|'||MESSAGE||'|'||ACTION||'|'||TYPE||'|'||STATUS**
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PDB$SEED|Database option CATJAVA mismatch: PDB installed version . CDB installed version 12.1.0.2.0.|Fix the database option in the PDB or the CDB|ERROR|PENDING
PDB$SEED|Database option ORDIM mismatch: PDB installed version . CDB installed version 12.1.0.2.0.|Fix the database option in the PDB or the CDB|ERROR|PENDING
NMPDBTST|Database option CATJAVA mismatch: PDB installed version . CDB installed version 12.1.0.2.0.|Fix the database option in the PDB or the CDB|ERROR|PENDING
NMPDBTST|Database option ORDIM mismatch: PDB installed version . CDB installed version 12.1.0.2.0.|Fix the database option in the PDB or the CDB|ERROR|PENDING
有人可以告诉我我们在创建 CDB/PDB 时犯了什么错误吗?
感谢期待。
此致, 罗希特·古拉提
好的,已解决。
通过分析所有日志,我们了解到 java_pool_size 是不够的,因此 JVM 没有正确安装。 一旦我们将 java_pool_size 增加到 150 MB,我们就能够创建可插入数据库。
此致, 罗希特