Oracle creates table spaces, user

Source: Internet
Author: User

CREATE TABLE Space

[SQL]View Plaincopy
    1. Create tablespace ' < database name > ' datafile ' < storage path > '
    2. Size 500M
    3. Default storage
    4. (Initial 200m
    5. Next 50m
    6. Minextents 20
    7. Maxextents 500)
    8. Online

Example:

[SQL]View Plaincopy
    1. Create tablespace itmyhome datafile ' D:\oracle\product\10.2.0\oradata\orcl\itmyhome.dbf '
    2. Size 500M
    3. Default storage
    4. (Initial 200m
    5. Next 50m
    6. Minextents 20
    7. Maxextents 500)
    8. Online

< database name > without quotation marks


Create user

[SQL]View Plaincopy
    1. --Create User (specify default tablespace and temporary tablespace Specify connection state)
    2. CREATE user < username > profile default identified by < password > default
    3. Tablespace < tablespace name > temporary tablespace TEMP account UNLOCK;


Authorized

[SQL]View Plaincopy
    1. Grant DBA to Testauth;
    2. Grant Connect,resource to Testauth;


Oracle Import and Export:

[SQL]View Plaincopy
      1. Exp Henanprovince/[email PROTECTED]/ORCL File=d:\province.dmp
      2. Imp henanprovince1/[email PROTECTED]/ORCL file=d:\province.dmp full=y

Oracle creates table spaces, user

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.