Oracle 12c 命令行创建PDB

发布时间:2020-06-29 15:41:28 作者:roidba
来源:网络 阅读:3005

1、登陆cdb创建pdb

sqlplus / as sysdba

create pluggable database pdb4
admin user pdb4 identified by pdb4
file_name_convert=('/u01/app/oracle/oradata/cdb/pdbseed','/u01/app/oracle/oradata/cdb/pdb4');

2、具体步骤

<roidb01:cdb:/home/oracle>$sqlplus / as sysdba

SQL*Plus: Release 12.1.0.2.0 Production on Sat Jan 20 12:07:32 2018

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> create pluggable database pdb4
  2  admin user pdb4 identified by pdb4
  3  file_name_convert=('/u01/app/oracle/oradata/cdb/pdbseed','/u01/app/oracle/oradata/cdb/pdb4');

Pluggable database created.

SQL> show pdbs

    CON_ID CON_NAME                       OPEN MODE  RESTRICTED
---------- ------------------------------ ---------- ----------
         2 PDB$SEED                       READ ONLY  NO
         3 PDB1                           READ WRITE NO
         4 PDB2                           READ WRITE NO
         5 PDB3                           READ WRITE NO
         6 PDB4                           MOUNTED
SQL> alter pluggable database all open;

Pluggable database altered.

<roidb01:cdb:/u01/app/oracle/oradata/cdb/pdb3>$sqlplus pdb4/pdb4@192.168.1.243:1521/pdb4

SQL*Plus: Release 12.1.0.2.0 Production on Sat Jan 20 12:11:50 2018

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
------------------------------
PDB4
SQL> 
推荐阅读:
  1. oracle cdb、pdb参考
  2. 怎么应用Oracle 12c插拔数据库

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

create pluggable %d

上一篇:服务器证书无效网站显示异常的解决方法

下一篇:小程序进行认证的方法

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》