wood burning stoves 2.0*
The moose likes JDBC and the fly likes Regading terminology Schema & User Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Bookmark "Regading terminology Schema & User" Watch "Regading terminology Schema & User" New topic
Author

Regading terminology Schema & User

Vivek Alampally
Ranch Hand

Joined: Jul 10, 2008
Posts: 67

Hi
I wish to know the difference between schema & user. What I know is, if a user is created, the schema -where in all the database objects are stored - is automatically created. My actual question is can a user be able to create multiple schemas? I know he can be given respective privileges to access other user' s schemas.
I feel answer for this question varies with different DBMS's. So please mention the DBMS which you are referring to, along with SQL statements

Thanks
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30596
    
154

Vivek,
In Oracle, you need a user for each schema.

Since you asking about other databases, I'm going to move this from Oracle to JDBC. That way other databases can be discussed too.


[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
sowmy raj
Greenhorn

Joined: Jan 30, 2009
Posts: 4
Barring the case of enterprise users, where users are defined outside the database and then multiple users can be assigned to a particular schema, the relationship between users and schemas is 1:1. A schema is the set of objects owned by a database user. A single database user, by definition, cannot own objects in different schemas.
 
GeeCON Prague 2014
 
subject: Regading terminology Schema & User