Oracle Road (1)-user management;

Source: Internet
Author: User

1 Oracle user

Oracle Installation will automatically generate sys and system users:

(1) A sys user is a super user with the highest permissions, sysdba role, and createdatabase permissions. The default password for this user is change_on_install.

(2) The system user is a management operator with a high level of permissions. Has the sysoper role and does not have the create database permission. The default password is Manager.

(3) generally, you can use the System user to log on to the database for database maintenance.

That is to say, the biggest difference between sys and system is whether they have the create database permission.

2. Create a user

create user empidentified by a123456;

Of course, you can specify the default and temporary tablespaces.

create uses empidentified by a123456default tablespace userstemporary tablespace temp;

(It seems that the newly created user in the user tablespace space has the DBA permission. At least on my local machine .)

If the tablespace is not specified, authorization is required to connect to the database.

Grant connect to EMP; grant create table to EMP; // create table permission grant select on student to EMP; // query table permission grant update on student to EMP; // update table permissions grant all on EMP to EMP; // grant edit/delete/query Permissions

Revoke permissions:

revoke select on student from emp;

If you want to grant permissions:

For object permissions:

grant select on student to emp with grant option

For system permissions:

grant select on student to emp with admin option

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.