on 04-21-2023 12:11 PM
Hello,
How can I check status of the log backup in ASE Sybase using sql query?
For full backup I use: select LastBackupFailed from master..monOpenDatabases
What about log backups?
Thanks and Regards,
Jan
Take a look at the LastTranLogDumpTime field. Assuming you know when log backups are supposed to be happening, the LastTranLogDumpTime DATETIME value will let you figure out if a backup is overdue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, the docs state that LastTranLogDumpTime is "Date and time of this database’s most recently successful transaction log dump.
The time is not updated if the transaction is dumped using the truncate_only or no_log."
If you are using ASE's dump history feature you may also query log backups from the dump history file .
1) enable dump history feature:
set ASE parameter 'enable dump history' to 1
2) Optional (but recommended) set a dedicated dump history flename for your ASE
set ASE parameter 'dump history filename'
3) Create a proxy table on the dump history file name using SP sp_dump_history ( create_table option)
(replace placeholders as per your needs for eample :
exec sp_dump_history @operation = 'create_table' , @name = 'mydb..DumpsHistory'
4) Select from the proxy table
SELECT FROM mydb..DumpsHistory
To select for transaction log dumps only : rec_type = 3
To select for database dumps : rec_type = 2
status = 1 --> means a successful dump
status = 2 --> error
See ASE documentation for sp_dump_history and the dump history feature HTHTilman Model-BoschYou must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
7 | |
6 | |
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.