zoukankan      html  css  js  c++  java
  • 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
    
    $ 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.
    
    如果未指定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/');
    
    也可以使用参数db_create_file_dest  
    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;
    
        CON_ID NAME                           OPEN_MODE  RES
    ---------- ------------------------------ ---------- ---
             2 PDB$SEED                       READ ONLY  NO
             3 YB                             READ WRITE NO
             4 YB1                            MOUNTED
    
    SQL> 
    复制代码
  • 相关阅读:
    2020.10.23 19级training 补题报告
    2020.10.17 天梯赛练习 补题报告
    2020.10.16 19级training 补题报告
    2020.10.9 19级training 补题报告
    2020.10.10 天梯赛练习 补题报告
    2020.10.3 天梯赛练习 补题报告
    2020.10.2 19级training 补题报告
    第十届山东省ACM省赛复现补题报告
    VVDI Key Tool Plus Adds VW Passat 2015 Key via OBD
    Xhorse VVDI Prog Software V5.0.3 Adds Many MCUs
  • 原文地址:https://www.cnblogs.com/wangchaoyuana/p/7532013.html
Copyright © 2011-2022 走看看