Home > Database > Oracle > How to add tablespace files in oracle

How to add tablespace files in oracle

WBOY
Release: 2022-01-25 10:30:20
Original
13806 people have browsed it

In Oracle, you can use the alter command to add table space files. The syntax is "alter tablespace table space name add datafile file path size file size;".

How to add tablespace files in oracle

The operating environment of this tutorial: Windows 10 system, Oracle 11g version, Dell G3 computer.

How to add table space files in oracle

First query how many table spaces there are in the database

How to add tablespace files in oracle

Then use the sql statement in the following figure to Query the usage of the table space

How to add tablespace files in oracle

Then query the location where the data files of the corresponding table space are stored, as shown below

How to add tablespace files in oracle

After querying the storage location, add the data file to the table space through the statement in the figure below

How to add tablespace files in oracle

After the addition is completed, query the data file of the table space and you will find that the data file is The original one has now become two, which proves that the data file was added successfully

How to add tablespace files in oracle

And when the size of the table space was queried, it was found that the table space was increased from the original 500M The size has now been changed to 700M. The increased size is the size of the data file just added

How to add tablespace files in oracle

Recommended tutorial: "Oracle Video Tutorial"

The above is the detailed content of How to add tablespace files in oracle. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template