标签:image export schema process complete inactive res 在线 index
今天在用impdp导入时,Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX卡在建索引的过程一直不动,也不报错,重试了好几遍还是这样。
于是登录到oracle的导入日志查看是什么情况。查看alert日志发现:
statement in resumable session ‘SYSTEM.SYS_IMPORT_FULL_06.1‘ was suspended due to
ORA-01652: unable to extend temp segment by 1024 in tablespace USERS
USERS表空间不足导致的报错,随后加大表空间:
alter tablespace USERS add datafile ‘/data/oradata/eas/user06.dbf‘ size 31g
但是导到一半的时候又报错了:
Completed: alter tablespace USERS add datafile ‘/data/oradata/eas/user06.dbf‘ size 31g
Thu Apr 30 09:52:04 2020
statement in resumable session ‘SYSTEM.SYS_IMPORT_FULL_06.1‘ was resumed
Thu Apr 30 09:52:29 2020
Thread 1 cannot allocate new log, sequence 12255
Private strand flush not complete
Current log# 2 seq# 12254 mem# 0: /data/oradata/eas/redo02.log
Thread 1 advanced to log sequence 12255 (LGWR switch)
Current log# 3 seq# 12255 mem# 0: /data/oradata/eas/redo03.log
很明显这是日志组被写满了,需要增加日志组:
1、select group#,sequence#,bytes,members,status from v$log; 查看每组日志的状态
GROUP# SEQUENCE# BYTES MEMBERS STATUS
---------- ---------- ---------- ---------- ----------------
1 16946 52428800 1 INACTIVE ## 空闲的
2 16947 52428800 1 INACTIVE ## 空闲的
3 16948 52428800 1 CURRENT ##正在使用的
2、alter database add logfile group 4 (‘/opt/oradata/orclbj/redo04.log‘) size 200M; 增加1组日志组 视情况而定增加日志组的大小。
alter database add logfile group 5 (‘/opt/oradata/orclbj/redo05.log‘) size 200M;
alter database add logfile group 6 (‘/opt/oradata/orclbj/redo06.log‘) size 200M;
3、alter system switch logfile; 切换日志组
4、alter database drop logfile group 1; 删除日志组1 在线增加日志组的时候,删除日志组的时候只能删除 日志组状态为 INACTIVE 的日志组。
随后导入数据成功
oracle impdp时卡死Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
标签:image export schema process complete inactive res 在线 index
原文地址:https://www.cnblogs.com/love-vce/p/12807544.html