{"id":1594,"date":"2016-10-12T11:54:46","date_gmt":"2016-10-12T08:54:46","guid":{"rendered":"http:\/\/www.fatihacar.com\/blog\/?p=1594"},"modified":"2016-10-12T13:12:48","modified_gmt":"2016-10-12T10:12:48","slug":"oracle-11g-oracle-checkpoint-not-complete-cannot-allocate-new-log-warning","status":"publish","type":"post","link":"https:\/\/www.fatihacar.com\/blog\/oracle-11g-oracle-checkpoint-not-complete-cannot-allocate-new-log-warning\/","title":{"rendered":"Oracle 11g Oracle Checkpoint Not Complete, Cannot Allocate New Log Warning"},"content":{"rendered":"<p><strong>Error:<\/strong> Checkpoint not complete, Cannot Allocate New Log Warning<\/p>\n<blockquote><p>Thread 1 cannot allocate new log, sequence 125487<br \/>\nCheckpoint not complete<\/p><\/blockquote>\n<p><strong>Solution:<\/strong> Checkpoint not complete messages are generated due to the logs are switching so fast that the checkpoint associated with the log switch isn&#8217;t complete. You should increase redo log file size and amount to resolve. Also, If you use archive_lag_target parameter as near zero for example like 1 or 2 minutes, you should change this parameter zero (no lag) or more than 10-15 min. Oracle recommends that redo log switch operation interval should be between 15-30 minutes.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.fatihacar.com\/blog\/resimler\/oracle_redo_log_files.jpg\" alt=\"oracle_redo_log_files\" width=\"488\" height=\"307\" class=\"aligncenter size-full wp-image-1598\" srcset=\"https:\/\/www.fatihacar.com\/blog\/resimler\/oracle_redo_log_files.jpg 488w, https:\/\/www.fatihacar.com\/blog\/resimler\/oracle_redo_log_files-300x189.jpg 300w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/p>\n<p><strong>Show and change archive_lag_target parameter<\/strong><\/p>\n<blockquote><p>SQL> show parameter archive_lag_target;<br \/>\nSQL> alter system set archive_lag_target=0 scope=both;<br \/>\nor<br \/>\nSQL> alter system set archive_lag_target=1800 scope=both;<br \/>\n1800 is 15 minutes. Parameter value as second.<\/p><\/blockquote>\n<p>If your archive_lag_target parameter is normal and you get checkpoint not complete error, you have to look your redo log file size and amount.<br \/>\n<!--more--><\/p>\n<p><strong>Show Redo Log Files<\/strong><\/p>\n<blockquote><p>SQL> select * from v$log;<br \/>\nSQL> select * from v$logfile;<\/p><\/blockquote>\n<p>If all redo log files status are ACTIVE and CURRENT, you may get checkpoint not complete warning and that is normal. You should see redo log files status as ACTIVE, CURRENT and INACTIVE.<\/p>\n<p><strong>Redo Log File Status Descriptions<\/strong><\/p>\n<blockquote><p><strong>UNUSED<\/strong> &#8211; Online redo log has never been written to. This is the state of a redo log that was just added, or just after a RESETLOGS, when it is not the current redo log.<\/p>\n<p><strong>CURRENT<\/strong> &#8211; Current redo log. This implies that the redo log is active. The redo log could be open or closed.<\/p>\n<p><strong>ACTIVE<\/strong> &#8211; Log is active but is not the current log. It is needed for crash recovery. It may be in use for block recovery. It may or may not be archived.<\/p>\n<p><strong>CLEARING<\/strong> &#8211; Log is being re-created as an empty log after an ALTER DATABASE CLEAR LOGFILE statement. After the log is cleared, the status changes to UNUSED.<\/p>\n<p><strong>CLEARING_CURRENT<\/strong> &#8211; Current log is being cleared of a closed thread. The log can stay in this status if there is some failure in the switch such as an I\/O error writing the new log header.<\/p>\n<p><strong>INACTIVE<\/strong> &#8211; Log is no longer needed for instance recovery. It may be in use for media recovery. It might or might not be archived.<\/p><\/blockquote>\n<p>If your redo log file size is small or redo log file amount is too few for example two, you have to add new redo log file and increase size.<\/p>\n<p><strong>Add New Redo Log File<\/strong><\/p>\n<blockquote><p>SQL> alter database add logfile size 200M;<\/p><\/blockquote>\n<p>You can drop small sized redo log files with group number while status is INACTIVE. You can check status with v$log;<\/p>\n<p><strong>Drop Redo Log File<\/strong><\/p>\n<blockquote><p>SQL> alter database drop logfile group 3;<\/p><\/blockquote>\n<p>You have to check switch time of redo log files after add new redo logs. If switch interval is 15-30 minutes and do not see checkpoint not complete warning, you database redo log size and amount is suitable. You can set archive_lag_target to 15 minutes to force create archive log that is important for recovery operation. If you lose your redo logs, you have to use archived logs. Interval of create archive logs is important for RPO (Recover Point Objective) value.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Error: Checkpoint not complete, Cannot Allocate New Log Warning Thread 1 cannot allocate new log, sequence 125487 Checkpoint not complete Solution: Checkpoint not complete messages are generated due to the logs are switching so fast that the checkpoint associated with the log switch isn&#8217;t complete. You should increase redo log file size and amount to&#8230;<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9,53],"tags":[54],"class_list":["post-1594","post","type-post","status-publish","format-standard","hentry","category-administration","category-oracle-errors-and-solutions","tag-oracle-error-solutions"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-pI","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/1594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=1594"}],"version-history":[{"count":7,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/1594\/revisions"}],"predecessor-version":[{"id":1602,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/1594\/revisions\/1602"}],"wp:attachment":[{"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=1594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=1594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=1594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}