How to create a table space in PLSQL

1. We need to log in to the PLSQL administrator account first

Login name: sys
Password: Your own password when installing Oracle
Database: orcl
Connection: SYSDBA

2. Create a new sql window in the tool

Use plsql to create the table space and user of the Oracle database, and authorize the statement.

3. Create table space:

Description: datafile specifies the creation location and points to the default location of the Oracle database;

autoextend sets the capacity to automatic growth, 50M is the self-increasing size

create tablespace TEST
datafile 'E:/app/Administrator/oradata/orcl/TEST'
size 1M autoextend on next 50M maxsize unlimited;

4. Create a new user:

Note: identified by is the user login password;

default tablespace is the default tablespace;

profile is set to system default;

ACCOUNT UNLOCKUnlock user;

create user TEST
identified by "123"
default tablespace TEST
profile DEFAULT
ACCOUNT UNLOCK;

5. Grant limit:

Note: Grant DBA permissions to users and unlimited growth permissions to table spaces respectively.

grant dba to TEST;
grant unlimited tablespace to TEST;

Guess you like

Origin blog.csdn.net/qq_42003702/article/details/128483076