Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes JDBC and the fly likes difference between instance and schema in dbms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "difference between instance and schema in dbms" Watch "difference between instance and schema in dbms" New topic

difference between instance and schema in dbms

Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
hi, please tell the what are instance and schema incase of dbms? please explain me with some e.g.
i googled for schema, it says no. of records, data type, attributes, etc... does it mean that schema is another name of table?

Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30130

No. A schema is a group of tables owned by the same user. For example I could have "vinod" schema and "jeanne" schemas in the same database instance. Each could have a "test" table because the schema gives a different namespace. Like a package does in Java.

A database instance is even higher level. Kind of like a separate database except it shares the same binaries. You can have the "vinod" schema in both database instances because they are separate.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
jQuery in Action, 2nd edition
subject: difference between instance and schema in dbms
Similar Threads
[hibernate-mapping] catalog attibute
What exactly is a data-tier
WAS 5.0 CMP 2.0 question
Regading terminology Schema & User
Namespace Query