Targeted Audience: Beginners
Till today I was of the illusion that USER and SCHEMA are both equal. But Oracle Guru Andrew Clarke describes the difference between both USER and SCHEMA in his blog. Thanks Clarke for your blog.
So understanding this difference we will define what an Oracle Schema is:
A Schema represents set of objects owned by the user of the same name. For example in an organization there are 100 employees, each of these employees should have a separate space where they manage their objects. It is synonymous with the concept of an employee been allocated a new cabin where he can keep or organize his belongings.
The same way in Oracle a user must be created for each database user. An organization can keep its own rules in naming the users but it is better to use a naming notation always in such cases. If a database user logs in to his space (using connect) he can create objects which becomes the schema.
What a schema can contain?
Just like a cabin where the employee sits; it can contain a PC, a deskphone, a cabinet for filing papers etc., a schema can contain various objects like tables, views, indexes etc. If you want to create any object it must be created inside any of available schemas.
How do I access my schema?
Accessing of a schema is guarded by a password which the DBA assigns at first. You can choose to change the password.
Hi sir,
ReplyDeleteThe content is really helpful, now i have got a clear understanding of database schema.
Very good and simple explanation.
ReplyDeleteVarsha
thanx for the post....it is really help full...
ReplyDeleteVery good analogy schema = cabin
ReplyDeleteThanks all... for your comments...
ReplyDeleteGood Explanation...Thanks
ReplyDeleteBrilliant , fantastic...
ReplyDeletethanks !
ReplyDeleteThank You really! Tat was helpful!
ReplyDeletereally clear and helpful
ReplyDeleteBrilliantly explained. This is the best content I have found that gave me a complete overview of this important concept in Oracle. Now I have completely understood the meaning of Oracle schema and what it represents. Thanks for sharing.
ReplyDeleteits really helpful to me to understand what exactly schema is.............
ReplyDeleteThanks,
jyoti
thanks so much, this cabin thing will help me remember the definition of schema.
ReplyDeleteSimple way of explaining things and most of the things cleared. Thank you very Much.
ReplyDeleteRegards
Sanyog Tripathi
Thanks a lot for a very clear concept of Schema.
ReplyDeleteToshi
Really good explanation.. Tanks!
ReplyDeleteThis comment has been removed by the author.
ReplyDeletevery well explained... Thanks for posting
ReplyDeleteit was extremely helpul..thank you
ReplyDeletethanx its nice....example is so helpfull.
ReplyDeleteGood and helpful explanation. Thanks.
ReplyDeleteGood Explanation with relevant example. Thank you for sharing.
ReplyDeletereally helpful
ReplyDeleteNice Explanation...Can you give me some statement or code how to manage table and indexes etc.. using schema
ReplyDeleteSimply understood.Thank you for your explanations
ReplyDeletesimple n perfect
ReplyDelete