Oracle creates table spaces, users, and permissions configuration

Source: Internet
Author: User

Oracle database and MySQL, SQL Server, it is in the same database can be defined multiple table space, the different table spaces are independent of each other, each user has a default table space, so basically different user operation of the data table can be different, Of course, if you want the same, you can set the table space when you define the table space.

To create a table space:

Create tablespace (your table space name is like PFM) datafile ' D:\oracle\product\10.2.0\oradata\orcl\pfm.dbf ' size 100Mautoextend on next 32M maxsize 200M extent management local;
To create a temporary tablespace:

Create temporary tablespace (your tablespace name is like PFM) tempfile ' D:\oracle\product\10.2.0\oradata\orcl\pfm.dbf ' size 100Mautoextend on next 32M maxsize 200M extent management local;

Create a new user and define a default tablespace:

Create user (the username you want to define) identified by (your password) default tablespace (the tablespace you want to define) temporary tablespace (your temporary tablespace);

To configure user permissions:
Grant CONNECT,RESOURCE,DBA to (user name);

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Oracle creates table spaces, users, and permissions configuration

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.