• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Regading terminology Schema & User

 
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic