oracle extended tablespace

The program cannot run because the disk space where the Oracle tablespace is located is insufficient. The project manager has formulated a plan. The original tablespace and data are stored on the D disk. Now the data in the tablespace should be associated with the large F disk. The
code is as follows

1. ALTER DATABASE DATAFILE 'D:\ORACLE\ORADATA\ORACLGBK\A2DM1.DBF ' AUTOEXTEND ON MAXSIZE 21G

2. ALTER TABLESPACE "A2DM" ADD DATAFILE 'F:\ORACLE\ORADATA\ORACLGBK\A2DM01.DBF' SIZE 500M AUTOEXTEND ON NEXT 10M MAXSIZE 4096M

3. ALTER TABLESPACE "A2DM" ADD DATAFILE 'F:\ORACLE \ORADATA\ORACLGBK\A2DM02.DBF' SIZE 500M AUTOEXTEND ON NEXT 10M MAXSIZE 4096M

The meaning of the above statement is:
1. The first sentence of sql means to limit the size of the A2DM1.DBF data file on the D disk of the A2DM tablespace. Let it expand infinitely.
2. The meaning of sentence 2.3 is to add a file
   SIZE 500M to the table space on the F disk -- it is the original size of the data file
   AUTOEXTEND ON NEXT 10M When it is not enough, it will automatically expand the size
   MAXSIZE 4096M The maximum occupied space of the data file is 4G

The data information of the final table space is as follows
1 D:\ORACLE\ORADATA\ORACLGBK\A2DM1.
2 D:\ORACLE\ORADATA\ORACLGBK\A2DM2.DBF 20 A2DM 34359721984
3 D:\ORACLE\ORADATA\ORACLGBK\A2DM3.DBF 21 A2DM 34359721984
4 F:\ORACLE\ORADATA\ORACLGBK\A2DM01.DBF 25 A2DM
5242880 :\ORACLE\ORADATA\ORACLGBK\A2DM02.DBF 26 A2DM 524288000

After storing data in the database, it will be stored in the F disk.
Thanks to my project manager, I learned a trick

Guess you like

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