Oracle Creates table space users

Source: Internet
Author: User

1. Create normal table spaces and users

Create a temporary table space
Create temporary tablespace oa_temp
Tempfile ' D:\app\Administrator\oradata\orcldjoa_temp.dbf '
Size 32m
Autoextend on
Next 32m MaxSize 20480m
Extent management Local;

Create a data table space
Create Tablespace OA
Logging
DataFile ' D:\app\Administrator\oradata\orcldjoa.dbf '
Size 32m
Autoextend on
Next 32m MaxSize 20480m
Extent management Local;

Create user
Create user OA identified by OA
Default Tablespace OA
Temporary tablespace oa_temp;

Add permissions to a user
GRANT Create User,drop user,alter USER, create any VIEW,
DROP any view,exp_full_database,imp_full_database,
Dba,connect,resource,create SESSION to OA

Drop user OA cascade;
Drop tablespace OA including contents and datafiles;
Drop tablespace oa_temp including contents and datafiles;

2. Create large table spaces and users


Create a temporary table space
Create Bigfile temporary tablespace sxybyj_temp
Tempfile ' E:\app\Administrator\oradata\orcl\sxybyj_temp.dbf '
Size 128m
Autoextend on
Extent Management Local
Uniform size 128k

Create a data table space
Create Bigfile tablespace Sxybyj
DataFile ' E:\app\Administrator\oradata\orcl\sxybyj.dbf '
Size 128m
Autoextend on
Extent Management Local
Uniform size 128k

Create user
Create user Sxybyj identified by Sxybyj
Default Tablespace Sxybyj
Temporary tablespace sxybyj_temp;

Add permissions to a user
GRANT Create User,drop user,alter USER, create any VIEW,
DROP any view,exp_full_database,imp_full_database,
Dba,connect,resource,create SESSION to Sxybyj

Drop user Sxybyj cascade;
Drop user test1 cascade;
Drop tablespace sxybyj including contents and datafiles;
Drop tablespace sxybyj_temp including contents and datafiles;

Oracle Creates table space users

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.