permaculture playing cards
The moose likes JDBC and Relational Databases 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
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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
author & internet detective

Joined: May 26, 2003
Posts: 32811

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: difference between instance and schema in dbms
It's not a secret anymore!