新建了一个表空间t101,在dba_tablespaces和dba_data_files都出现了,在dba_free_space却没有,这个很有可能是表空间满了。
插入数据会报错:ORA-01653: unable to extend table SYS.TEST by 128 in tablespace TBS1
后就在dba_free_space里查不到tbs1了
SQL> select tablespace_name,status from dba_tablespaces;
TABLESPACE_NAME STATUS
------------------------------------------------------------ ------------------
SYSTEM ONLINE
SYSAUX ONLINE
UNDOTBS1 ONLINE
TEMP ONLINE
USERS ONLINE
TEST1 ONLINE
TEST2 ONLINE
TEST3 ONLINE
TEST4 ONLINE
T101 ONLINE
10 rows selected.
SQL> select tablespace_name,status from dba_data_files;
TABLESPACE_NAME STATUS
------------------------------------------------------------ ------------------
USERS AVAILABLE
UNDOTBS1 AVAILABLE
SYSAUX AVAILABLE
SYSTEM AVAILABLE
TEST1 AVAILABLE
TEST2 AVAILABLE
TEST3 AVAILABLE
TEST4 AVAILABLE
T101 AVAILABLE
9 rows selected.
SQL> select distinct tablespace_name from dba_free_space;
TABLESPACE_NAME
------------------------------------------------------------
SYSAUX
UNDOTBS1
TEST3
USERS
SYSTEM
TEST2
TEST4
TEST1
8 rows selected
解决方法:增加表空间大小