PDB重命名

复制代码
SQL> select name,open_mode from v$pdbs;    

NAME                           OPEN_MODE
------------------------------ ----------
PDB$SEED                       READ ONLY
YB                             MOUNTED
YB1                            MOUNTED
CLONEDB                        READ WRITE

SQL> alter session set container=clonedb;

Session altered.

SQL> shutdown immediate;
Pluggable Database closed.

#以restrict模式打开
SQL> startup open restrict
Pluggable Database opened.
SQL> alter pluggable database clonedb rename global_name to rdb;

Pluggable database altered.

SQL> show con_name;

CON_NAME
------------------------------
RDB
SQL>  
复制代码
posted @ 2017-09-16 17:50  王超元  阅读(837)  评论(0编辑  收藏  举报
友情链接:回力球鞋 | 中老年高档女装