CN1043094C - 数据库存储空间最优化的方法 - Google Patents

数据库存储空间最优化的方法 Download PDF

Info

Publication number
CN1043094C
CN1043094C CN93120751A CN93120751A CN1043094C CN 1043094 C CN1043094 C CN 1043094C CN 93120751 A CN93120751 A CN 93120751A CN 93120751 A CN93120751 A CN 93120751A CN 1043094 C CN1043094 C CN 1043094C
Authority
CN
China
Prior art keywords
database
target
area
data
primary memory
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.)
Expired - Lifetime
Application number
CN93120751A
Other languages
English (en)
Other versions
CN1092887A (zh
Inventor
B·E·S·拉松
I·M·桑谢斯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Telefonaktiebolaget LM Ericsson AB
Original Assignee
Telefonaktiebolaget LM Ericsson AB
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Telefonaktiebolaget LM Ericsson AB filed Critical Telefonaktiebolaget LM Ericsson AB
Publication of CN1092887A publication Critical patent/CN1092887A/zh
Application granted granted Critical
Publication of CN1043094C publication Critical patent/CN1043094C/zh
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/901Indexing; Data structures therefor; Storage structures
    • G06F16/9017Indexing; Data structures therefor; Storage structures using directory or table look-up
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/953Organization of data
    • Y10S707/955Object-oriented
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10TECHNICAL SUBJECTS COVERED BY FORMER USPC
    • Y10STECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y10S707/00Data processing: database and file management or data structures
    • Y10S707/99951File or database maintenance
    • Y10S707/99952Coherency, e.g. same view to multiple users
    • Y10S707/99954Version management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Quality & Reliability (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Electrically Operated Instructional Devices (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

当往主存储器中存入后备数据时,以下列方式使存储空间达到最佳状态;只在主存储器的存储单元中存储相同的目标复制品,且使数据库能存取后备用(4)中的目标。
更具体地说,在主存储器的后备区(4)中只存储那些自最近后备操作以来未经更新的目标,在数据库区(2)中只存储经更新的目标。后备区受到写保护。

Description

数据库存储空间最优化的方法
本发明涉及一种在主存储器中存储后备数据的方法。
主存储后备操作是在给定时刻和所有的目标处在一致状态时冻结数据库中的全部数据。这种后备操作可以按许多不同的方式进行,这视乎有效利用率方面的要求和差错容限特性而定。若数据库由配备有后备存储器的容错计算机组成,则后备擞据和记录可以存入同一台计算机中。若计算机不是容错计算机因而在出差错时必须关机,则后备数据和记录可以存入两台冗余计算机中。
数据库通常具有复原功能,担负起使存储在数据库中的数据始终如一(即在不同更新过程中处在预期的状态)的任务。
为了能从写错数据库的差错状态恢复过来,需要存储后备复制品。后备数据含有所有能使数据库进入制造后备复制品时所存在的同一稳定状态所需要的信息。使数据库重新进入有关状态需要来自记录的信息。
使擞据库恢复原状的一般对策概括起来如下:
当数据库因严重差错而变得不一致时,复原功能就命令数据库再装入最新的后备复制品中重新启动。为了能恢复到更恰当的状态,这时可以用记录中存储的信息(即存储在存储器中早先各项操作的档案)更新数据库,复原功能即利用该记录重复最新收到的事务处理,即数据库中各目标的处理。这里目标一词具有数据处理技术中传统上采用的意义。简单地说,目标是说明其有关的信息就如何处理的信息包。目标按其应用范围分成许多等级,并用目标个性加以识别。有关目标一词及其使用方法更详细的说明,可参看例如Peter Coad和EdwardYourdon写的跃旦出版社计算机丛书《从目标出发进行的分析》(Object-Oriented Analysis)一书。
更新某一目标时,先将原来的目标复制出来并加以锁定,以防其它使用数据库的人对该数据库进行更新。履行所委托的事务之后,才切换到经更新的副本并解除上述锁定,这就是说,程序或操作人员所使用的事务操作表明,目前的事务已经结束,但其作用仍然保持。
重新装入数据库再启动时,副本目标或那些无需后备处理的目标都被清除掉。
对有效利用率的各项高要求可以通过在计算机的主存储器中存储最新形式的后备数据和记录来满足。较久的后备复制品用后备档案库存储器存储起来。
由于存储技术的迅速发展,现在可以以合理的价格获取大型主存储器数据库。但需要在数据库中存储大量数据时,重要的一点还是要节约存储空间。作为数据库存放在同一计算机的后备数据和记录可能起码对存储器的要求提高例如两倍。
现行解决主存储器后备操作问题的办法通常是基于这样的概念,即既可以在数据库区也可以在后备区找到数据库的所有的目标。这也适用于那些在各后备操作期之间没有改变的那些目标数据。
从世界知识产权组织文献WO84/00426知道,不同关系的复制品可以存入不同的数据库位置。可以设想,把不同的关系规定为不同的目标。也有存取块来确定数据库位置及其所在点。更新时,用新的存取块将新关系复制品(目标)存入新的数据库位置。这样,虽然后备操作中使用了某一存取结构,但并未使用从后备区复制的整个存取结构将经收集的数据库重新存到数据库区,以便用那些存入记录中的改变更新数据库区。
此外,从欧洲专利444,544还知道更新或恢复数据的作法。在此情况下,用多个指示器来指出不同的数据范围。各指示器是更新时使用的。因此,该专利公开了用存取结构转移所指示的目标以便进行更新的作法,但没有谈到从后备区将存取结构转移到数据库区,以便随存储在记录中的改变更新数据库区。
本发明的目的是提供本说明书开端所述的那一种方法,用该方法使数据库中主存储器的使用过程达到最佳状态。
按照本发明,上述目的是这样达到的:只将各相同的目标复制品存入主存储器中的一存储单元,在主存储器的后备区只存储自最近后备操作以来未经更新的那些目标,并只将经更新的目标存入数据库,
在再装入数据库时只将存取结构从后备区复制到数据库区,
而且使数据库能在后备区中存取目标。
本发明有许多重要的好处。
由于只有那些自最近后备操作以来改变过的目标存入数据库区中,因而节约了存储空间,从而降低了计算机的制造成本。
再装入时,由于所有经改变的目标存入数据库区中,因而可以获得特性增益而不致丢失后备数据。各目标是在数据库区中擦拭掉的,只有存取结构从后备区复制到数据库区,且读取记录。
可以对后备数据进行写保护。
现在参看附图更详细地说明本发明的内容。附图中:
图1示意示出了公知的解决主存储器后备问题的办法;
图2以图1同样的方式示意示出了本发明的原理。
图1旨在表示公知的解决办法,图中分成两部分:部分2和部分4,分别示意表示计算机主存储器中的数据库区和后备区。相应的目录6和8与各区有关,目录中列有目标连同相关的级别和关键词一览表。在知道有关的级别和关键词的情况下,分别借助于指示器10和12可以选取待处理的目标。从图中可以看到,各目录包括例如四个目标A、B、C、D。最近后备操作以来经过更新的那些目标,图中用角撇号表示。目标A和C自最近后备操作以来已更新为A’和C’,目标B和D则没有更新过。
图1示出了公知解决办法的特点,即数据区2和后备区4一起含有全部目标的复制副本,甚至包括那些在两次后备操作之间未改变的目标。
图2中那些与图1中相当的元件用同样的符号表示。图2示出了本发明的特点,即相同的目标复制品只存入主存储器中的一个存储单元中,且数据库是为存取后备区中的各目标而设的。这样,不同的目标复制品就存储在主存储器的不同存储单元中。在最佳实施例的情况下,只有那些自最近后备操作以来已更新的目标存入数据库2中,而只有未更新的目标存入后备区4中。改变数据库的目的是要指出后备区4中那些受到写保护但可以读出数据的目标。
更具体地说,只有经更新的目标A’和C’存入数据库区2中,目标A、B、C和D则存入后备区4中,以及改变数据库,以便指出后备区4中的目标B和D,分别如箭头14和16所示。

Claims (3)

1.一种把后备数据存入主存储器中的方法,其特征在于,
通过只将那些自最后备操作以来未经更新的目标存入后备区,而只将相同的目标复制品存入主存储器中的一个存储单元中,同时在数据库区只存储经过更新的目标;
再装数据库时,只将存取结构从后备区复制到数据库区;且
使数据库能存取后备区中的目标。
2.根据权利要求1的方法,其特征在于,对后备区进行写保护。
3.根据权利要求1或2的方法,其特征在于,随着记录中存储的改变而更新数据库区。
CN93120751A 1992-12-08 1993-12-08 数据库存储空间最优化的方法 Expired - Lifetime CN1043094C (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
SE9203692-0 1992-12-08
SE9203692A SE500599C2 (sv) 1992-12-08 1992-12-08 Sätt att optimera minnesutrymme i en databas

Publications (2)

Publication Number Publication Date
CN1092887A CN1092887A (zh) 1994-09-28
CN1043094C true CN1043094C (zh) 1999-04-21

Family

ID=20388061

Family Applications (1)

Application Number Title Priority Date Filing Date
CN93120751A Expired - Lifetime CN1043094C (zh) 1992-12-08 1993-12-08 数据库存储空间最优化的方法

Country Status (15)

Country Link
US (1) US5745905A (zh)
EP (1) EP0673527B1 (zh)
JP (1) JPH08504528A (zh)
KR (1) KR100280221B1 (zh)
CN (1) CN1043094C (zh)
AU (1) AU671513B2 (zh)
BR (1) BR9307609A (zh)
DE (1) DE69324501T2 (zh)
DK (1) DK0673527T3 (zh)
ES (1) ES2130395T3 (zh)
FI (1) FI105858B (zh)
GR (1) GR3030747T3 (zh)
NO (1) NO310488B1 (zh)
SE (1) SE500599C2 (zh)
WO (1) WO1994014124A1 (zh)

Families Citing this family (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100378725B1 (ko) * 1994-07-26 2003-06-12 소니 가부시끼 가이샤 정보제공시스템
FI98684C (fi) * 1994-08-08 1997-07-25 Nokia Telecommunications Oy Menetelmä tietoliikennelaitteen tuottamien tiedostojen siirtämiseksi massamuistista jälkikäsittelyjärjestelmän muistiin
JPH0869404A (ja) * 1994-08-29 1996-03-12 Fujitsu Ltd データのバックアップ方法及びそれを利用したデータ処理装置
US6125371A (en) * 1997-08-19 2000-09-26 Lucent Technologies, Inc. System and method for aging versions of data in a main memory database
US6195695B1 (en) * 1998-10-27 2001-02-27 International Business Machines Corporation Data processing system and method for recovering from system crashes
US6393419B1 (en) 1999-02-08 2002-05-21 Telefonaktiebolaget Lm Ericsson (Publ) Multipoint database synchronization protocol to avoid data corruption
CA2304353A1 (en) * 2000-04-06 2001-10-06 Stephen Murphy Telephone call manager
US7000231B1 (en) * 2000-09-22 2006-02-14 Hewlett-Packard Development Company, L.P. Method of manufacturing operating system master template, method of manufacturing a computer entity and product resulting therefrom, and method of producing a production version of an operating system
GB0211179D0 (en) * 2002-05-16 2002-06-26 Ibm A method,apparatus and computer program for reducing the amount of data checkpointed
US7318076B2 (en) * 2003-01-22 2008-01-08 Intelitrac, Inc. Memory-resident database management system and implementation thereof
US7233947B2 (en) * 2003-05-22 2007-06-19 Microsoft Corporation Timestamping in databases
US8185555B2 (en) 2004-10-22 2012-05-22 International Business Machines Corporation Model extension framework
US20060101091A1 (en) * 2004-10-22 2006-05-11 International Business Machines Corporation Recovering references in an extended model
KR100689762B1 (ko) * 2005-01-25 2007-03-08 심상엽 데이터베이스 시스템 및 그 데이터베이스 시스템의데이터베이스 컴포넌트를 메인 메모리에 저장하는 시스템및 방법
US20070028144A1 (en) * 2005-07-29 2007-02-01 Stratus Technologies Bermuda Ltd. Systems and methods for checkpointing
EP1934719A2 (en) * 2005-09-20 2008-06-25 Sterna Technologies (2005) Ltd. A method and system for managing data and organizational constraints
US8055096B2 (en) * 2006-05-10 2011-11-08 Research In Motion Limited Method and system for incremental patching of binary files
US7921258B1 (en) * 2006-12-14 2011-04-05 Microsoft Corporation Nonvolatile disk cache for data security
KR101116053B1 (ko) * 2010-03-31 2012-02-22 주식회사 오즈네트웍스 파일 백업 방법과 상기 방법을 수행할 수 있는 장치들
KR101110702B1 (ko) * 2010-04-06 2012-02-17 주식회사 오즈네트웍스 다중 백업 방법과 상기 방법을 수행할 수 있는 장치들
US9251002B2 (en) 2013-01-15 2016-02-02 Stratus Technologies Bermuda Ltd. System and method for writing checkpointing data
CN104572339A (zh) * 2013-10-17 2015-04-29 捷达世软件(深圳)有限公司 基于分布式文件系统的数据备份还原系统及方法
WO2015102875A1 (en) 2013-12-30 2015-07-09 Stratus Technologies Bermuda Ltd. Checkpointing systems and methods of using data forwarding
US9652338B2 (en) 2013-12-30 2017-05-16 Stratus Technologies Bermuda Ltd. Dynamic checkpointing systems and methods
ES2652262T3 (es) 2013-12-30 2018-02-01 Stratus Technologies Bermuda Ltd. Método de retardar puntos de comprobación inspeccionando paquetes de red

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4635189A (en) * 1984-03-01 1987-01-06 Measurex Corporation Real-time distributed data-base management system
US5086502A (en) * 1989-07-11 1992-02-04 Intelligence Quotient International Limited Method of operating a data processing system

Family Cites Families (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4627019A (en) * 1982-07-08 1986-12-02 At&T Bell Laboratories Database management system for controlling concurrent access to a database
US4686620A (en) * 1984-07-26 1987-08-11 American Telephone And Telegraph Company, At&T Bell Laboratories Database backup method
US5043871A (en) * 1986-03-26 1991-08-27 Hitachi, Ltd. Method and apparatus for database update/recovery
US4819156A (en) * 1986-06-13 1989-04-04 International Business Machines Corporation Database index journaling for enhanced recovery
US4987533A (en) * 1988-05-05 1991-01-22 International Business Machines Corporation Method of managing data in a data storage hierarchy and a data storage hierarchy therefor with removal of the least recently mounted medium
US4974197A (en) * 1988-05-05 1990-11-27 International Business Machines Batching data objects for recording on optical disks with maximum object count
US5089958A (en) * 1989-01-23 1992-02-18 Vortex Systems, Inc. Fault tolerant computer backup system
US5133065A (en) * 1989-07-27 1992-07-21 Personal Computer Peripherals Corporation Backup computer program for networks
US5276860A (en) * 1989-12-19 1994-01-04 Epoch Systems, Inc. Digital data processor with improved backup storage
US5276867A (en) * 1989-12-19 1994-01-04 Epoch Systems, Inc. Digital data storage system with improved data migration
JP2778786B2 (ja) * 1990-03-02 1998-07-23 富士通株式会社 データ更新・復元処理方式
US5202982A (en) * 1990-03-27 1993-04-13 Sun Microsystems, Inc. Method and apparatus for the naming of database component files to avoid duplication of files
US5129082A (en) * 1990-03-27 1992-07-07 Sun Microsystems, Inc. Method and apparatus for searching database component files to retrieve information from modified files
US5201044A (en) * 1990-04-16 1993-04-06 International Business Machines Corporation Data processing method for file status recovery includes providing a log file of atomic transactions that may span both volatile and non volatile memory
US5317728A (en) * 1990-09-07 1994-05-31 International Business Machines Corporation Storage management of a first file system using a second file system containing surrogate files and catalog management information
JP3108090B2 (ja) * 1990-11-30 2000-11-13 株式会社リコー フアイリングシステムのデータ管理方法および装置
US5301286A (en) * 1991-01-02 1994-04-05 At&T Bell Laboratories Memory archiving indexing arrangement
US5317731A (en) * 1991-02-25 1994-05-31 International Business Machines Corporation Intelligent page store for concurrent and consistent access to a database by a transaction processor and a query processor
US5313631A (en) * 1991-05-21 1994-05-17 Hewlett-Packard Company Dual threshold system for immediate or delayed scheduled migration of computer data files
US5347653A (en) * 1991-06-28 1994-09-13 Digital Equipment Corporation System for reconstructing prior versions of indexes using records indicating changes between successive versions of the indexes
US5379398A (en) * 1992-04-20 1995-01-03 International Business Machines Corporation Method and system for concurrent access during backup copying of data
US5379412A (en) * 1992-04-20 1995-01-03 International Business Machines Corporation Method and system for dynamic allocation of buffer storage space during backup copying
US5403639A (en) * 1992-09-02 1995-04-04 Storage Technology Corporation File server having snapshot application data groups

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4635189A (en) * 1984-03-01 1987-01-06 Measurex Corporation Real-time distributed data-base management system
US5086502A (en) * 1989-07-11 1992-02-04 Intelligence Quotient International Limited Method of operating a data processing system

Also Published As

Publication number Publication date
ES2130395T3 (es) 1999-07-01
DE69324501D1 (de) 1999-05-20
AU671513B2 (en) 1996-08-29
CN1092887A (zh) 1994-09-28
EP0673527B1 (en) 1999-04-14
BR9307609A (pt) 1999-08-31
KR100280221B1 (ko) 2001-02-01
WO1994014124A1 (en) 1994-06-23
DK0673527T3 (da) 1999-10-25
NO952201L (no) 1995-06-02
JPH08504528A (ja) 1996-05-14
SE9203692L (sv) 1994-06-09
AU5663194A (en) 1994-07-04
NO952201D0 (no) 1995-06-02
NO310488B1 (no) 2001-07-09
DE69324501T2 (de) 1999-08-12
US5745905A (en) 1998-04-28
SE9203692D0 (sv) 1992-12-08
SE500599C2 (sv) 1994-07-25
GR3030747T3 (en) 1999-11-30
FI952791A (fi) 1995-06-07
EP0673527A1 (en) 1995-09-27
KR950704748A (ko) 1995-11-20
FI952791A0 (fi) 1995-06-07
FI105858B (fi) 2000-10-13

Similar Documents

Publication Publication Date Title
CN1043094C (zh) 数据库存储空间最优化的方法
Verhofstad Recovery techniques for database systems
CN100412862C (zh) 具备文件管理功能的文件系统及文件管理方法
US6460048B1 (en) Method, system, and program for managing file names during the reorganization of a database object
CN101501623B (zh) 感知文件系统的块存储系统、装置和方法
US7774565B2 (en) Methods and apparatus for point in time data access and recovery
EP0774721B1 (en) Computer apparatus and method for merging system deltas
EP0733235B1 (en) Incremental backup system
US6732123B1 (en) Database recovery to any point in time in an online environment utilizing disaster recovery technology
CN100445998C (zh) 事务文件系统
EP1466246B1 (en) Selective data replication system and method
CA2933790C (en) Apparatus and method for creating a real time database replica
CN100403268C (zh) 对应用程序透明的自治可用性
US7036043B2 (en) Data management with virtual recovery mapping and backward moves
US6061769A (en) Data set backup in a shared environment
EP0501160A2 (en) Intelligent page store for concurrent and consistent access to a database by a transaction processor and a query processor
US8015155B2 (en) Non-disruptive backup copy in a database online reorganization environment
CN101137981A (zh) 用于管理文件系统中的内容存储的方法和装置
US20060075294A1 (en) System and Method for Reliably Storing Data and Providing Efficient Incremental Backup and Asynchronous Mirroring by Preferentially Handling New Data
US12038873B2 (en) Database management system
EP1461700A2 (en) Appliance for management of data replication
US20080033910A1 (en) Dynamic checkpointing for distributed search
Sauer Modern techniques for transaction-oriented database recovery
US7191360B2 (en) Method of data backup and recovery
Graefe Instant recovery for data center savings

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CX01 Expiry of patent term

Expiration termination date: 20131208

Granted publication date: 19990421