Oracle create user password modification authorization command

Source: Internet
Author: User

Create user [username] identified by [Password] Create a new user

Grant permission 1. Permission 2... to grant the user the permission to create a user

Ex: grant create session to [username] at this time, you can only connect to the database

Grant connect, resource to [username]. The permission can meet the requirements.

Alter user [username] identified by [Password] Change User Password

Alter user [username] password expired prompt to Change Password Upon next login

Alter user [username] account lock user

Alter user [username] account unlock lock user

Grant select, delete on Scott. EMP to [username] give the user two permissions for the EMP table under Scott

Revoke select, delete on Scott. Emo from [username] revoke permissions

 

// Create a user and specify the tablespace

Create User Username identified by password

Default tablespace user_data

Temporary tablespace user_temp;

// Grant permissions to users

Grant connect, resource to username;

// Log on to the user later. Any database objects created belong to the user_temp and user_data tablespaces,

This eliminates the need to specify a tablespace for each created object.

Withdrawal:

Revoke permission... from user name;

Delete USER commands

Drop user user_name cascade;

 

 

During procedure execution, the test in PL/SQL tool is used for execution. The debugging method is executed because there are input parameters, but an error is reported:
"NOTE: Debugging requires the debug connect session system privilege ".

The reason is that the user has insufficient permissions. Use the following command to grant permissions:
Grant debug any procedure, debug connect session to Username
In fact, you only need to authorize the debug connect session. It has been tested.

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.