Offline: Disable the AIMGT feature1. Disable the AIMGT Feature
$ proutil dbname -C aiarchiver disable
2. OS Copy AI extents to the aiarchive directory (-aiarcdir)
3. Empty all FULL AI extents
$ rfutil dbname -C aimage list | egrep -i "Status|Path"
Run the following command for each Full extent:
$ rfutil dbname -C aimage empty
4. Re-enable the AIMGT Feature
$ rfutil dbname -C aiarchiver enable
5. Verify that the archive directory (-aiarcdir) is accessible and has sufficient space available then restart the database
Online Option 1: Restart the AIMGT deamon
1. Don't shut the database down when -aistall is in effect
2. Verify that the archive directory (-aiarcdir) is accessible and has sufficient available space
3. Restart the daemon (AIMD) which will then archive and empty all FULL extents releasing the stall after the first full ai file has been archived:
(12288) There are no available EMPTY AI extents. Database activity is stalled until an AI extent becomes available.
$ _mprshut dbname -C aimgt -aiarcdir .\ais1 -aiarcinterval 3600
(13194) The after-image manager is beginning.
(2518) Started.
(13199) After-image extent <ai extent> has been copied to <-aiarcdir>
(3789) Marked after-image extent <ai extent> EMPTY.
(12289) Database activity is no longer stalled and will continue normally.
Online Option 2: Manually archive FULL extents
IF the deamon fails for whatever reason, manually archive FULL ai extents
1. Take a list of all current FULL AI extents:
$ rfutil dbname -C aimage list | egrep -i "Status|Path"
2. Manually archive each FULL AI extent ensuring the destination is accessible and has sufficient space
$ rfutil dbname -C aiarchive extent <path>/<dbname>.a1 <FULL/ARCHIVEPATH>/<dbname>.a1
3. Verify the current AI extent status. All FULL extents will be marked EMPTY after being manually archived
$ rfutil <dbname> -C aimage list | egrep -i "Status|Path"
4. Disable AIMGT and Re-enable it online (10.1B+)
$ rfutil dbname -C aiarchiver disable
$ probkup online dbname dbname.bak enableaiarchiver -aiarcdir "<dir1>,<dir2>" [ -com -vs < $BKFILEVOLS ]