Four steps to create a tablespace in Oracle

The first step: create a
temporary tablespace create temporary tablespace user_temp 
tempfile 'E:\tablespace\user_temp.dbf' [path is optional]
size 50m 
autoextend on 
next 50m maxsize 20480m 
extent management local;

Part 2:
create tablespace create tablespace user_data 
logging 
datafile 'E:\tablespace\user_data.dbf' [optional path]
size 50m 
autoextend on 
next 50m maxsize 20480m 
extent management local;

Part 3: create user and password
create user username [just remember the name] identified by userpass [password Just remember it by yourself]
default tablespace user_data 
temporary tablespace user_temp;

Part 4: Authorize the user to
grant connect, resource, dba to username; [same as the username in the third step]

Simple explanation:

Temporary table space: The
main purpose is to perform sorting operations in the database [such as creating indexes, order by and group by, distinct,
union/intersect/minus/, sort-merge and join, analyze commands], managing indexes [such as creating indexes, IMP
Temporary calculation space is provided when performing operations such as data import], access views, etc., and the system will automatically clean up after the calculation is completed.

Table space: This space is used for data storage (tables, functions, stored procedures, etc.), so it is the actual physical storage area.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326695828&siteId=291194637