EP1361515A1 - Method and system for database backup - Google Patents
Method and system for database backup Download PDFInfo
- Publication number
- EP1361515A1 EP1361515A1 EP02010038A EP02010038A EP1361515A1 EP 1361515 A1 EP1361515 A1 EP 1361515A1 EP 02010038 A EP02010038 A EP 02010038A EP 02010038 A EP02010038 A EP 02010038A EP 1361515 A1 EP1361515 A1 EP 1361515A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- log
- file
- memory
- data
- backup
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1448—Management of the data involved in backup or backup restore
- G06F11/1451—Management of the data involved in backup or backup restore by selection of backup contents
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1446—Point-in-time backing up or restoration of persistent data
- G06F11/1458—Management of the backup or restore process
- G06F11/1461—Backup scheduling policy
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1471—Saving, restoring, recovering or retrying involving logging of persistent data for recovery
Definitions
- the invention relates to a method and a system for Backing up a database with data in one Main memory buffered and on a background memory be backed up so that in the event of an error in the working memory its data content through data retransmission can be produced.
- a database or database is a program system that Manages all kinds of information centrally. In Many technical systems depend on the fact that Information without delay and without loss of quality must be available.
- Switchboards for telecommunication systems manage subscriber-related information in databases, that must be continuously updated and backed up.
- Mobile networks monitor so-called Mobile Switching Center, the are switching facilities that connect to the mobile communication participants and to others Switching equipment of a telecommunication network establish the messaging between the mobile Stations.
- a so-called home register contains all Data of those participants who have their permanent Location in the coverage area of this Exchange have saved.
- the information about the current Locations of the mobile stations filed.
- Visitor registers are temporarily the data of those Stations saved that are temporarily in the area stop this exchange.
- the Switching equipment of the telecommunication system need both mobility-related as well subscriber-specific data up to date hold. This is done through so-called update procedures, also called a location update, where the changed data for a communication participant in the Database will be noted. So that the data collected at any software or hardware errors in the Switching equipment must not be lost, they must periodically saved on a background memory.
- a backup is one Backup copy of a file or an entire data medium, e.g. a semiconductor RAM.
- a backup file contains all the information that is required to the original database of a working memory exactly in to restore the state it was in, before the backup was made. At a Real-time database, those information must also be backed up be made during the backup be changed or added. This is done by a Incremental backup.
- An incremental backup contains the data that compared to the last incremental backup and during the The backup copy was changed or have been added. When restoring the database then not only the last saved backup version of the RAM, but it must also be the last approved and recorded changes in the working memory be loaded back.
- the main memory in switching stations is a Semiconductor memory, however, the background memory from A disk storage for cost reasons.
- the memory access time on the disk storage is compared to that Semiconductor memories are orders of magnitude slower.
- the object of the present invention is a method and to specify a system for backing up a database, the one has high data throughput rate and at the same time is economical.
- the blocks are advantageously stored sequentially and at equally spaced locations.
- each block in a block start area contains information about the size of the block and a virtual address which assigns the block to a memory location in the full backup.
- the division of the memory into equal parts facilitates the organization and allocation of the memory areas on the background memory.
- the virtual address allows a larger address space than is actually available in the working memory.
- the working memory is a first Includes buffer and a second buffer and a data block one of these buffers is formed from the data content.
- Figure 1 shows a schematic representation of a conventional method of backing up a database.
- a working memory M buffers current data a subscriber database in a memory tandem arrangement, which consists of buffer B1 and buffer B2.
- the dashed line separates in the schematic Representation of Figure 1, the memory M from Background memory D.
- File D1 contains a copy of the semi-permanent data of the working memory is therefore a Full backup of the two buffers B1 and B2.
- a storage program FCTRANS transmits the current subscriber-specific data the buffer to the corresponding storage location of the Background memory. This means that every data entry saved separately in file D1.
- FCTRANS transmits the current subscriber-specific data the buffer to the corresponding storage location of the Background memory. This means that every data entry saved separately in file D1.
- B1 Storage level with several storage cells, 1st location, 2nd location, 3rd location and n. Location marked.
- the content of each of these individual memory cells is assigned to one specific location on the background memory saved. This save process is indicated by arrows in the figure 1 indicated.
- the background memory that is in Exchanges is usually a disk storage has a long time compared to a semiconductor memory Memory access time.
- a write process takes several Seconds because the read / write head of the magnetic disk storage to a specific point on the magnetic disk position is. There is a backup file very time consuming. Since in the subscriber database each Database change from a mobile communication participant limits the comparatively long access time of the background memory the maximum possible rate of change when logging.
- FIG. 2 shows a schematic representation of the Method according to the invention for securing a database.
- Incoming data are, as explained in FIG. 1, in a first buffer B1 and in a second buffer B2 of the Work memory M buffered.
- the invention provides semi-permanent data that this Entries not separately, but in blocks in their own File, the second D2, on the background memory D get saved. This is indicated by an arrow in Figure 2 indicated.
- the second file D2 forms an incremental backup, i.e. a log file with continuously logged changes of RAM. For a reconstruction of the data of the RAM M, it is necessary both the data of the Full backup file D1 as well as that of the incremental backup file D2 to load into memory.
- the file D2 contains these "LOG's" since the last Checkpoint. Because not every entry individually, but each time a full buffer in blocks on the background memory is transmitted, one achieves a decoupling between the Update of the backup file on the background memory and capturing current database entries of the Communication participants in the working memory.
- Figure 3 and Figure 4 show a preferred embodiment of the database backup according to the invention in the state after Program breakpoint during the formation of the second full backup D3 and the second incremental backup D4.
- the fourth file D4 opened and from that point on Buffer B1 and B2 saved in file D4.
- the third file D3, i.e. the second full backup with a 1: 1 copy of the working memory formed on the background memory.
- the memory is in 256 kbyte blocks, between an initial and an end address, in FIG. 3 as "physical BEG" and "physical END ", transferred.
- the files D1, D2 and D4 form now the last consistent data content of the working memory on the background memory.
- Figure 5 shows schematically the structure of the second file D2.
- An initial area ABD of the file contains information about the file length and the bytes used, in Figure 5 ⁇ as “End of LOGFILE” and referred to as “Used Bytes LOGFILE”.
- the individual LOGs are in equidistant storage locations SPST1, SPST2 to SPSTn arranged.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
Die Erfindung betrifft ein Verfahren und ein System zur Sicherung einer Datenbank, bei welchem Daten in einem Arbeitsspeicher gepuffert und auf einem Hintergrundspeicher gesichert werden, so dass im Fehlerfall des Arbeitsspeichers dessen Dateninhalt durch eine Datenrückübertragung wieder herstellbar ist.The invention relates to a method and a system for Backing up a database with data in one Main memory buffered and on a background memory be backed up so that in the event of an error in the working memory its data content through data retransmission can be produced.
Eine Datenbank oder Datenbasis ist ein Programmsystem, das zentral Informationen unterschiedlichster Art verwaltet. In vielen technischen Systemen kommt es darauf an, dass Informationen ohne Zeitverzögerung und ohne Qualitätseinbuße verfügbar sein müssen.A database or database is a program system that Manages all kinds of information centrally. In Many technical systems depend on the fact that Information without delay and without loss of quality must be available.
Vermittlungseinrichtungen von Telekommunikationssystemen verwalten in Datenbanken teilnehmerbezogene Informationen, die fortlaufend aktualisiert und gesichert werden müssen. In Mobilfunknetzen überwachen sog. Mobile Switching Center, das sind Vermittlungseinrichtungen die eine Verbindung zu den mobilen Kommunikationsteilnehmern und zu anderen Vermittlungseinrichtungen eines Telekommunikationsnetzes herstellen, die Nachrichtenübermittlung zwischen den mobilen Stationen. Zur Erfüllung dieser Aufgabe sind sie mit einer oder mit mehreren Teilnehmerdatenbasen ausgestattet, in deren Arbeitsspeicher die Einträge laufend aktualisiert werden. In einem sog. Heimatregister wird in einem Verzeichnis alle Daten derjenigen Teilnehmer, die ihren ständigen Aufenthaltsort im Versorgungsbereich dieser Vermittlungsstelle haben, gespeichert. Weiterhin werden in dieser Datenbasis die Informationen über die aktuellen Aufenthaltsorte der mobilen Stationen abgelegt. In einem Besucherregister werden temporär die Daten derjenigen Stationen gespeichert, die sich vorübergehend im Bereich dieser Vermittlungsstelle aufhalten. Da die Daten nur während eines Zeitintervalls im Arbeitsspeicher abgelegt sind, werden diese Daten auch als semipermanent oder auch als halbdauernde Daten bezeichnet. Da jeder Teilnehmer sich im Mobilfunknetz zwischen mehreren Funkversorgungsgebieten bewegen kann, ist es erforderlich, abhängig von seinem aktuellen Aufenthaltsort auch seine teilnehmerindividuellen Daten in einem oder in mehreren Besucherregistern zu registrieren. M.a.W. die Vermittlungseinrichtungen des Telekommunikationssystems müssen sowohl mobilitätsbezogene als auch teilnehmerindividuelle Daten auf einem aktuellen Stand halten. Dies erfolgt durch sogenannte Aktualisierungs-Prozeduren, auch als Location-Update bezeichnet, bei dem die geänderten Daten für einen Kommunikationsteilnehmer in der Datenbasis vermerkt werden. Damit die erfassten Daten bei eventuell auftretenden Software- oder Hardwarefehlern in der Vermittlungseinrichtung nicht verloren gehen, müssen diese auf einem Hintergrundspeicher periodisch gesichert werden.Switchboards for telecommunication systems manage subscriber-related information in databases, that must be continuously updated and backed up. In Mobile networks monitor so-called Mobile Switching Center, the are switching facilities that connect to the mobile communication participants and to others Switching equipment of a telecommunication network establish the messaging between the mobile Stations. To accomplish this task you are using a or equipped with several subscriber databases, in their RAM the entries are continuously updated. In A so-called home register contains all Data of those participants who have their permanent Location in the coverage area of this Exchange have saved. Furthermore, in this database the information about the current Locations of the mobile stations filed. In one Visitor registers are temporarily the data of those Stations saved that are temporarily in the area stop this exchange. Since the data is only during of a time interval are stored in the working memory this data also as semi-permanent or semi-permanent Data. Because every participant is in the mobile network can move between several radio coverage areas it is required depending on his current location also his participant-specific data in one or in register multiple visitor registries. M.a.W. the Switching equipment of the telecommunication system need both mobility-related as well subscriber-specific data up to date hold. This is done through so-called update procedures, also called a location update, where the changed data for a communication participant in the Database will be noted. So that the data collected at any software or hardware errors in the Switching equipment must not be lost, they must periodically saved on a background memory.
Eine bekannte Maßnahme zur Sicherung von Daten ist das Erstellen eines sogenannten Backups. Ein Backup ist eine Sicherungskopie einer Datei oder eines gesamten Datenträgers, z.B.: eines Halbleiterarbeitsspeichers. Eine Backup-Datei beinhaltet all jene Informationen, die erforderlich sind, um die ursprüngliche Datenbasis eines Arbeitsspeichers genau in jenem Zustand wiederherzustellen, in dem sich dieser befand, bevor das Backup erstellt wurde. Bei einer Echtzeitdatenbasis, müssen auch jene Informationen gesichert werden, die während des Erstellens der Sicherungskopie geändert werden oder hinzu kommen. Dies erfolgt durch ein Zuwachs-Backup. Ein Zuwachs-Backup enthält die Daten, die gegenüber dem letzten Zuwachs-Backup und während des Erstellens der Sicherungskopie geändert wurden oder hinzugekommen sind. Beim Wiederherstellen der Datenbasis muss dann nicht nur die zuletzt gespeicherte Backup-Version des Arbeitsspeichers, sondern es müssen auch die zuletzt zugelassenen und erfassten Änderungen in den Arbeitsspeicher zurück geladen werden.This is a known measure for backing up data Creation of a so-called backup. A backup is one Backup copy of a file or an entire data medium, e.g. a semiconductor RAM. A backup file contains all the information that is required to the original database of a working memory exactly in to restore the state it was in, before the backup was made. At a Real-time database, those information must also be backed up be made during the backup be changed or added. This is done by a Incremental backup. An incremental backup contains the data that compared to the last incremental backup and during the The backup copy was changed or have been added. When restoring the database then not only the last saved backup version of the RAM, but it must also be the last approved and recorded changes in the working memory be loaded back.
Der Arbeitspeicher in Vermittlungsstationen ist ein Halbleiterspeicher, der Hintergrundspeicher hingegen aus Kostengründen ein Plattenspeicher. Die Speicherzugriffszeit auf den Plattenspeicher ist verglichen mit dem Halbleiterspeicher um Größenordnungen langsamer.The main memory in switching stations is a Semiconductor memory, however, the background memory from A disk storage for cost reasons. The memory access time on the disk storage is compared to that Semiconductor memories are orders of magnitude slower.
Durch die hohe Teilnehmerzahl und die ungehinderte Kommunikationsmöglichkeit innerhalb der Zellen eines Mobilfunknetzes steigen vor allem in Vermittlungsstellen für Mobilfunknetzen die Anforderungen an die Datendurchsatzrate zur Sicherung der Datenbasis. Bei in Betrieb befindlichen Vermittlungsrechnern eines Telekommunikationsnetzes mit mobilen Teilnehmern kann es, aufgrund der langsamen Datensicherung dazu kommen, dass Einträge von Teilnehmern zurückgestellt werden müssen, was je nach Dauer der Verzögerung zu Beeinträchtigungen oder sogar zum Ausfall der angebotenen Kommunikationsdienstleistung führen kann.Due to the high number of participants and the unhindered Possibility of communication within the cells of a Cellular networks are rising above all in switching centers for Mobile networks meet the requirements for the data throughput rate to secure the database. When in operation Switching computers of a telecommunication network with mobile subscribers can, due to the slow Back up data that entries from participants must be postponed, depending on the duration of the Delay to impairment or even failure of the offered communication service.
Aufgabe der vorliegenden Erfindung ist es, ein Verfahren und ein System zur Sicherung einer Datenbasis anzugeben, das eine hohe Datendurchsatzrate aufweist und gleichzeitig wirtschaftlich ist.The object of the present invention is a method and to specify a system for backing up a database, the one has high data throughput rate and at the same time is economical.
Diese Aufgabe wird erfindungsgemäß bei einem Verfahren der
eingangs genannten Art mit den kennzeichnenden Merkmalen von
Patentanspruch 1 und bei einem System gemäß den
kennzeichnenden Merkmalen des Patentanspruches 8 gelöst.This object is achieved in a method of
type mentioned at the beginning with the characteristic features of
Das erfindungsgemäße Verfahren ist durch folgende Schritte
gekennzeichnet:
Auf diese Weise entstehen auf dem Hintergrundspeicher zwei Voll-Backup- und zwei Zuwachs-Backup-Dateien. Durch das Bilden dieser Dateien kann an einem einstellbaren Sicherungspunkt ein Zuwachs-Backup geleert und in ein Voll-Backup kopiert werden. Der Dateninhalt auf dem Hintergrundspeicher steht damit ohne Zeitverzögerung und ohne Qualitätseinbußen für eine Rückübertragung zur Verfügung. Durch den Programmhaltepunkt wird die Größe des Zuwachs-Backups auf dem Hintergrundspeicher begrenzt. Dadurch ist sichergestellt, dass im Falle einer Datenrückübertragung der Ladevorgang in den Arbeitsspeicher eine vorgegebene Ladezeit nicht überschreitet.In this way, two are created on the background memory Full backup and two incremental backup files. By the Forming these files can be done on an adjustable Backup point, an incremental backup is emptied and a full backup be copied. The data content on the Background memory is therefore without time delay and without Loss of quality available for retransmission. The size of the incremental backup is determined by the program breakpoint limited to the background memory. This is ensures that in the event of data retransmission the Loading into the working memory a predetermined loading time does not exceed.
Mit Vorteil erfolgt das Speichern der Blöcke sequenziell und an gleich beabstandeten Speicherstellen. Indem die Puffer streng hintereinander und in der Reihenfolge wie die Datenbasisänderungen anfallen gesichert werden, erhält man auf dem Hintergrundspeicher eine übersichtliche Organisation der Zuwachs-Datei.The blocks are advantageously stored sequentially and at equally spaced locations. By adding the buffers strictly in a row and in the order as that Database changes are saved, you get a clear organization on the background memory the growth file.
Günstig ist, wenn in einem Dateianfangsbereich eine
Information über die Größe enthalten ist.
Insbesondere ist hierbei von Vorteil, wenn in jedem Block in
einem Blockanfangsbereich eine Information über die Größe des
Blocks und eine virtuelle Adresse, welche den Block einer
Speicherstelle im Voll-Backup zuordnet, enthalten sind. Die
Gliederung des Speichers in gleich große Teile erleichtert
die Organisation und Zuweisung der Speicherbereiche auf dem
Hintergrundspeicher. Die virtuelle Adresse erlaubt einen
größeren Adressraum als im Arbeitsspeicher tatsächlich
vorhanden ist.It is advantageous if information about the size is contained in a file start area.
It is particularly advantageous here if each block in a block start area contains information about the size of the block and a virtual address which assigns the block to a memory location in the full backup. The division of the memory into equal parts facilitates the organization and allocation of the memory areas on the background memory. The virtual address allows a larger address space than is actually available in the working memory.
Es ist bevorzugt, wenn der Arbeitsspeicher einen ersten Puffer und einen zweiten Puffer umfasst und ein Datenblock aus den Dateninhalt eines dieser Puffer gebildet wird. Durch diese Tandemanordnung des Arbeitsspeichers ist es möglich, dass gleichzeitig Daten in den Arbeitsspeicher gelesen und gleichzeitig Daten auf den Hintergrundspeicher abgelegt werden können.It is preferred if the working memory is a first Includes buffer and a second buffer and a data block one of these buffers is formed from the data content. By this tandem arrangement of the working memory it is possible that data is read into the working memory at the same time and data stored in the background memory at the same time can be.
Bei der Systemaktualisierung einer Teilnehmerdatenbasis ist es besonders günstig, wenn der Programmhaltepunkt dann ausgelöst wird, wenn ein vorgegebener Zeit- oder Speicherschwellwert überschritten wird.When updating the system of a subscriber database it is particularly favorable if the program breakpoint is then is triggered when a predetermined time or Storage threshold is exceeded.
Weitere Aufgaben und Vorteile der Erfindung lassen sich am besten unter Bezugnahme auf die folgende Beschreibung in Zusammenhang mit den beiliegenden Zeichnungen verstehen. In den Zeichnungen zeigen:
Figur 1- eine schematische Darstellung eines bekannten Verfahrens zur Sicherung einer Datenbasis;
Figur 2- eine schematische Darstellung des erfindungsgemäßen Verfahrens zur Sicherung einer Datenbasis in einem Vermittlungsrechner;
Figur 3- eine Ausführung der erfindungsgemäßen Datenbanksicherung im Zustand eines Programmhaltepunktes während des Bildens eines zweiten Voll-Backups auf dem Hintergrundspeicher,
- Figur 4
- eine Ausführung der erfindungsgemäßen Datenbanksicherung im Zustand eines Programmhaltepunktes während des Bildens eines zweiten Zuwachs-Backups auf dem Hintergrundspeicher,
- Figur 5
- einen Aufbau einer erfindungsgemäßen zweiten Datei,
- Figur 6
- einen Aufbau eines erfindungsgemäßen Blocks.
- Figure 1
- a schematic representation of a known method for backing up a database;
- Figure 2
- a schematic representation of the method according to the invention for securing a database in a switching computer;
- Figure 3
- an execution of the database backup according to the invention in the state of a program breakpoint during the formation of a second full backup on the background memory,
- Figure 4
- an execution of the database backup according to the invention in the state of a program breakpoint while forming a second incremental backup on the background memory,
- Figure 5
- a structure of a second file according to the invention,
- Figure 6
- a structure of a block according to the invention.
Figur 1 zeigt eine schematische Darstellung eines herkömmlichen Verfahrens zur Sicherung einer Datenbasis. Ein solches Sicherungssystem wird beispielsweise bei Vermittlungsstellen in einem Telekommunikationssystem eingesetzt. Ein Arbeitsspeicher M puffert aktuelle Daten einer Teilnehmerdatenbasis in einer Speicher-Tandem-Anordnung, die aus dem Puffer B1 und dem Puffer B2 besteht. Die strichlierte Linie trennt in der schematischen Darstellung der Figur 1 den Arbeitsspeicher M vom Hintergrundspeicher D. Die Datei D1 beinhaltet eine Kopie der semipermanenten Daten des Arbeitsspeichers, ist also ein Voll-Backup der beiden Puffer B1 und B2. Ein Speicherprogramm FCTRANS überträgt die aktuellen teilnehmerspezifischen Daten der Puffer an die entsprechende Speicherstelle des Hintergrundspeichers. D.h., es wird jeder Dateneintrag getrennt in der Datei D1 gesichert. In der schematischen Darstellung in Figur 1 ist die mit B1 gekennzeichnete Speicherebene mit mehreren Speicherzellen, 1. Location, 2.Location, 3.Location und n. Location gekennzeichnet. Der Inhalt jede dieser einzelnen Speicherzellen wird auf eine bestimmte Speicherstelle auf dem Hintergrundspeicher gespeichert. Dieser Speichervorgang ist durch Pfeile in Figur 1 angedeutet. Der Hintergrundspeicher, der in Vermittlungsstellen üblicherweise ein Plattenspeicher ist, hat verglichen mit einem Halbleiterspeicher eine lange Speicherzugriffszeit. Ein Schreibvorgang dauert mehrere Sekunden, da der Schreib-/Lesekopf des Magnetplattenspeichers jeweils an eine bestimmte Stelle der Magnetplatte zu positionieren ist. Das Herstellen einer Sicherungsdatei ist sehr zeitaufwendig. Da in der Teilnehmerdatenbasis jede Datenbankänderung von einem mobilen Kommunikationsteilnehmer herrührt, beschränkt die vergleichsweise lange Zugriffszeit des Hintergrundspeichers die maximal mögliche Änderungsrate beim Protokollieren. Bei Spitzenauslastung des Kommunikationsnetzes kann es vorkommen, dass das Lesen von Daten vom Puffer auf den Hintergrundspeicher so langsam ist, dass der andere Puffer überläuft bevor dar erste Puffer vollständig auf dem Hintergrundspeicher abgelegt ist. Eine Folge davon ist, dass die Aktualisierung der Teilnehmerdatenbasis verzögert wird. In einem Mobilfunksystem heißt das, dass die Kommunikationsmöglichkeiten der mobilen Teilnehmer nicht nur beeinträchtigt ist, sondern es kann sogar vorkommen, dass Daten verloren gehen und Kommunikationsmöglichkeiten vollständig entfallen.Figure 1 shows a schematic representation of a conventional method of backing up a database. On such security system is for example at Agencies in a telecommunications system used. A working memory M buffers current data a subscriber database in a memory tandem arrangement, which consists of buffer B1 and buffer B2. The dashed line separates in the schematic Representation of Figure 1, the memory M from Background memory D. File D1 contains a copy of the semi-permanent data of the working memory is therefore a Full backup of the two buffers B1 and B2. A storage program FCTRANS transmits the current subscriber-specific data the buffer to the corresponding storage location of the Background memory. This means that every data entry saved separately in file D1. In the schematic Representation in FIG. 1 is that marked B1 Storage level with several storage cells, 1st location, 2nd location, 3rd location and n. Location marked. The The content of each of these individual memory cells is assigned to one specific location on the background memory saved. This save process is indicated by arrows in the figure 1 indicated. The background memory that is in Exchanges is usually a disk storage has a long time compared to a semiconductor memory Memory access time. A write process takes several Seconds because the read / write head of the magnetic disk storage to a specific point on the magnetic disk position is. There is a backup file very time consuming. Since in the subscriber database each Database change from a mobile communication participant limits the comparatively long access time of the background memory the maximum possible rate of change when logging. At peak utilization of the Communication network can happen that reading from Data from the buffer to the backing store is so slow that the other buffer overflows before the first buffer is completely stored in the background memory. A The consequence of this is that the update of the Participant database is delayed. In a mobile radio system it means that the communication options of the mobile Participant is not only impaired, but it can data may even be lost and Communication options are completely eliminated.
Figur 2 zeigt eine schematische Darstellung des erfindungsgemäßen Verfahrens zur Sicherung einer Datenbasis. Eingehende Daten werden, wie unter Figur 1 erläutert, in einem ersten Puffer B1 und in einem zweiten Puffer B2 des Arbeitspeichers M gepuffert. Zur Sicherung dieser semipermanenten Daten sieht die Erfindung vor, dass diese Einträge nicht separat, sondern blockweise in eine eigene Datei, die zweite D2, auf dem Hintergrundspeicher D gespeichert werden. Dies ist durch einen Pfeil in Figur 2 angedeutet. Die zweite Datei D2 bildet ein Zuwachs-Backup, d.h. eine Logdatei mit fortlaufend protokollierten Änderungen des Arbeitsspeichers. Für eine Rekonstruktion der Daten des Arbeitsspeichers M ist es erforderlich, sowohl die Daten der Voll-Backup-Datei D1 als auch die der Zuwachs-Backup-Datei D2 in den Arbeitsspeicher zu laden. Beide Dateien zusammen bilden den Inhalt des zuletzt gültigen und konsistenten Informationsgehalts des Arbeitsspeichers. In Figur 2 ist der Speichervorgang durch das Programm FCWRITM dargestellt. Dieses Programm fasst geänderte oder hinzugekommene Daten des Arbeitsspeichers zu Blöcken, sogenannten LOG's zusammen und sichert diese blockweise in der zweiten Datei D2. Unter der Bezeichnung LOG ist ein zusammenhängender Bereich von Datenbasisänderungen zu verstehen, die in einem Stück auf den Hintergrundspeicher D in ein Zuwachs-Backup, eine Protokolloder Logdatei, geschrieben werden. Das Speichern dieser zusammenhängenden Bereiche dauert bei einem Plattenspeicher nur Bruchteile einer Sekunde, wodurch das Sichern einer Teilnehmerdatenbasis effizienter erfolgen kann. Jeder Block umfasst den Dateninhalt eines Puffers B1 oder B2. In Figur 2 sind die übertragenen und in der zweiten Datei D2 abgelegten Blöcke durch 1.LOG, 2.LOG, 3.LOG und last LOG gekennzeichnet. Die Datei D2 beinhaltet diese "LOG's" seit dem letzten Prüfpunkt. Da nicht jeder Eintrag einzeln, sondern jeweils ein volles Puffer blockweise auf den Hintergrundspeicher übertragen wird, erreicht man eine Entkopplung zwischen der Aktualisierung der Back-Up-Datei auf dem Hintergrundspeicher und dem Erfassen aktueller Datenbankeinträge der Kommunikationsteilnehmer im Arbeitspeicher.Figure 2 shows a schematic representation of the Method according to the invention for securing a database. Incoming data are, as explained in FIG. 1, in a first buffer B1 and in a second buffer B2 of the Work memory M buffered. To secure this The invention provides semi-permanent data that this Entries not separately, but in blocks in their own File, the second D2, on the background memory D get saved. This is indicated by an arrow in Figure 2 indicated. The second file D2 forms an incremental backup, i.e. a log file with continuously logged changes of RAM. For a reconstruction of the data of the RAM M, it is necessary both the data of the Full backup file D1 as well as that of the incremental backup file D2 to load into memory. Both files together form the content of the last valid and consistent Information content of the working memory. In Figure 2 is the Save process represented by the program FCWRITM. This program summarizes changed or added data of the RAM into blocks, so-called LOGs together and saves them in blocks in the second file D2. Under the Designation LOG is a coherent area of Understand database changes that are in one piece on the Background memory D in an incremental backup, a log or Log file. Saving this contiguous areas lasts for a disk storage only a fraction of a second, making securing one Participant database can be done more efficiently. Every block includes the data content of a buffer B1 or B2. In Figure 2 are the transferred and stored in the second file D2 Blocks identified by 1.LOG, 2.LOG, 3.LOG and last LOG. The file D2 contains these "LOG's" since the last Checkpoint. Because not every entry individually, but each time a full buffer in blocks on the background memory is transmitted, one achieves a decoupling between the Update of the backup file on the background memory and capturing current database entries of the Communication participants in the working memory.
Figur 3 und Figur 4 zeigen eine bevorzugte Ausführung der erfindungsgemäßen Datenbanksicherung im Zustand nach dem Programmhaltepunkt während des Bildens des zweiten Voll-Backups D3 und des zweiten Zuwachs-Backups D4. Zu jedem Zeitpunkt ist auf dem Hintergrundspeicher jeweils ein Vollund ein Zuwachs-Backup existent. Am Programmhaltepunkt wird die vierte Datei D4, geöffnet und von diesem Zeitpunkt an die Puffer B1 und B2 in der Datei D4 gesichert. Gleichzeitig mit dem Schreiben auf D4 wird die dritte Datei D3, d.h. das zweite Voll-Backup, durch eine 1:1 Kopie des Arbeitsspeichers auf den Hintergrundspeicher gebildet. Der Arbeitsspeicher wird dabei in 256 kByte Blöcken, zwischen einer Anfangs- und einer Endadresse, in Figur 3 als "physical BEG" und "physical END" bezeichnet, übertragen. Die Dateien D1, D2 und D4 bilden nun den letzten konsistenten Dateninhalt des Arbeitsspeichers auf dem Hintergrundspeicher ab.Figure 3 and Figure 4 show a preferred embodiment of the database backup according to the invention in the state after Program breakpoint during the formation of the second full backup D3 and the second incremental backup D4. To each The time in the background memory is always a full and an incremental backup exists. At the program stop the fourth file D4, opened and from that point on Buffer B1 and B2 saved in file D4. At the same time with writing to D4, the third file D3, i.e. the second full backup, with a 1: 1 copy of the working memory formed on the background memory. The memory is in 256 kbyte blocks, between an initial and an end address, in FIG. 3 as "physical BEG" and "physical END ", transferred. The files D1, D2 and D4 form now the last consistent data content of the working memory on the background memory.
Die Figur 5 zeigt schematisch den Aufbau der zweiten Datei D2. Ein Anfangsbereich ABD der Datei enthält Informationen über die Dateilänge und die benutzten Bytes, in Figur 5 · als "End of LOGFILE" und als "Used Bytes LOGFILE" bezeichnet. Die einzelnen LOG's sind in äquidistanten Speicherstellen SPST1, SPST2 bis SPSTn angeordnet.Figure 5 shows schematically the structure of the second file D2. An initial area ABD of the file contains information about the file length and the bytes used, in Figure 5 · as "End of LOGFILE" and referred to as "Used Bytes LOGFILE". The individual LOGs are in equidistant storage locations SPST1, SPST2 to SPSTn arranged.
Der Aufbau eines Blocks bei der Bildung des ersten Zuwachs-Backups D2 und des zweiten Zuwachs-Backups D4 ist schematisch in Figur 6 dargestellt. In einem Anfangsbereich ABB sind Informationen über die Größe und die benutzten Bytes, in Figur 6 als "LOG Size" und als "Used Bytes LOG" bezeichnet, enthalten. In Figur 6 dargestellt ist die 1.Location und die last Location, wobei jede Location Angaben über "length", "virtual address" und "data" enthält. Building a block when creating the first incremental backup D2 and the second incremental backup D4 is schematic shown in Figure 6. In an initial area there are ABB Information about the size and the bytes used, in FIG. 6 referred to as "LOG Size" and as "Used Bytes LOG", contain. The first location and the last location, where each location contains information about "length", contains "virtual address" and "data".
- B1B1
- erster Puffer des Arbeitsspeichersfirst buffer of the working memory
- B2B2
- zweiter Puffer des Arbeitsspeicherssecond buffer of the working memory
- D1D1
- erste Datei des Hintergrundspeichersfirst file of the background memory
- D2D2
- zweite Datei des Hintergrundspeicherssecond file of the background memory
- D3D3
- dritte Datei des Hintergrundspeichersthird file of the background memory
- D4D4
- vierte Datei des Hintergrundspeichersfourth file of the background memory
- MM
- Arbeitsspeicherrandom access memory
- DD
- HintergrundspeicherBackground memory
- LocationLocation
- Speicherstellememory location
- LOGLOG
- Datenblöckedata blocks
- FCWRITEFCWRITE
- Speicherprogrammmemory program
- SPSTSPST
- Speicherstellenlocations
- ABDABD
- DateianfangsbereichFile initial region
- ABBABB
- BlockanfangsbereichBlock starting area
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP02010038A EP1361515A1 (en) | 2002-05-06 | 2002-05-06 | Method and system for database backup |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP02010038A EP1361515A1 (en) | 2002-05-06 | 2002-05-06 | Method and system for database backup |
Publications (1)
Publication Number | Publication Date |
---|---|
EP1361515A1 true EP1361515A1 (en) | 2003-11-12 |
Family
ID=29225605
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP02010038A Withdrawn EP1361515A1 (en) | 2002-05-06 | 2002-05-06 | Method and system for database backup |
Country Status (1)
Country | Link |
---|---|
EP (1) | EP1361515A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100378677C (en) * | 2004-03-19 | 2008-04-02 | 株式会社日立制作所 | A replicated database system and device executing log data transfer synchronously and database data transfer asynchronously |
EP2006772A1 (en) * | 2007-06-22 | 2008-12-24 | Software Ag | Database system and method for external backup |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0790558A1 (en) * | 1996-02-06 | 1997-08-20 | Telefonaktiebolaget Lm Ericsson | Method and system for fast recovery of a primary store database |
US5668991A (en) * | 1994-03-31 | 1997-09-16 | International Computers Limited | Database management system |
-
2002
- 2002-05-06 EP EP02010038A patent/EP1361515A1/en not_active Withdrawn
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5668991A (en) * | 1994-03-31 | 1997-09-16 | International Computers Limited | Database management system |
EP0790558A1 (en) * | 1996-02-06 | 1997-08-20 | Telefonaktiebolaget Lm Ericsson | Method and system for fast recovery of a primary store database |
Non-Patent Citations (2)
Title |
---|
HÄRDER T., RAHM E.: "Datenbanksysteme Konzepte und Techniken der Implementierung", SPRINGER, 31.03.1999, XP002219227 * |
HÄRDER T., RAHM E.: "Datenbansysteme Konzepte und Techniken der Implementierung", SPRINGER, 31.03.1999, XP002219228 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100378677C (en) * | 2004-03-19 | 2008-04-02 | 株式会社日立制作所 | A replicated database system and device executing log data transfer synchronously and database data transfer asynchronously |
EP2006772A1 (en) * | 2007-06-22 | 2008-12-24 | Software Ag | Database system and method for external backup |
CN101329688B (en) * | 2007-06-22 | 2012-12-05 | 软件股份公司 | Database system and method for external backup |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE69432895T2 (en) | RECOVERY OF USER SITE STORAGE IN A MOBILE RADIO TELEPHONE ARRANGEMENT | |
EP0525432B1 (en) | Method of changing system configuration data in a telecommunications exchange system | |
DE4125389C1 (en) | ||
DE2624082A1 (en) | PROCEDURE AND ARRANGEMENT FOR CIRCULATING SERVICE INFORMATION | |
DE19535546B4 (en) | Method for operating a real-time computer system controlled by a real-time operating system | |
WO2002033550A2 (en) | Device and method for data mirroring | |
EP0651536A2 (en) | Method for reestablishing the original sequence for ATM cells | |
DE19827637A1 (en) | Backup method for operating data of a network element and control device for a network element | |
DE2703559A1 (en) | COMPUTER SYSTEM | |
DE19803697A1 (en) | Software update | |
EP0517268B1 (en) | Method for load distribution in communication systems | |
DE19826091A1 (en) | Method for securely changing data stored in a database, database system and network element equipped with it | |
EP1361515A1 (en) | Method and system for database backup | |
EP1586200A1 (en) | Method for recording video/audio data in a network | |
EP0905954A2 (en) | Telephone answering machine and method for recording a digital audio signal | |
EP0455238A2 (en) | Method for increasing the utilisation period of information carriers with EEPROM | |
DE2828841C3 (en) | Circuit arrangement for telecommunications switching systems, in particular telephone switching systems, with common control units and memories assigned to them | |
DE69829909T2 (en) | Dialing from the active station in a secure information processing system | |
DE2629800A1 (en) | CIRCUIT ARRANGEMENT FOR RECOVERY AFTER A MALFUNCTION OF THE PROCESSOR MEMORY IN A TIME MULTIPLEX MESSAGE BROADCING SYSTEM | |
EP3416353B1 (en) | Method for improved operation of a telecommunications network, telecommunications network, computer program and computer program product | |
DE2752557C2 (en) | ||
DE3022853C2 (en) | ||
DE19916632A1 (en) | Procedure to hold ready reports in processor controlled management unit of communication network | |
WO2002078363A1 (en) | Method for the selective and collective transmission of messages in a tmn network | |
WO2006074869A1 (en) | Data storage system and method for operation thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AT BE CH CY DE DK ES FI FR GB GR IE IT LI LU MC NL PT SE TR |
|
AX | Request for extension of the european patent |
Extension state: AL LT LV MK RO SI |
|
AKX | Designation fees paid | ||
REG | Reference to a national code |
Ref country code: DE Ref legal event code: 8566 |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION IS DEEMED TO BE WITHDRAWN |
|
18D | Application deemed to be withdrawn |
Effective date: 20040512 |