on 2020 Mar 23 5:27 AM
Is there a way to make the option delete_old_logs be considered also for Mirror Logs?
I am using SQL Anywhere 10, and use DBREMOTE with -X, but I want to keep the Transaction Log Files && Mirror Log files for 30 Days, so that I set the option delete_old_logs to 30 Days.
The problem is that this 30 Days applies only for the trnsaction log files and not for Mirror log files.
Any ideas please?
Request clarification before answering.
Do the offline mirror logs reside in the same directory as the active mirror log?
Otherwise, I guess you need to specify the offline mirror log directory via the DBREMOTE -ml directory option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The similar "mld extended option"
Hm, in my understanding it assumes the offline mirror logs are in the same directory as the active mirror log, not the active (main) transaction log itself, and that certainly is common.
There are two types of transaction log files
On the other hand, the transaction log files (both main and mirror), are renamed and truncated (for performance and disk space purposes), so that we can always see the online/active one (usually the same name as .db file but with LOG extension), and the offline one/s (YYMMDDxx.LOG).
In this forum I am always used to use the online instead of active.
My question is here, under which circumstances could the online/active and the offline transaction log files (main or active) reside in different locations?
We have several installations, and I have never seen such installation where the transaction log files are trunacted and renamed (and moved to another location).
Well, that's also the way we have always handled backups and offline transaction logs, so active and offline logs reside in the same directory - this seems useful if you always backup logs via DBBACKUP -r or the according BACKUP STATEMENT variants that leave old logs both in the "active" and in the backup directory.
However, say when you use DBBACKUP -x -n, the old (aka offline) transaction logs would only reside in the backup directory, not in the active directory. With that usage, specifying the offline log directory is apparently necessary.
> under which circumstances could the online/active and the offline transaction log files (main or active) reside in different locations?
If you are not using dbremote.exe or dbmlsync.exe on the database then the answer is "the yymmddxx.log files can reside anywhere"... they are not used for anything except recovery after a restore and that requires manual intervention.
If you ARE using dbremote or dbmlsync, you already know what you must do 🙂
AFAIK the .mlg files are not used for anything. In theory they might be used after a restore but I've never seen it happen.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.