博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Oracle 12C -- plug unplugged PDB into CDB
阅读量:5136 次
发布时间:2019-06-13

本文共 2383 字,大约阅读时间需要 7 分钟。

connetct to CDB as a common user and verify that pdb_test is closed

SQL> select con_id,dbid,name,open_mode from v$pdbs;    CON_ID       DBID NAME                           OPEN_MODE---------- ---------- ------------------------------ ----------         2 1258043702 PDB$SEED                       READ ONLY         3 3749525766 PDB1                           READ ONLY         4 2192587015 P4                             READ ONLY         5  255759235 PDB_TEST                       READ WRITESQL> alter pluggable database pdb_test close;SQL> alter pluggable database pdb_test unplug into '/tmp/xmlfile1.xml';SQL> select con_id,dbid,name,open_mode from v$pdbs;    CON_ID       DBID NAME                           OPEN_MODE---------- ---------- ------------------------------ ----------         2 1258043702 PDB$SEED                       READ ONLY         3 3749525766 PDB1                           READ ONLY         4 2192587015 P4                             READ ONLY         5  255759235 PDB_TEST                       MOUNTED

 

A PDB must be dropped from the CDB before it can be plugged back into the same CDB

SQL> create pluggable database pdb_test using '/tmp/xmlfile1.xml' nocopy;create pluggable database pdb_test using '/tmp/xmlfile1.xml' nocopy*ERROR at line 1:ORA-65012: Pluggable database PDB_TEST already exists.SQL> drop pluggable database pdb_test;SQL> create pluggable database pdb_test using '/tmp/xmlfile1.xml' nocopy;SQL> select con_id,dbid,name,open_mode from v$pdbs;    CON_ID       DBID NAME                           OPEN_MODE---------- ---------- ------------------------------ ----------         2 1258043702 PDB$SEED                       READ ONLY         3 3749525766 PDB1                           READ ONLY         4 2192587015 P4                             READ ONLY         5  255759235 PDB_TEST                       MOUNTEDSQL> alter pluggable database pdb_test open;SQL> select con_id,dbid,name,open_mode from v$pdbs;    CON_ID       DBID NAME                           OPEN_MODE---------- ---------- ------------------------------ ----------         2 1258043702 PDB$SEED                       READ ONLY         3 3749525766 PDB1                           READ ONLY         4 2192587015 P4                             READ ONLY         5  255759235 PDB_TEST                       READ WRITESQL>

 

转载于:https://www.cnblogs.com/abclife/p/4925545.html

你可能感兴趣的文章
latex for wordpress(一)
查看>>
如何在maven工程中加载oracle驱动
查看>>
aboutMe
查看>>
【Debug】IAR在线调试时报错,Warning: Stack pointer is setup to incorrect alignmentStack,芯片使用STM32F103ZET6...
查看>>
一句话说清分布式锁,进程锁,线程锁
查看>>
FastDFS使用
查看>>
服务器解析请求的基本原理
查看>>
[HDU3683 Gomoku]
查看>>
下一代操作系统与软件
查看>>
Python IO模型
查看>>
DataGridView的行的字体颜色变化
查看>>
局域网内手机访问电脑网站注意几点
查看>>
[Serializable]的应用--注册码的生成,加密和验证
查看>>
Android-多线程AsyncTask
查看>>
LeetCode【709. 转换成小写字母】
查看>>
CF992E Nastya and King-Shamans(线段树二分+思维)
查看>>
如果没有按照正常的先装iis后装.net的顺序,可以使用此命令重新注册一下:
查看>>
linux install ftp server
查看>>
alter database databasename set single_user with rollback IMMEDIATE 不成功问题
查看>>
【题解】青蛙的约会
查看>>