Ask the Expert

Remedy and reason for a full transaction log file in SAP 4.7 SQL Server

I am using SAP 4.7 SQL Server 2000, and the transaction log file filled up last night. How do I empty the transaction log file and how do I determine the reason for filling up the log file?

    Requires Free Membership to View

If the database is in recovery mode "full", you need to back up the transaction log. This will do the appropriate checkpoints and empty it.

If the database is in recovery mode "simple", you can simply truncate the transaction log by issue a "backup log with truncate_only" or a "backup log with no_log".

Take a look at the SQL Server books online for more detailed information.

You can read the SQL Server logs and the System Log in SAP to see if you can find out what exactly caused the transaction log to fill up. It could be that there was an open transaction that never got committed. You can also run "dbcc opentran" next time, as soon as you see this problem. But, hopefully you will not get this problem again. The best thing is to set up an alert that triggers a transaction log backup if the log fills up to a determined percentage, like 80%.

This was first published in August 2005

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: