Configure Instance Parameters and Modify Container Databases (CDB) and Pluggable Databases (PDB)
Configure Instance Parameters and Modify Container Databases (CDB) and Pluggable Databases (PDB)
------------------------------------------------------
ALTER SYSTEM SET parameter_name=value;
ALTER SYSTEM SET parameter_name=value CONTAINER=CURRENT;
CONN / AS SYSDBA
ALTER SESSION SET CONTAINER = pdb1;
CONN / AS SYSDBA
ALTER SESSION SET CONTAINER = pdb1;
-- Change the global name. This will change the container name and the
-- name of the default service registered with the listener.
ALTER PLUGGABLE DATABASE OPEN RESTRICTED FORCE;
ALTER PLUGGABLE DATABASE RENAME GLOBAL_NAME TO pdb1a.localdomain;
ALTER PLUGGABLE DATABASE CLOSE IMMEDIATE;
ALTER PLUGGABLE DATABASE OPEN;
In addition there is a mechanism to control the maximum size of the PDB and the
amount of the shared temp space it can use.
-- Limit the total storage of the the PDB (datafile and local temp files).
ALTER PLUGGABLE DATABASE STORAGE (MAXSIZE 5G);
-- Limit the amount of temp space used in the shared temp files.
ALTER PLUGGABLE DATABASE STORAGE (MAX_SHARED_TEMP_SIZE 2G);