Import Running longer time due to huge log switch
Import Running longer time due to huge log switch.
Issue:
For 56G schema it is taking 3 hours to import the data which is too slow. One of the main issue it seems log switching,
There’s huge number of archives are getting generated.
Even though “disable logging” parameter enabled in impdp parfile, it is generating huge archives.
There are 20 group in two threads of ORCLP1 database and size of each groups 250 MB.
Action taken:
Resized redo log group from 250MB to 4GB and 10 groups in each thread.
And resized redo log files on all the databases that are using frequently by the application Team.
Before Resizing the redo log files
SQL> select GROUP#, THREAD#,SEQUENCE#,BYTES/1024/1024/1024,BLOCKSIZE,MEMBERS,ARCHIVED,STATUS,FIRST_CHANGE#,FIRST_TIME,NEXT_CHANGE#,NEXT_TIME from v$log;
GROUP# THREAD# SEQUENCE# BYTES/1024/1024/1024 BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME GROUP# THREAD# SEQUENCE# BYTES/1024/1024/1024 BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME |
Redo logfiles of ORCLP1 database have been resized to 4G as given below
Drop inactive redo log groups and Add with 4GB.
SQL>ALTER DATABASE DROP LOGFILE GROUP 1; --Add that same group with new size , i.e) SQL>alter database add logfile thread 1 group 1 ('+DATA','+FRA') size 4G; SQL>alter database add logfile thread 2 group 1 ('+DATA','+FRA') size 4G;
|
After Resizing the redo log files , Verify with the below query
SQL> select GROUP#, THREAD#,SEQUENCE#,BYTES/1024/1024/1024,BLOCKSIZE,MEMBERS,ARCHIVED,STATUS,FIRST_CHANGE#,FIRST_TIME,NEXT_CHANGE#,NEXT_TIME from v$log; |
See also: