oracle12c的CDB和PDB初探
[oracle@oracle12cs ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Wed Jun 22 15:49:41 2016
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> show con_name;
CON_NAME
------------------------------
CDB$ROOT
SQL> alter session set container=pdbndc; --進入PDB
Session altered.
SQL> show con_name;
CON_NAME
------------------------------
PDBNDC
[oracle@oracle12cs ~]$ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Wed Jun 22 15:53:44 2016
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
with the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> select name,cdb from v$database;
NAME CDB
--------- ---
NDC YES
SQL> select pdb_id,pdb_name,dbid,status,create_scn from dba_pdbs;
PDB_ID PDB_NAME DBID STATUS CREATION_SCN
---------- -------------------- ---------- --------- ------------
3 PDBNDC 4056045727 NORMAL 1740000
2 PDB$SEED 3164418748 NORMAL 1594403
4 PDB2 2424970819 NEW 1746754
PDB_ID PDB_NAME DBID STATUS CREATION_SCN
---------- -------------------- ---------- --------- ------------
3 PDBNDC 4056045727 NORMAL 1740000
2 PDB$SEED 3164418748 NORMAL 1594403
--1直接建立
CREATE PLUGGABLE DATABASE pdb2
ADMIN USER pdb2_admin IDENTIFIED BY oracle
STORAGE (MAXSIZE 2G MAX_SHARED_TEMP_SIZE 100M)
DEFAULT TABLESPACE tbs_pdb2 DATAFILE '/u01/app/oracle/oradata/NDC/datafile/pdb2_001.dbf' SIZE 25M AUTOEXTEND ON;
--2 按照模板建立PDB
SQL> alter pluggable database pdbndc close;
alter pluggable database pdbndc close
*
ERROR at line 1:
ORA-65020: pluggable database PDBNDC already closed
SQL> alter pluggable database pdbndc open read only;
Pluggable database altered.
SQL> create pluggable database pdb2
2 from pdbndc
3 file_name_convert=('/u01/app/oracle/oradata/NDC/35D8EADBC36F2F56E0539B00A8C098CD/datafile/','/u01/app/oracle/oradata/NDC/datafile/pdb2');
SQL> alter pluggable database pdb2 open;
Pluggable database altered.
SQL> alter pluggable database pdb2 close;
Pluggable database altered.
SQL> alter pluggable database pdb2 open;
Pluggable database altered.
SQL> alter pluggable database all close;
Pluggable database altered.
SQL> alter pluggable database all open;
Pluggable database altered.
SQL> alter pluggable database pdb2 close immediate;
Pluggable database altered.
SQL> alter pluggable database all open;
Pluggable database altered.
SQL> select name,open_mode from v$pdbs;
NAME OPEN_MODE
------------------------------ ----------
PDB$SEED READ ONLY
PDBNDC READ WRITE
PDB2 READ WRITE
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/543979/viewspace-2120722/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 3.1.2 CDB和PDB的職責分離
- 【CDB】Oracle CDB/PDB常用管理命令Oracle
- oracle 12c PDB隨CDB啟動和連結PDB的方式Oracle
- 2.6.2 Overview of Flashback PDB in a CDBView
- 1.3.2.2.2 通過Non-CDB(非CDB模式)建立PDB模式
- 4.3.2.2 關於CDB Root和PDB$SEED檔案的名稱和位置
- 【12c cdb pdb】實驗
- 1.3.2.2.2. 通過Non-CDB(非CDB模式)建立PDB模式
- 12C關於CDB、PDB建立AWR的方法和總結
- Oracle 12C 中CDB和PDB的引數檔案管理Oracle
- oracle 19c CDB vs pdb 建立Oracle
- 12C關於CDB、PDB引數的區別和總結
- oracle 12c中CDB和PDB的備份還原實驗Oracle
- 【BAK_ORACLE】Oracle 12c之CDB與PDB的備份與恢復(三)CDB與PDB的備份方式Oracle
- 【ASK_ORACLE】Oracle 12c之CDB與PDB的備份與恢復(一)什麼是CDB與PDB?Oracle
- 12C關於CDB、PDB的官方解釋
- 【CDB】怎樣修改PDB的記憶體引數記憶體
- 多租戶:在Oracle12.2中 從Non-CDB遷移到PDB,從PDB遷移另一個CDB中Oracle
- Oracle12c 針對單個pdb的全備與恢復Oracle
- CDB和PDB關於使用者建立和使用者許可權區別
- 12C把non-CDB的單庫匯入到CDB裡面當成PDB的方法
- kettl連線oracle12c 可插拔資料庫pdbOracle資料庫
- 12C多租戶關於CDB、PDB的常用SQL語句SQL
- oracle12c之 控制pdb中sga 與 pga 記憶體使用Oracle記憶體
- ORA-65294: PDB's compatible parameter value (12.2.0.1.0) is higher than CDB's
- Oracle 12c系列(七) | Non-CDB轉換為PDBOracle
- 12cr2 pdb 跟隨cdb 自動啟動配置
- 【RECO_ORACLE】Oracle 12c之CDB與PDB的備份與恢復(四)PDB的幾種恢復方式Oracle
- 12C關於CDB、PDB 臨時temp表空間的總結
- 12C關於CDB、PDB 回滾undo表空間的總結
- 12C關於CDB、PDB 日誌檔案redo log的總結
- Oracle12C ORA-01516報錯可能是沒有切換到PDBOracle
- oracle 12c 針對cdb的差異0備與對pdb進行恢復Oracle
- Oracle 12c 手動建立CDB和非CDBOracle
- 4 建立和配置CDB
- 【PDB】DBA常用命令之Oracle12.2+ cdb資料庫統一檢查Oracle資料庫
- 【CDB】怎樣轉換non-CDB to CDB
- 2.6.1 CDB中備份和恢復的概述
- 2.1.1 CDB root 和系統容器