Assuming you have a sync mirror established, adding new db to mirror is as simple as:
- Create DB on Primary.
- Run SYS.Mirror:AddDatabase. It returns %Status, check that it's ok with $$$ISOK(sc). It should be equal to 1.
- Dismount database on Primary (using SYS.Database:DismountDatabase) OR Freeze IRIS (Backup.General:ExternalFreeze).
- Copy IRIS.DAT to Backup.
- Mount database on Primary (using SYS.Database:MountDatabase) OR Thaw IRIS (Backup.General:ExternalThaw).
- Mount database on Backup.
- Activate database on Backup (SYS.Mirror:ActivateMirroredDatabase).
- Catchup database on Backup (SYS.Mirror:CatchupDB).
Please note that some methods accept db name, most accept db directory, and others db sfn. Please keep that in mind.
- Log in to post comments
.png)
.png)
.png)