如果把数据库从11g 升级到12c,或者在12c中创建的,就是NON CDB,那么这样的数据库就是普通的单实例,

和12c 之前的数据库没有区别,但12c 的特点就是CDB 管理,所以既然上12c,还是要切换成CDB 进行管理。

ORCLE 12.1 Creation of a PDB from a Non-CDB

You can move a non-CDB into a PDB.

You can accomplish this task in the following ways:

Executing

DBMS_PDB.DESCRIBE

on a non-CDB in Oracle Database 12

c

You place a non-CDB in a transactionally consistent state, and then run the

DBMS_PDB.DESCRIBE

function to generate XML metadata about this database. While connected to the root in the CDB, you execute the

CREATE PLUGGABLE DATABASE

statement to create a PDB from the existing non-CDB. Finally, to convert the definitions in the PDB data dictionary to references to objects in

CDB$ROOT

, log in to the PDB and run the

noncdb_to_pdb.sql

script.

See

Oracle Database Administrator’s Guide

to learn how to perform this technique.

Using Oracle Data Pump with or without transportable tablespaces

You can define a data set on a non-CDB using Oracle Data Pump. This non-CDB can be in the current or a previous Oracle Database release, for example, Oracle Database 10

g

. You create an empty PDB in an existing CDB, and then use Oracle Data Pump to import the data set into the PDB.

A Full Transportable Export using Oracle Data Pump exports all objects and data necessary to create a complete copy of the database. Oracle Data Pump exports objects using direct path unload and external tables, and then imports objects using

direct path INSERT

and external tables. The Full Transportable dump file contains all objects in the database, not only table-related objects. Full Transportable Export is available starting in Oracle Database 11

g

Release 2 (11.2.0.3) for import into Oracle Database 12

c

.

See

Oracle Database Administrator’s Guide

to learn how to perform this technique.

Using Oracle GoldenGate replication

You replicate the data from the non-CDB to a PDB. When the PDB becomes current with the non-CDB, you switch over to the PDB.

See

Oracle Database Administrator’s Guide

to learn how to perform this technique.

ORACLE 12.2 Creation of a PDB by Cloning a PDB or a Non-CDB

To clone a PDB or non-CDB, use the

CREATE PLUGGABLE DATABASE

statement with the

FROM

clause.

In this technique, the source is either a non-CDB, or a PDB in a local or remote CDB. The target is the PDB copied from the source. The cloning operation copies the files associated with the source to a new location, and then assigns a new GUID to create the PDB.

This technique is useful for quickly creating PDBs for testing and development. For example, you might test a new or modified application on a cloned PDB before deploying the application in a production PDB.

If a PDB is in

, then the source PDB can be open in read/write mode during the operation, referred to as

.

Note:

If you clone a PDB from a remote CDB, then you must use a

database link

.

多租户架构文档的路线图

Category

Topic

Documentation

Concepts

Overview of CDBs and PDBs

Chapters in

Oracle Database Concepts

, and

Oracle Database Administrator’s Guide

Administration

Creating and configuring a CDB

Administration

Creating and configuring PDBs

Administration

Creating and removing application containers

Administration

Administering application containers

Monitoring

Viewing information about CDBs and PDBs

Backup and Recovery

Performing backup and recovery in a CDB

Security

Managing common users, roles, and privileges in a CDB

Miscellaneous

All other tasks relating to managing a CDB or PDB, including Oracle RAC, resource management, data transfer, and so on

Oracle Database Administrator’s Guide

is the primary task-oriented intermediate and advanced documentation for managing CDBs. This guide also contains See Also links to books that cover different CDB topics. For example,

Oracle Database Utilities

explains concepts and tasks specific to PDBs when using Oracle Data Pump.

oracle 12 去掉 cdb,Oracle 12c no-CDB转换为CDB相关推荐

  1. oracle 12 问题:需要 Oracle 客户端软件 8.1.7 或更高版本

    环境:win server 2008 r2 oracle 12C 错误提示: System.Web.Services.Protocols.SoapException: 服务器无法处理请求. ---&g ...

  2. oracle 12 sqlplus 使用,oracle 12.2 sqlplus history

    12.1开始使用sqlplus显示用户上次登录时间,12.2提供了一个记录历史sql的功能,类似于操作系统的history,根目录下的.history文件,不过功能比操作系统的history要强大,可 ...

  3. oracle 12 无法启动,Oracle 12.2监听无法启动解决方法

    在自己的虚拟机的做实验,突然发现使用PL/SQL Developer无法连接到数据库,报错ORA-12514,说是监听没有启动. 先介绍虚拟机一下环境:redhat7.2+GI 12.2.0.1+Or ...

  4. oracle 12 去掉 cdb,Oracle 12c 学习之启动关闭CDBPDB

    Oracle 12c 学习之启动关闭CDB&PDB 1.默认登陆到CDB $sqlplus / as sysdba SQL*Plus: Release 12.1.0.2.0 Productio ...

  5. oracle月份去掉0,Oracle取月份,不带前面的0

    今天碰到只要取月份和天数,如果月份前面有0要去掉0.比如说2010-01-08 ,需要的结果是1-8. 引出了一系列的sql语句 第一: 利用to_number的函数转换自动截0 select to_ ...

  6. oracle时间去掉日期,Oracle 时间和日期处理

    -- Oracle时间 SELECT SYSDATE FROM dual; -- 系统时间 SELECT SYSTIMESTAMP FROM dual; -- 当前系统时间戳 SELECT CURRE ...

  7. Oracle 12.2 新特性--PDB和CDB的字符集可以不一样

    Oracle 12.2 新特性--PDB和CDB的字符集可以不一样 在 12.1 中, PDB 的字符集与 root 容器必须保持一致,这样无形中造成了 PDB 迁移或者克隆的限制性.从 12.2 开 ...

  8. oracle pdb 表空间,Oracle 12c CDB 和 PDB 表空间管理和配置 说明

    注:本文谢绝转载. 1  管理CDB中的表空间 CDB表空间的管理和non-CDB 表空间的管理一样,CDB 也有一个实例,在安装的时候指定. --查看表空间: SQL> select inst ...

  9. Oracle 12c 创建与删除CDB、PDBs

    一. 计划多租户环境 准备足够的内存,磁盘空间:需要考虑的问题包括如下 16 个方面: 1.        PDB 数量 (max 253) 与空间计划 2.        后台进程数量( proce ...

最新文章

  1. 【深度学习】深入浅出CRF as RNN(以RNN形式做CRF后处理)
  2. MapReduce之单词计数
  3. git 与团队协同开发,避免冲掉别人代码的方法
  4. 华大单片机HC32L136J8TA读取DS18B20温度(源码+时钟配置)
  5. 只针对异常的情况才使用异常_如何以及何时使用异常
  6. linux重启后root密码错误,Linux技巧| 解决Debian Root密码忘记的问题
  7. mikechen详谈架构师成长之3大步骤
  8. 2019年7月第一周总结-RabbitMQ总结
  9. Golang Json文件解析为结构体工具-json2go
  10. c++右值引用以及使用
  11. 中国水性胶粘剂行业市场供需与战略研究报告
  12. mysql 事务不生效_@Transactional事务不生效的几种解决方案
  13. 基于simulink的PN码同步的性能仿真
  14. 无线路由器网络安全设置的九种方法
  15. Java____利用HSSF导出、导入excel文件
  16. Stealing Machine Learning Models via Prediction APIs研读报告
  17. 单反相机的传奇—佳能单反50年辉煌之路(连载十三)
  18. 钛资本研究院:企业服务市场资产的平衡计分卡
  19. 计算机扩大C盘分区容量,电脑c盘空间太小,用分区软件把c盘扩大10g随后开机就这样了,怎么搞...
  20. 券商API/程序化交易接口

热门文章

  1. 模板引擎不关心内容之——art-template,碰见的同步与fs.readFile异步以及函数回调问题的描述,针对fs的readfille读取文件时,返回不了异步函数返回值的解决方法
  2. (转)实用Word使用技巧大全
  3. 深信服AD应用交付介绍
  4. CC2530步进电机
  5. 华为一级产品线介绍(部分)
  6. 幅相曲线渐近线_开环幅相曲线绘制.ppt
  7. 微信小程序 | canvas为你的天气预报添加雨雪效果
  8. ZZULIOJ:1141: 进制转换
  9. python猫抓老鼠_利用python如何实现猫捉老鼠小游戏
  10. 勤哲EXCEL服务器财务进销存系统