Oracle12c独享和共享,oracle12c CDB中共同用户和本地用户区别

官方文档:http://docs.oracle.com/database/121/ADMQS/users_secure.htm#ADMQS12486

About Commonality in a CDB

In a multitenant container database (CDB), the basic principle of commonality is that a common phenomenon is the same in every existing and future container.

In a CDB, "common" means "common to all containers." In contrast, a

local phenomenon is restricted to exactly one existing container.

A corollary to the principle of commonality is that only a common user can alter the existence of common phenomena.

More precisely, only a common user connected to the root can create,

destroy, or modify CDB-wide attributes of a common user or role.

Common Users in a CDB

A common user is a database user that has the same identity in the

root and in every existing and future PDB. Every common user can connect

to and perform operations within the root, and within any PDB in which

it has privileges.

Every common user is either Oracle-supplied or user-created. Examples of Oracle-supplied common users are SYS and SYSTEM.

Common users have the following characteristics:

A common user can log in to any container (including CDB$ROOT) in which it has the CREATE SESSION privilege.

A common user need not have the same privileges in every container. For example, the c##dba user may have the privilege to create a session in the root and in one

PDB, but not to create a session in a different PDB. Because a common

user with the appropriate privileges can switch between containers, a

common user in the root can administer PDBs.

The name of every user-created common user must begin with the characters c## or C##. (Oracle-supplied common user names do not have this restriction.)

No local user name may begin with the characters c## or C##.

The names of common users must contain only ASCII or EBCDIC characters.

Every common user is uniquely named across all containers.

A common user resides in the root, but must be able to connect to every PDB with the same identity.

The schemas for a common user can differ in each container.

For example, if c##dba is a common user that has privileges on multiple containers, then the c##dba schema in each of these containers may contain different objects.

Local Users in a CDB

A local user is a user that is not common and that can operate only

within a single PDB. Local users have the following characteristics:

A local user is specific to a particular PDB and owns a schema in this PDB.

A local user cannot be created in the root.

A local user on one PDB cannot log in to another PDB or to the root.

The name of a local user cannot begin with the characters c## or C##.

The name of a local user must only be unique within its PDB.

The user name and the PDB in which that user schema is contained

determine a unique local user. For example, a local user and schema

named rep can exist on a PDB named hrpdb. A completely independent local user and schema named rep can exist on a PDB named salespdb.

Whether local users can access objects in a common schema depends on their user privileges.

For example, the c##dba common user may create a table in the c##dba schema on the hrpdb PDB. Unless c##dba grants the necessary privileges to the local hr user on this table, hr cannot access it.

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值