Oracle Datafile Resize

Sometimes we get a message from DB13 “Check DB” operaion like ;

BR0970W Database administration alert – level: WARNING, type:
TABLESPACE_FULL, object: PSAPSR3DB, value: 95.46% (> 95%)

Oracle Datafile Resize

This message means that , tablespace PSAPSR3DB‘s usage size over the systems threshold value of %95

Let’s check the datafiles size for tablespace PSAPSR3DB

SQL >select FILE_ID,BYTES/1024/1024,FILE_NAME from dba_data_files
where TABLESPACE_NAME =’PSAPSR3DB’;

Oracle Datafile Resize 01

Make a decision for “which datafile can we resize?”,

Also don’t forget to check physical storage location for this operation.

For this example i would like to choose datafile number of 53 for RESIZE operation which is under drive “I”

Oracle Datafile Resize 02

I would like to resize this datafile to 25600MB with following SQL command ;

SQL>alter database datafile ‘I:\ORACLE\SID\SAPDATA5\SR3DB_7\SR3DB.DATA7′ resize 25600M;

Now we can check the file size of the datafile

SQL>select FILE_ID,BYTES/1024/1024,FILE_NAME from dba_data_files where TABLESPACE_NAME =’PSAPSR3DB’ and FILE_ID = 53;

Oracle Datafile Resize 03

 

 

 

 

Leave a Reply


two × 1 =

Blogroll