Create a tablespace in Oracle

Source: Internet
Author: User

1--Create temporary tablespace
2 Create TemporaryTablespace data_temp
3Tempfile'D: \ Oracle \ oraudata \ data_temp.dbf'
4Size 2000 m
5AutoextendOn
6 Next500 m
7Extent management local;
8
9 --Create a data package Space
10 CreateTablespace data_data
11Logging
12Datafile'D: \ oracle \ oraudata \ data_data.dbf'
13Size 2000 m
14AutoextendOn
15 Next500 m
16Extent management local;
17
18
19 --Create a user and specify a tablespace
20
21 Create UserDbadmin identifiedByDbpass
22 DefaultTablespace data_data
23 TemporaryTablespace data_temp;
24
25 --Delete USER commands
26 --Drop user dbadmin cascade
27
28 --Grant permissions to users
29 GrantConnect, resourceToDbadmin
30
31 --Withdrawal
32 --Revoke connect, resource from dbadmin

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.