Oracle中用戶(User)和模式(Schema)的概念


數據庫理論中數據庫用戶和數據庫模式並沒有必定的聯系。具體的數據庫模式解釋能夠在這里找到:

http://stackoverflow.com/questions/2674222/what-is-purpose-of-database-schema

A database schema is a way to logically group objects such as tables, views, stored procedures etc. Think of a schema as a container of objects.You can assign a user login permissions to a single schema so that the user can only access the objects they are authorized to access.

Schemas can be created and altered in a database, and users can be granted access to a schema. A schema can be owned by any user, and schema ownership istransferable.


也就是說數據庫模式能夠創建改動,而且能夠給不同的用戶訪問也能夠賦予不同的用戶。


而Oracle文檔《Concepts》中的解釋是這種:


A schemais a collection of logical structures of data, or schema objects. A schema is

owned by a database user and has the same name as that user. Each user owns a single
schema. 


盡管Oracle中模式也是數據對象的集合,可是在這里一個用戶相應了一個模式,一個模式僅僅能被一個數據庫用戶所擁有。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM