STARTUP;
SHUTDOWN IMMEDIATE;
ALTER PLUGGABLE DATABASE
ALTER PLUGGABLE DATABASE
可以从
CDB
或
PDB
使用该命令。
当以特权用户身份连接到
PDB
时,以下命令可用于打开和关闭当前
PDB
。
ALTER PLUGGABLE DATABASE OPEN READ WRITE [RESTRICTED] [FORCE];
ALTER PLUGGABLE DATABASE OPEN READ ONLY [RESTRICTED] [FORCE];
ALTER PLUGGABLE DATABASE OPEN UPGRADE [RESTRICTED];
ALTER PLUGGABLE DATABASE CLOSE [IMMEDIATE];
一些示例如下所示
.
ALTER PLUGGABLE DATABASE OPEN READ ONLY FORCE;
ALTER PLUGGABLE DATABASE CLOSE IMMEDIATE;
ALTER PLUGGABLE DATABASE OPEN READ WRITE;
ALTER PLUGGABLE DATABASE CLOSE IMMEDIATE;
当以特权用户身份连接到
CDB
时,以下命令可用于打开和关闭一个或多个
PDB.
ALTER PLUGGABLE DATABASE <pdb-name-clause> OPEN READ WRITE
[RESTRICTED] [FORCE];
ALTER PLUGGABLE DATABASE <pdb-name-clause> OPEN READ ONLY
[RESTRICTED] [FORCE];
ALTER PLUGGABLE DATABASE <pdb-name-clause> OPEN UPGRADE
[RESTRICTED];
ALTER PLUGGABLE DATABASE <pdb-name-clause> CLOSE [IMMEDIATE];
该
<pdb-name-clause>
子句可以是以下任意一项
:
一个或多个
PDB
名称,指定为以逗号分隔的列表。
评论