Claims
- 1. For use with a primary database residing on a primary computer, said primary computer being couplable to a secondary computer having a secondary database, a system for allowing said secondary computer to operate as a hot spare for said primary computer, comprising:a transaction logger, associated with said primary database, that maintains log records of transactions involving persistent data in said primary database; and a transaction processor, associated with said primary database, that transmits a portion of said log records to said secondary computer to allow said secondary computer to commit said portion of said log records to said secondary database, said secondary database being able to, upon failure of said primary database, automatically redesignate to function in a primary database mode, said primary database being able to, upon resolution of said failure, automatically redesignate to function in a secondary database mode.
- 2. The system as recited in claim 1 wherein said transaction processor transmits all of said log records to said secondary computer to allow said secondary computer to commit said all of said log records to said secondary database, said secondary database thereby mirroring said primary database.
- 3. The system as recited in claim 1 wherein said transaction processor commits one of said log records without waiting until said secondary computer has acknowledged having committed said one of said log records.
- 4. The system as recited in claim 1 wherein said transaction processor waits to commit one of said log records until said secondary computer has acknowledged having committed said one of said log records.
- 5. The system as recited in claim 1 wherein said transaction logger maintains said log records in a primary stable log, said secondary computer capable of synchronizing to said primary stable log.
- 6. The system as recited in claim 1 wherein a computer network couples said primary and secondary computers.
- 7. For use with a primary database residing on a primary computer, said primary computer being couplable to a secondary computer having a secondary database, a method of allowing said secondary computer to operate as a hot spare for said primary computer, comprising the steps of:maintaining log records of transactions involving persistent data in said primary database; transmitting a portion of said log records to said secondary computer to allow said secondary computer to commit said portion of said log records to said secondary database; designating a state of said primary and secondary computers with a first parameter associated with said primary and secondary databases; automatically redesignating said secondary database to function in a primary database mode upon failure of said primary database; and automatically redesignating said primary database to function in a secondary database mode upon resolution of said failure.
- 8. The method as recited in claim 7 wherein said step of transmitting comprises the step of transmitting all of said log records to said secondary computer to allow said secondary computer to commit said all of said log records to said secondary database, said secondary database thereby mirroring said primary database.
- 9. The method as recited in claim 7 further comprising the step of committing one of said log records without waiting until said secondary computer has acknowledged having committed said one of said log records.
- 10. The method as recited in claim 7 further comprising the step of waiting to commit one of said log records until said secondary computer has acknowledged having committed said one of said log records.
- 11. The method as recited in claim 7 further comprising the step of automatically redesignating said primary database to function in a secondary database mode upon resolution of said failure.
- 12. The method as recited in claim 7 further comprising the step of maintaining said log records in a primary stable log, said secondary computer capable of synchronizing to said primary stable log.
- 13. The method as recited in claim 7 wherein said step of transmitting is carried out over a computer network coupling said primary and secondary computers.
- 14. A database management system (DBMS), comprising:a primary database residing on a primary computer; a secondary database residing on a secondary computer coupled to said primary computer; and a system that allows said secondary database to mirror said primary database, including: a transaction logger, associated with said primary database, that maintains log records of transactions involving persistent data in said primary database, and a transaction processor, associated with said primary database, that transmits a portion of said log records to said secondary computer to allow said secondary computer to commit said portion of said log records to said secondary database, said secondary database thereby mirroring said primary database, said secondary database being able to, upon failure of said primary database, automatically redesignate to function in a primary database mode, said primary database being able to, upon resolution of said failure, automatically redesignate to function in a secondary database mode.
- 15. The DBMS as recited in claim 14 wherein said transaction processor commits one of said log records without waiting until said secondary computer has acknowledged having committed said one of said log records.
- 16. The DBMS as recited in claim 14 wherein said transaction processor waits to commit one of said log records until said secondary computer has acknowledged having committed said one of said log records.
- 17. The DBMS as recited in claim 14 wherein said transaction logger maintains said log records in a primary stable log, said secondary computer capable of synchronizing to said primary stable log.
- 18. The DBMS as recited in claim 14 wherein a computer network couples said primary and secondary computers.
- 19. The DBMS as recited in claim 14 wherein said transaction processor transmits all of said log records to said secondary computer to allow said secondary computer to commit said all of said log records to said secondary database, said secondary database thereby mirroring said primary database.
CROSS-REFERENCE TO RELATED APPLICATIONS
The present invention is related to those disclosed in U.S. Pat. No. 5,864,849 issued to Bohannon, el al., and entitled “System and Method for Restoring a Multiple Checkpointed Database in View of Loss Of Volatile Memory” and U.S. Pat. No. 5,845,272 issued to Bohannon, el al., and entitled “System and Method for Restoring a Distributed Checkpointed Database.” Both patents are commonly assigned with the present invention and incorporated herein by reference for all purposes.
US Referenced Citations (13)