Oracle User Management

Source: Internet
Author: User

Oracle Default database user

When a new database is created, Oracle automatically creates 3 database users for us.

1.sys User:

SYS user is a super User in Oracle. All data dictionaries and views in the database are stored in the SYS mode (what is the schema?). )

The data dictionary stores all the information that is used to manage database objects and is a very important system information in the Oracle database. SYS users are primarily used to maintain system information and manage instances.

        SYS users can only log on to the system in SYSDBA or Sysoper roles .

2.System Users:

The system user is the default sysadmin in Oracle, and it has DBA authority. This user has the built-in tables and views used by Oracle management tools. Typically through the system user tube

Users, permissions, and storage for Oracle databases. Creating a user table in system mode is not recommended.

System users cannot log on to systems with the SYSDBA or Dydoper role and can only log on by default .

3.Scott Users:

The Scott user is a model user of the Oracle database, which is typically created when the database is installed. The Scott user mode contains four demonstration tables, one of which is the EMP table. Using the Users Table

The spatial storage mode object.

Create user

CREATE user User identified by pwd
DEFAULT tablespace tablespace
Temporary tablespace Temp
[QUOTA UNLIMITED on qu]
[QUOTA 10M on qo]
[PASSWORD EXPIRE];

Explain:

User is the username.

The PWD is the user's password.

The tablespace is the user's default table space.

Temp is the user temp table space.

Qu and Qo are the number of table space bytes that the user can use.

The last line is to immediately set the password to an out-of-date state and the password must be changed before the user logs on.

Query users

SELECT * from Dba_users
WHERE username= 'name';

Explain:

Name is the user name you want to query.

View user's tablespace quotas

SELECT * from Dba_ts_quotas
WHERE username= 'name';

Explain:

Name is the user name.

change user quotas in table spaces

ALTER USER username QUOTA 20M on tablespace;

Explain:

Username is the user name.

Tablespace is the table space name.

Oracle User Management

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.