首页 > 数据库技术 > 详细

PDB重命名

时间:2015-06-23 22:51:46      阅读:256      评论:0      收藏:0      [点我收藏+]

PDB重命名

将PDB clonedb重命名为rdb

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>  

 

PDB重命名

原文:http://www.cnblogs.com/abclife/p/4596305.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!