Create a tablespace in Oracle and create a user

Source: Internet
Author: User
Create a tablespace in Oracle and create a user

//Create temporary tablespace

Create TemporaryTablespace test_temp
Tempfile'E: \ oracle \ product \ 10.2.0 \ oradata \ testserver \ test_temp01.dbf'
Size 32 m
AutoextendOn
Next32 m maxsize 2048 m
Extent management local;

// Create a data table space
Create tablespace test_data
logging
datafile ' E: \ oracle \ product \ 10.2.0 \ oradata \ testserver \ test_data01.dbf '
size 32 m
autoextend On
next 32 m maxsize 2048 m
extent management local;

//Create a user and specify a tablespace
Create UserTestserver_user identifiedByTestserver_user
DefaultTablespace test_data
TemporaryTablespace test_temp;

//Grant permissions to users

GrantConnect, ResourceToTestserver_user;

//Log on with this user. Any database objects created belong to the test_temp and test_data tablespaces. Therefore, you do not need to specify a tablespace for each object created.

 

From: http://www.cnblogs.com/wangdetian168/archive/2008/06/16/1223370.html

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.