oracle 12c pdb与cdb

本文详细介绍了Oracle 12c中的CDB(Container Database)和PDB(Pluggable Database)的概念,包括Root、Seed和PDB的特性。此外,还阐述了如何在CDB中操作PDB,如连接、查看、切换、启动与关闭PDB,以及使用`alter pluggable database`命令进行维护。文章提供了实例展示如何在CDB中管理和操作PDB。
摘要由CSDN通过智能技术生成

一、概念

CDB的组件:

  Root:即CDB$ROOT,保存了元数据及通用用户。如PL/SQL包的源码就是元数据。通用用户是指每一个容器都知道的数据库用户。

  The root,namedCDB$ROOT, stores Oracle-supplied metadata andcommon users. An example ofmetadata is the source code for Oracle-suppliedPL/SQL packages. A common useris a database user known in every Container. ACDB has exactly one root.

  Seed:即PDB$SEED,它是创建PDB的模板,我们不能添加或修改Seed中的对象,并且一个CDB只能有一个Seed。

  The seed, namedPDB$SEED, is a templatethat you can use to create new PDBs. You cannot add objectsto or modifyobjects in the seed. A CDB has exactly one seed.

  PDBs:一个PDB对于用户或应用程序来说就像一个普通的数据库。

  A PDB appears tousers and applications asif it were a non-CDB.

  common user与local user

  一个CDB支持多个common user。Commonuser 在root与PDB中具有相同的标识,并且可以登录root与任何其拥有权限的PDB。Commonuser能够执行的操作取决于对common user的授权。另外,一些管理操作,如创建PDB,拔出PDB等需要由commonuser来执行。一个local user只存在于一个PDB中。

  A CDB supportscommon users. A common useris a user that has the same identity in the root andin every existing andfuture PDB. A common user can log in to the root and anyPDB in which it hasprivileges. The operations that a common user can performdepend on theprivileges granted to the common user. Some administrative tasks,such ascreating a PDB or unplugging a PDB, must be performed by a common user.A CDBalso supports local users. A local user is a user that exists in exactlyone PDB

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值