Oracle 参数 MAX_PDBS 官方解释,作用,如何配置最优化建议
本站中文解释
MAX_PDBS参数用于限制创建插槽数量,即可以创建的PDBS数量。在多插槽数据库中,Oracle限制了创建PDB的最大数量,默认为112个,最大可达127个。
在Oracle11G以上版本中,PDB支持热交换,管理插槽变得更加方便,可以在节点的多个CDB中切换,PDB的最大数量应该根据自己的数据库业务需要,合理调整并设置好最大值。
正确设置MAX_PDBS:
1.如果需要在不影响当前正在使用的PDB的前提下,可以增加插槽数量,可以在实例级别设置MAX_PDBS参数,这样可以随时增加或减少PDB插槽数量;
2.从Oracle12c开始,可以从命令行或者sqlplus中,增加或减少PDB插槽数量,例如:ALTER SYSTEM SET MAX_PDBS=128 SCOPE=SPFILE;或者ALTER PLUGGABLE DATABASE MAX_PDBS=128;;
3.如果需要手动调整MAX_PDBS的最大值,可以使用如下命令:ALTER SYSTEM SET MAX_PDBS=128 SCOPE=SPFILE;,然后重启数据库实例即可。
官方英文解释
MAX_PDBS
allows you to limit the number of pluggable databases (PDBs) that can be created in a CDB or an application container.
Property | Description |
---|---|
Parameter type |
Integer |
Default value |
Depends on the Oracle Database edition Possible values: |
Modifiable |
|
Modifiable in a PDB |
No. However, this parameter can be modified in the application root of an application container. |
Range of values |
Minimum: Maximum: The default value for the Oracle Database edition ( |
Basic |
No |
Oracle RAC |
The same value must be used on all instances. |
This parameter can only be set while connected to the CDB root or an application root.
This parameter applies to PDBs, application containers, and application PDBs. An application PDB is a PDB that resides in an application container.
This parameter does not apply to the PDB seed (PDB$SEED
), application seeds, or application root clones.
Note:
The maximum number of PDBs that you are allowed to create in a CDB depends on the licensing policy for your Oracle Database edition. To learn more, refer to the Oracle Multitenant information in the “Consolidation” table in Oracle Database Licensing
Information User Manual.