1. First, check the name and file of the tablespace.
select tablespace_name, file_id, file_name, round(bytes/(1024*1024),0) total_space from dba_data_files order by tablespace_name; |
2. Add data files
alter tablespace users add datafile '/u01/oracle/oradata/umail/users02.dbf' size 4000M autoextend off; alter database datafile '/u01/oracle/oradata/umail/user01.dbf' autoextend off;
|
3. view the tablespace information after setting
SELECT A.TABLESPACE_NAME,A.BYTES TOTAL,B.BYTES USED, C.BYTES FREE, (B.BYTES*100)/A.BYTES "% USED",(C.BYTES*100)/A.BYTES "% FREE" FROM SYS.SM$TS_AVAIL A,SYS.SM$TS_USED B,SYS.SM$TS_FREE C WHERE A.TABLESPACE_NAME=B.TABLESPACE_NAME AND A.TABLESPACE_NAME=C.TABLESPACE_NAME; |
Complete.
Related Articles]
- Comprehensive Understanding of Oracle Database character sets
- Types and Research of Oracle Database locks
- Tips for using the decode () function in Oracle