Oracle Development: Create a user and assign table spaces and assign permissions

Source: Internet
Author: User

--Create a user and assign a tablespace and assign permissions--Log in sysdba [email protected]:~> sqlplus/as sysdbasql*plus:release 12.1.0.2.0 Production on Mon Mar 7 18:48:59 2016Copyright (c) 1982, Oracle.  All rights reserved. Connected to:oracle Database 12c Enterprise Edition Release 12.1.0.2.0-64bit productionwith The partitioning, OLAP, Adva nced Analytics and Real application testing optionssql>--Create a user ABC with a password of creditderivativecreate user ABC identified by CR editderivative--set Tablespace: Let users use the default tablespace usersdefault tablespace users--set tablespaces: Let users use temporary tablespace temptemporary tablespace temp--Default permissions: The initial definition of the resource does not limit the profile default--unlock: The default setting for Oracle is when the password is logged on the wrong number of times, the system automatically lock the user, at this time can use this command to unlock the account unlock;-- Assigning developer Rights Grant RESOURCE to abc;--assigns the typical rights of the end user, the most basic grant CONNECT to abc;--assigns the permission to create the view grant creation view to abc;-- Set the user's authorized role to the default role alter user ABC default role all;--The user can freely build tables in this tablespace grant UNLIMITED tablespace to abc;-- Assigning permissions to create materialized views grant create materialized view to ABC;

Oracle Development: Create a user and assign table spaces and assign permissions

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.