Oracle 12C -- 使用seed PDB建立新的pdb
$ sqlplus '/as sysdba'
SQL*Plus: Release 12.1.0.1.0 Production on Tue Jun 23 13:03:06 2015
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> show con_name;
CON_NAME
------------------------------
CDB$ROOT
SQL> create pluggable database yb1 admin user yb1 identified by yb1;
create pluggable database yb1 admin user yb1 identified by yb1
*
ERROR at line 1:
ORA-65016: FILE_NAME_CONVERT must be specified
------------------------------
CDB$ROOT
SQL> create pluggable database yb1 admin user yb1 identified by yb1;
create pluggable database yb1 admin user yb1 identified by yb1
*
ERROR at line 1:
ORA-65016: FILE_NAME_CONVERT must be specified
$ oerr ora 65016
65016, 00000, "FILE_NAME_CONVERT must be specified"
// *Cause: Data files, and possibly other files, needed to be copied as a
// part of creating a pluggable database. However, Oracle Managed
// Files (OMF) was not enabled, PDB_FILE_NAME_CONVERT was not defined,
// and there was a failure to specify the FILE_NAME_CONVERT clause.
// *Action: Enable OMF or define PDB_FILE_NAME_CONVERT system parameter before
// issuing CREATE PLUGGABLE DATABASE statement, or specify
// FILE_NAME_CONVERT clause as a part of the statement.
65016, 00000, "FILE_NAME_CONVERT must be specified"
// *Cause: Data files, and possibly other files, needed to be copied as a
// part of creating a pluggable database. However, Oracle Managed
// Files (OMF) was not enabled, PDB_FILE_NAME_CONVERT was not defined,
// and there was a failure to specify the FILE_NAME_CONVERT clause.
// *Action: Enable OMF or define PDB_FILE_NAME_CONVERT system parameter before
// issuing CREATE PLUGGABLE DATABASE statement, or specify
// FILE_NAME_CONVERT clause as a part of the statement.
如果未指定db_create_file_dest 引數則需要手動在CREATE PLUGGABLE DATABASE時指定FILE_NAME_CONVERT,例如:
SQL> create pluggable database yb1 admin user yb1 identified by yb1 file_name_convert=('/u12/app/oracle/oradata/ora12/pdbseed/','/u12/app/oracle/oradata/ora12/yb1/');
SQL> create pluggable database yb1 admin user yb1 identified by yb1 file_name_convert=('/u12/app/oracle/oradata/ora12/pdbseed/','/u12/app/oracle/oradata/ora12/yb1/');
也可以使用引數db_create_file_dest
SQL> alter system set db_create_file_dest='/u12/app/oracle/oradata';
SQL> alter system set db_create_file_dest='/u12/app/oracle/oradata';
建立成功後檢視
SQL> select con_id,name,open_mode,restricted from v$pdbs order by 1;
SQL> select con_id,name,open_mode,restricted from v$pdbs order by 1;
CON_ID NAME OPEN_MODE RES
---------- ------------------------------ ---------- ---
PDB$SEED READ ONLY NO
YB READ WRITE NO
YB1 MOUNTED
---------- ------------------------------ ---------- ---
PDB$SEED READ ONLY NO
YB READ WRITE NO
YB1 MOUNTED
SQL>
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/196700/viewspace-2134529/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Seed Database (pdb$seed) - Read Write OR Read Only Mode in Oracle Database 12cDatabaseOracle
- Oracle 12c Relocate PDBOracle
- oracle 12c使用dblink克隆pdbOracle
- Oracle 12c PDB淺析Oracle
- Oracle 12C RMAN transport tablespace from PDB of RAC CDB to remote PDBOracleREM
- oracle 12c PDB隨CDB啟動和連結PDB的方式Oracle
- Oracle 12c系列(二)|PDB的建立Oracle
- Oracle 12c PDB遷移(一)Oracle
- Oracle 12c系列(六)|Relocate a PDBOracle
- Oracle 12c系列(五)|PDB RefreshOracle
- oracle 12c rman備份pdbOracle
- Oracle 12c PDB淺析(二)Oracle
- Oracle 12c 使用Non-CDB來建立PDBOracle
- Oracle 12C 建立使用者連線pdbOracle
- Oracle 12c 多租戶 手工建立 pdb 與 手工刪除 pdbOracle
- Oracle 12c 多租戶在 CDB 中 Plug A PDB,Unplugging A PDBOracle
- ORACLE 12C pdb受限解決思路Oracle
- ORACLE 12C新特性——CDB與PDBOracle
- 【PDB】 為Oracle pdb新增服務(pdb add service)Oracle
- Oracle 12c PDB中碰到的DG問題Oracle
- 12c pdb基本操作
- Oracle 12C RMAN Duplicating Tablespaces Within a PDBOracle
- Oracle 12C RMAN Duplicating the PDB to remote CDBOracleREM
- Oracle 12c CDB&PDB 基本維護Oracle
- oracle 12c 多租戶 pdb 恢復(單個pdb資料檔案、非系統pdb表空間、整個pdb資料庫)Oracle資料庫
- 【PDB】Oracle跨PDB檢視查詢Oracle
- 【PDB】Oracle PDB資源管理參考Oracle
- 【PDB】pdb閃回,Oracle還原點Oracle
- 【PDB】Oracle pdb維護常用sql命令OracleSQL
- 使用12c PDB整合環境的總結
- Oracle 12c PDB的資料備份恢復Oracle
- 4.3.2.3 關於PDB$SEED資料檔案的屬性
- 當12C PDB遇上JDBCJDBC
- Oracle 12c RMAN Cross-Platform Transport of a Closed PDBOracleROSPlatform
- ORACLE 12C PDB 維護基礎介紹Oracle
- Oracle 12c 手工建立 和 刪除 PDB 示例Oracle
- 建立、克隆pdb---oracle 12c 學習(1)Oracle
- 【ASK_ORACLE】Oracle 12c之CDB與PDB的備份與恢復(一)什麼是CDB與PDB?Oracle