简体   繁体   中英

How to create new schemas under same user in oracle database 11g? Or can an user make only one schema?

I am trying to keep my school works under one user account. Currently I am making a new database user for every lab session. Surely this is not the right way to go?

I want to create a another schema, alongside my existing schema.

NB. I see a dropdown option for schema in the SQL workshop. So there might be a option to create multiple schema. But I can't find how to do it. The google links all say I have to create a new user.

In Oracle user is owner of its schema. User is an account that can access database. It depends on grants if it can access only own schema or more schemas.

When you create user you create schema. You can't create just a schema and assign it to existing user. However you can create new user with schema and grant other users access to newly created schema. In your case if you want new schema for each lab you need to create user for each lab and then grant privileges to your main user.

Here you can find some explanations: Difference between a user and a schema in Oracle?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM