Tuesday , January 21 2025

Add Data File to Tablespace

In today’s article, we will learn how to Add Data File to Tablespace with queries step by step.

1. Columns and data types are learned from dba_data_files.

You can learn whether dba_data_files is a view or a table as follows.

In TOAD, we write dba_data_files on the editor screen and hold down Ctrl while moving the cursor over dba_data_files.

It becomes active as a link. When we click, its details open.

It can also be found in sqlplus as follows.

2. The following query is run to see where the tablespaces to be added are located.

3. We find out whether there is space in the section we will add or not.

4. We use the query below to see how much space is allocated for the tablespace and the maximum size that the tablespace can reach.

5. After learning all this, the data file is added to the tablespace with the following query.

Loading

About Onur ARDAHANLI

Leave a Reply

Your email address will not be published. Required fields are marked *