on 10-12-2007 12:53 PM
Is there any specific reason, why, in case the log is full, one can't switch to "overwrite"?
If you copy HUGE systems (1.5+ TB) and your "forget" to switch to overwrite after the copy, it's very very time consuming to get the system back to work again (full database backup + log backup). This has almost killed us often in the past and in fact, I don't understand the (technical) reason, why I can switch any time before, but not if the log ran actually full.
Could someone please elaborate?
Thanx!
--
Markus
Hi Markus,
overwrite Log is not recommended for produktive Systems.
Why dont you use Autolog?
If the Logspace is running full (LOG_SEGMENT_SIZE) it automatically
runs a full backup.
If the Log is full, the Database stops, this doesnt mean it is offline. You only need to perform an log backup, then the database become available again and everything will be fine.
If you put the Logmode in Overwrite Mode, it is not longer possible to recover the Database to a specific time. Only a recovery of a full backup can be performed!
How big is your Logspace?
Did i understand your question correct?
Regards
Manuel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I know about the log area - I was talking about test/sandbox systems.
If you get a "log full" situation, there's no way out of that but taking a full backup and then a log backup, on big (test-/sandbox-)systems, this takes a LOT of time.
What I am asking is:
It's possible to change the log mode ANY TIME, why can't we change it when the log is actually full?
--
Markus
Hi Markus,
you can always change your logmode, if the db is in state admin or online.
But you can't if it is full.
Before you can activate autolog you must perform an logbackup to empty the Logspace.
If your log space is full. You <b>don't</b> have to create an full backup.
You only need to do an logbackup, which is only as big as your logspace (10/20GB?).
(<i>Hope i dont break the Forum Rules</i>)
Have a look at SAP Hint 869267 (Point 18. 20.)
18. How does a LOG FULL situation occur?
A Log Full situation only arises if the log area is not regularly saved. The log area can only be released for overwriting if it has been previously saved and then a SAVEPOINT was written.
In a LOGFULL situation, the system can only write COMMITS/ROLLBACKS and SAVEPOINTS in the log.
20. How do I resolve a LOG FULL situation?
If the log has become full, any further on-line operation is only possible if a log backup is created. Log backup can be created in ADMIN or ONLINE status. A log backup can also be created by switching on automatic log backup.
If no database backup has been created on the affected database before the log backup, or if the log area has been switched off once in the meantime, a data backup is still necessary before the log backup.
Regards
Manuel
> Hi Markus,
> you can always change your logmode, if the db is in
> state admin or online.
> But you can't if it is full.
That is my question - WHY is that so?
I know what the LOG is, what is is for etc.
> Before you can activate autolog you must perform an
> logbackup to empty the Logspace.
>
> If your log space is full. You <b>don't</b> have to
> create an full backup.
> You only need to do an logbackup, which is only as
> big as your logspace (10/20GB?).
This is not true. If no full backup ever made (after a system copy), you MUST create a full backup as "starting point" for the log backup.
[..]
--
Markus
> > Hi Markus,
> > you can always change your logmode, if the db is
> in
> > state admin or online.
> > But you can't if it is full.
>
> That is my question - WHY is that so?
>
> I know what the LOG is, what is is for etc.
>
Ok i'm out. 😃
Thats a question for a Developer..
> > Before you can activate autolog you must perform
> an
> > logbackup to empty the Logspace.
> >
> > If your log space is full. You <b>don't</b> have
> to
> > create an full backup.
> > You only need to do an logbackup, which is only as
> > big as your logspace (10/20GB?).
>
> This is not true. If no full backup ever made (after
> a system copy), you MUST create a full backup as
> "starting point" for the log backup.
>
Hm yep you're right.
> [..]
>
> --
> Markus
I have not enough knowledge to answer this question, sry 😃
Regards.
Manuel
Hi Markus,
in my test environment the savepoint has been written triggered by the force savepoint command during a log full situation. Ok I'm using the current 7.7.04. I'm sure that it also works in 7.7.02.
I assume that you use 7.6. I'm with you that there is no cause to allow to switch in overwrite mode except in log full situations. So in my point of view it's a bug fixed in 7.7.
Regards,
Rocco
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.