Category Archives: Oracle10g
Extend or add datafile to tablespace for no oracle admins like me
Connected server i couldn’t find enterprise manager and PL/SQL Developer already open and after some search ;
First need to get tablespace name 🙂
select * from dba_data_files
If you know the name of your tablespace type like below
select * from dba_data_files t where t.TABLESPACE_NAME = ‘xxxxxx’
Need to be resize then continue like below , this process will increase the size 50G not additional 50G 🙂
ALTER DATABASE DATAFILE ‘D:\ORACLE\PRODUCT\10.2.0\ORADATA\XXYPURFOLDER\YOUR_DATA_FILE.ORA’ RESIZE 50G;
Here you should be careful because you can touch the block limit of related datafile and need to be create additional one like below
To add additional datafile to tablespace then use such command below
ALTER TABLESPACE USERS_EK ADD DATAFILE ‘D:\ORACLE\PRODUCT\10.2.0\ORADATA\XXYPURFOLDER\YOUR_DATA_FILE2.ORA’ SIZE 20G;
And you have to wait , i guess its writing 0 to all file and go !
VM