on 09-23-2022 5:41 AM
Hello Manoj,
In order to delete log backup files from OS level, please refer below steps.
1. Check log backup file:
Execute below sql command to check the log backup files. (Check for SystemDB and TenantDB separately.)
select t1.entry_type_name, t1.backup_id,t1.state_name, to_varchar(t1.sys_start_time,'YYYY/MM/DD') as sys_start_time, t2.SOURCE_TYPE_NAME, t2.SERVICE_TYPE_NAME,t2.BACKUP_SIZE,t2.DESTINATION_PATH,t2.DESTINATION_TYPE_NAME from "SYS"."M_BACKUP_CATALOG" t1, M_BACKUP_CATALOG_FILES t2 where t1.backup_id = t2.backup_id and t1.entry_type_name = "log backup"
2. Copy BACKUP_ID up to which you want to remove log backup files.
3. Purge log backups:
Execute below sql command to purge log backups. This will remove all backups present older then BACKUP_ID from backup catalog and OS level. (Execute from SystemDB and TenantDB separately.)
BACKUP CATALOG DELETE ALL BEFORE BACKUP_ID <BACKUP_ID> COMPLETE;
Moreover, if you do not want log backups to be generated then you can modify parameter log_mode to overwrite from normal.
Hope this justifies your question. Let me know in case of any queries.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
11 | |
10 | |
8 | |
8 | |
6 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.