It’s magic! (rman knows the LIKE command)
Well maybe not exactly magic, but pretty nice nonetheless. In the previous entry I discussed managing the standby archivelogs (in the flashback recovery area). If you are running everything with a catalog database and have a primary and a standby, the primary and standby are pretty much identical except in the flashback area:
/path/to/flashback/archivelog/$DB_UNIQUE_NAME/data/files
so on the primary and standby, which have different $DB_UNIQUE_NAME, there is a directory unique to each machine. If you
ever need to clear out files on one or the other and don’t use RMAN to do it, this will make sure the catalog is accurate:
- use rman to connect to the primary and catalog
- RMAN> crosscheck archivelog all like ‘%$DB_UNIQUE_NAME%’;
Do the same on the standby…
This only updates the catalog for the online archivelog files. To update the backup files as well:
run {
allocate channel device type disk;
crosscheck backup;
}
Антон Павлович said,
March 19, 2010 @ 3:20 am
< a href=”http://yourworker2007.ru” > < /a > /path/to/flashback/archivelog/$DB_UNIQUE_NAME/data/files
so on the [….
И что бы мы делали без вашей блестящей идеи