Salesforce

How to archive the AIMGT after image archival log file online?

« Go Back

Information

 
TitleHow to archive the AIMGT after image archival log file online?
URL NameP136728
Article Number000139284
EnvironmentProduct: OpenEdge
Version: 10.1A and later
OS: All supported platforms
Other: AIMGT
Question/Problem Description
How to archive the AIMGT archival log file?
How to truncate or clean up AI archive log?
How to clean old information in AI archive log file?
Can the db-name.archival.log be edited without stopping the database?
How to archive the aiarchiver log file while the database is running
How to truncate the dbname.archival.log with the database online.
Is there a way to archive the aiarchiver log while the database is running?
Is there a way to truncate after image archival log files with the database online?
Managing the size of the dbname.archival.log file.
Steps to Reproduce
Clarifying Information
Error Message
Defect Number
Enhancement Number
Cause
Resolution
There is no Progress utility to truncate the archival.log file at this time. For example PROLOG cannot be used to archive the archival log file. In order to manage the archival.log file size while the AI Management enabled database is online is as follows: 

1.   Stop the AIMGT daemon online without shutting down the database server or ai or disabling the aiarchiver feature: 

$   rfutil dbname -C aiarchiver end 

2.   Once the AIMD has stopped, backup the current archival log for future roll forward reference or aimage scan verbose analysis.

3.   Either delete the dbname.archival.log file or 'truncate' the content as required with OS Utilities.

When truncating the content of archival.log file, for example deleting old data entries and preserving current entries by editing or parsing the file, the following guidelines should be observed:

a.   The first 5 lines must remain.

Example:
 
#
# OpenEdge RDBMS After-image Extent Manager Archival Log File
# Do not edit this file with an editor as it is automatically
# maintained by the OpenEdge RDBMS after-image extent manager.
#
 
Delete all archival log record from here to a point in time in the file. Save as many or as few records as needed, entries in this file are designed to aid in recovery when required. 

Typically all entries after the most recent log records are preserved so that the data can be used in case roll forward recovery is required.
  • The 0255 record is logged before any action any lines after these should be maintained.
  • The second field is the date of the operation.
  • The subsequent entries are those that followed
  • Be sure to do not delete the last carriage return.

The sample log below contains records from the 11.6 after-image management daemon entries.

#
# OpenEdge RDBMS After-image Extent Manager Archival Log File
# Do not edit this file with an editor as it is automatically
# maintained by the OpenEdge RDBMS after-image extent manager.
#
0255,20160128,155847,100200
# A new archive interval 0 has been set.
0001,C:\db\dbname,20160128,160213,20151030,103610,5,C:\db\dbname.a5,C:\db\ais1\C!~db~dbname.20151030.103610.00000005.dbname.a5
0032,C:\db\dbname,20160128,160227,1,4,20160128,160226,7,BACKUP_SET_20160128_160226,1,dbname0.back
0001,C:\db\dbname,20160128,160228,20151030,103610,6,C:\db\dbname.a6,C:\db\ais1\C!~db~dbname.20151030.103610.00000006.dbname.a6
0003,C:\db\dbname,20160128,160455,20151030,103610,7,C:\db\dbname.a1,C:\db\ais2\dbnamebak.a1
0001,C:\db\dbname,20160128,160625,20151030,103610,8,C:\db\dbname.a2,C:\db\ais1\C!~db~dbname.20151030.103610.00000008.dbname.a2
0001,C:\db\dbname,20160128,160746,20151030,103610,9,C:\db\dbname.a3,C:\db\ais1\C!~db~dbname.20151030.103610.00000009.dbname.a3
<< Be sure to do not delete the last carriage return.

4.   Re-start the AIMGT deamon online, which will then either re-create the archival log if deleted or continue writing to the truncated log file: 
$   _mprshut dbname -C aimgt -aiarcdir xxxx -aiarcinterval n
 
Workaround
Notes
References to Other Documentation: 

For further information on the AI Archiver utility and naming conventions please refer to:
OpenEdge Data Management: Database Administration, Chapter "After-imaging", Section: AI File Management utility.

Progress Articles: 

How to find the current value of the aiarchiver directory?   
roll forward fails with error 8019 883 11014 on first aiarchived backup sequence number   

 
Keyword Phrase
Last Modified Date11/20/2020 7:25 AM

Powered by