Oracle's basic operations

Source: Internet
Author: User

1. Create user (requires DBA authority to log in)

Create user username identified by password;

After you create a user, you authorize it, and if you do not authorize it, you will not be able to log in to the database or do anything:

Grant Connection,resource to user;

Among them: Connection and resource are two roles built into Oracle, and the basic situation of two roles is as follows:

Connect role:--is the typical right to grant the end user, the most basic

Alter session--Modify sessions

Create CLUSTER--Build a cluster

Create DATABASE link

Create SEQUENCE-Create sequence

Create session--Set up sessions

Create synonym--create synonyms

Create view--build views

RESOURCE role:--is granted to developers

Create CLUSTER--Build a cluster

Create PROCEDURE--build process

Create SEQUENCE-Create sequence

CREATE table--Build tables

Create TRIGGER--Create a trigger

Create type--build types

2. You can see what permissions the user has (this action must be logged on with DBA authority)

Select Grantee,privilege from Dba_sys_privs

where grantee= ' RESOURCE ' order by privilege;

3. Revoke Permissions

Revoke permission name from user name

4. Change your password

Alter user username identified by new password;

5. Unlock and lock your account

--Lock Account

Alter user username account lock;

--Cancel Account

Alter user username account unlock;

Oracle's basic operations

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.