摘要: 1、创建新的表空间(最好设置成自动扩展) create undo tablespace undo_new datafile '/u01/oracle/oradata/yscsfhx/newundotbs01.dbf' size 5m; View Code 2、切换到新的Undo表空间上 alter 阅读全文
posted @ 2021-02-12 23:12 shiyunyier 阅读(204) 评论(0) 推荐(0)
摘要: 1、查询undo表空间信息 Select a.tablespace_name, to_char(a.bytes / 1024 / 1024 / 1024, '99,999.999') total_bytes, to_char(b.bytes / 1024 / 1024 / 1024, '99,999 阅读全文
posted @ 2021-02-12 22:39 shiyunyier 阅读(99) 评论(0) 推荐(0)
摘要: 问题:大批量数据插入,生成大量的undo日志。由于数据库性能问题,导致无法一次性提交成功。 解决思路: 通过loop 进行分批插入 1、创建中间表 -- Create table create table INSERT_STATS ( table_name VARCHAR2(20), data NU 阅读全文
posted @ 2021-02-12 21:26 shiyunyier 阅读(1148) 评论(0) 推荐(0)