用oracle账号登陆ORACLE数据库服务器
方法一:
select tablespace_name, file_id, file_name,round(bytes/(1024*1024),0) total_space from dba_data_files order by tablespace_name;
alter database datafile '\oracle\oradata\undotab1.dbf' resize 4000m;
oracle% sqlplus /nolog sql> connect / as sysdba; sql> spool $ORACLE_BASE/admin/oss/scripts/recreate_undo.log; sql> CREATE SMALLFILE UNDO TABLESPACE "UNDOTBS2" DATAFILE '/db/data/undotbs02.dbf' SIZE 30M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE 32767M; sql> ALTER SYSTEM SET UNDO_TABLESPACE="UNDOTBS2"; sql> DROP TABLESPACE UNDOTBS1 INCLUDING CONTENTS AND DATAFILES; sql> CREATE BIGFILE UNDO TABLESPACE "UNDOTBS1" DATAFILE '/db/data/undotbs01.dbf' SIZE 35M REUSE AUTOEXTEND ON NEXT 5120K MAXSIZE 128G; sql> ALTER SYSTEM SET UNDO_TABLESPACE="UNDOTBS1"; sql> DROP TABLESPACE UNDOTBS2 INCLUDING CONTENTS AND DATAFILES; sql> exit oracle%
“no rows selected”
原文:http://blog.csdn.net/jerry_1126/article/details/37883491