Schema and Owner of Table

心已入冬 提交于 2019-12-11 07:57:51

问题


Is the schema for a table and the owner for a table the same in oracle? If not what is the difference?


回答1:


As Tom says:

You should consider a schema to be the user account and collection of all objects therein as a schema for all intents and purposes.

A table created by a user - and therefore owned by that user, as the owner in all_tables for example - forms part of that user's schema. So yes, the owner and schema are the same.

Also see this earlier question, which references the same AskTom post, and also highlights this line from it:

for all intents and purposes just consider user = schema = user = schema = the same thing




回答2:


In Oracle, schema and owner of a table are technically identical.

If you talk about a schema you usually refer to all objects owned by a user, but when you say user it often means only someone who can connect to the database. But this is just language use - again, technically user is the same as schema.

People coming from other databases will often equate schema with database, since often all the tables are in one schema. This can make matters a bit muddled when talking about Oracle with SQL-Server people, for example.



来源:https://stackoverflow.com/questions/14355053/schema-and-owner-of-table

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!