微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

12cR1 学习之 Starting up a CDB instance

To start a CDB instance,the current user must be a common user whose current container is the root.
##启动CDB,需要使用root用户

When you open a CDB,its PDBs are mounted. Use the ALTER PLUGGABLE DATABASE statement to modify the open mode of one or more PDBs.
##打开一个CDB,PDB确实mount,需要使用alter pluggable database 修改open模式
<roidb01:cdb1:/home/oracle>$sqlplus / as sysdba

sql*Plus: Release 12.1.0.2.0 Production on Mon Mar 5 20:13:46 2018

copyright (c) 1982,2014,Oracle.  All rights reserved.

Connected to an idle instance.

sql> startup
ORACLE instance started.

Total System Global Area 1174405120 bytes
Fixed Size                  2923680 bytes
Variable Size             436208480 bytes
Database Buffers          721420288 bytes
Redo Buffers               13852672 bytes
Database mounted.
Database opened.
sql> show con_name

CON_NAME
------------------------------
CDB$ROOT
sql> show pdbs

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 PDB11                          MOUNTED

sql> alter pluggable database all open;

Pluggable database altered.

sql> show pdbs;

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 PDB11                          READ WRITE NO  ##认是读写的
sql>

原文地址:https://www.jb51.cc/oracle/206364.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐