Detailed Oracle to establish user and user management

Source: Internet
Author: User

# Legal Oracle Identification symbol

1, cannot be reserved keyword

2, must use 1 to 30 characters. The name of the database is up to 8 characters.

3, must start with the letter character in the database character set

4. Can only contain alphabetic characters in the database character set, and the following characters: #, $, _, the other database links can contain the @ symbol and '. ' Period

5, cannot contain quotation marks

# Create a user

Create user Angeos identified by Angeos;

Established the User: Angeos, the password is: Angeos

# Authorization to the user

Grant Connect,resource to Angeos;

User Angeos granted permission to connect to the database and access resources

# Authorization to the user

Grant create SESSION,DBA to Angeos;

The CREATE session is a system privilege that provides users with the ability to connect to a database.

The DBA is a role with more than 120 system privileges, so it allows users to do almost anything in the database.

# Change the user's password

Alter user Angeos identified by Oracle, changing the password of the user Angeos to: Oracle.

# Lock account and Unlock

Alter user OE account unlock;

Then log on to the database server with the user OE, and the password is OE. Note: After the user unlocks, restart the service.

# Modify the table space settings

By default, it uses tablespace system and TEMP (for temporary data storage).

This method is not recommended. So we need to change the table space.

Connecting to a database server through a system user

conn sys/sysadmin@hostname_services as sysdba;

Then look at the table space

select tablespace_name,contents from dba_tablespaces
order by tablespace_name;

Using the user table space instead of the system table space

alter user angeos default tablespace users
temporary tablespace temp;

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.