12cR1学习之StartingupaCDBinstance

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模式
$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> 

新闻标题:12cR1学习之StartingupaCDBinstance
网站网址:http://bzwzjz.com/article/gihsch.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 重庆网站建设 手机网站制作设计 H5网站制作 手机网站建设 网站建设费用 成都h5网站建设 营销型网站建设 成都网站建设公司 古蔺网站建设 成都网站制作 企业网站设计 LED网站设计方案 营销型网站建设 定制网站建设 成都网站设计 重庆网站制作 网站制作 网站建设 高端网站设计 成都响应式网站建设 网站建设开发 高端网站建设