Oracle 12c no-CDB轉換為CDB
如果把資料庫從11g 升級到12c,或者在12c中建立的,就是NON CDB,那麼這樣的資料庫就是普通的單例項,
和12c 之前的資料庫沒有區別,但12c 的特點就是CDB 管理,所以既然上12c,還是要切換成CDB 進行管理。
https://blog.csdn.net/shiyu1157758655/article/details/78592265
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 cYou 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 theCREATE 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 inCDB$ROOT
, log in to the PDB and run thenoncdb_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 |
Managing a CDB |
|
Administration |
Creating and configuring PDBs |
|
Administration |
Managing PDBs |
|
Administration |
Creating and removing application containers |
|
Administration |
Administering application containers |
|
Performance |
Troubleshooting PDBs |
|
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. |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31397003/viewspace-2638879/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle 12c nocdb轉換成cdbOracle
- Oracle 12c系列(七) | Non-CDB轉換為PDBOracle
- Oracle 12c 手動建立CDB和非CDBOracle
- Oracle 12c CDB&PDBs管理Oracle
- oracle 12c non-cdb升級成cdb模式Oracle模式
- 【CDB】怎樣轉換non-CDB to CDB
- Oracle 12c 建立與刪除CDB、PDBsOracle
- Oracle 12C RAC CDB資料庫部署Oracle資料庫
- 【資料庫升級】Oracle指令碼升級12c CDB to 19c CDB資料庫Oracle指令碼
- Oracle 12c 檢視CDB&PDBs資訊(SQL*PLUS)OracleSQL
- 【ASK_ORACLE】Oracle 12c之CDB與PDB的備份與恢復(一)什麼是CDB與PDB?Oracle
- Oracle 12C 中CDB和PDB的引數檔案管理Oracle
- 【BAK_ORACLE】Oracle 12c之CDB與PDB的備份與恢復(三)CDB與PDB的備份方式Oracle
- oracle 12c中CDB和PDB的備份還原實驗Oracle
- oracle 12c PDB隨CDB啟動和連結PDB的方式Oracle
- 【12c cdb pdb】實驗
- Oracle 12c 多租戶專題|CDB後設資料內幕Oracle
- 【CDB】Oracle CDB/PDB常用管理命令Oracle
- Oracle轉換PostgresOracle
- Oracle 查詢轉換Oracle
- oracle 12c 針對cdb的差異0備與對pdb進行恢復Oracle
- Oracle實驗(02):轉換 & 轉譯Oracle
- Oracle 12C新特性-線上把非分割槽錶轉為分割槽表Oracle
- ORACLE 12C DATAGUARD環境搭建和主從切換Oracle
- 12C關於CDB、PDB的官方解釋
- unix時間轉換為datetimedatetime轉換為unixtime
- 【RECO_ORACLE】Oracle 12c之CDB與PDB的備份與恢復(四)PDB的幾種恢復方式Oracle
- 2.7 Overview of Oracle Resource Manager in a CDBViewOracle
- Oracle 12CR2查詢轉換之星型轉換Oracle
- Oracle OCP(05):轉換函式Oracle函式
- Oracle和JDE日曆轉換Oracle
- Oracle 查詢轉換-01 or expansionOracle
- oracle19c安裝_cdbOracle
- 12C grid CDB異機恢復+歸檔(DDL操作)
- 【ASK_ORACLE】Oracle 12c之CDB與PDB的備份與恢復(二)備份恢復之前你需要知道的Oracle
- 12C把non-CDB的單庫匯入到CDB裡面當成PDB的方法
- Oracle 12c Automatic ReoptimizationOracle
- Oracle 12C安裝Oracle