您好,欢迎来到保捱科技网。
搜索
您的当前位置:首页undo表空间太大解决办法

undo表空间太大解决办法

来源:保捱科技网


1、检查原来undo表空间情况:select file_name,bytes/1024/1024 as MB from dba_data_files where tablespace_name like

1、检查原来undo表空间情况:

select file_name,bytes/1024/1024 as MB from dba_data_files where tablespace_name like 'UNDO%';

2、创建新的undo表空间:

create undo tablespace undotbs2 datafile '/u01/app/Oracle/oradata/orcl/undotbs02.dbf' size 2g autoextend on next 10m maxsize 10g;

3、切换到新的undo表空间:

alter system set undo_tablespace=undotbs2 scope=both;

4、检查原来undo表空间是否还在使用:

select usn,xacts,rssize/1024/1024/1024,hwmsize/1024/1024/1024,shrinks from v$rollstat order by rssize;

如果没有PENDING OFFLINE字样表示已经不再使用。

5、删除原来undo表空间:

drop tablespace undotbs1 including contents and datafiles;

Copyright © 2019- baoaiwan.cn 版权所有 赣ICP备2024042794号-3

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务