Application of RMAN Backup Technology in the Agricultural Products Wholesale Market System

Similar documents
Fault-Tolerant Storage Servers for the Databases of Redundant Web Servers in a Computing Grid

Tacked Link List - An Improved Linked List for Advance Resource Reservation

Design and Implementation of Agro-technical Extension Information System Based on Cloud Storage

Zigbee Wireless Sensor Network Nodes Deployment Strategy for Digital Agricultural Data Acquisition

Quality of Service Enhancement by Using an Integer Bloom Filter Based Data Deduplication Mechanism in the Cloud Storage Environment

Visualization of Virtual Plants Growth Based on Open L-System

Research on the Knowledge Based Parameterized CAD System of Wheat and Rice Combine Chassis

Recommendation-Based Trust Model in P2P Network Environment

A Resource Discovery Algorithm in Mobile Grid Computing based on IP-paging Scheme

BoxPlot++ Zeina Azmeh, Fady Hamoui, Marianne Huchard. To cite this version: HAL Id: lirmm

Linked data from your pocket: The Android RDFContentProvider

Analysis and Implementation of Embedded SNMP Agent

Multimedia CTI Services for Telecommunication Systems

Linux: Understanding Process-Level Power Consumption

The Study and Implementation of Text-to-Speech System for Agricultural Information

Change Detection System for the Maintenance of Automated Testing

Mokka, main guidelines and future

A Voronoi-Based Hybrid Meshing Method

The New Territory of Lightweight Security in a Cloud Computing Environment

Blind Browsing on Hand-Held Devices: Touching the Web... to Understand it Better

Relabeling nodes according to the structure of the graph

LaHC at CLEF 2015 SBS Lab

Application of Artificial Neural Network to Predict Static Loads on an Aircraft Rib

DANCer: Dynamic Attributed Network with Community Structure Generator

Every 3-connected, essentially 11-connected line graph is hamiltonian

AgOnt: Ontology for Agriculture Internet of Things

Service Reconfiguration in the DANAH Assistive System

Setup of epiphytic assistance systems with SEPIA

Scalewelis: a Scalable Query-based Faceted Search System on Top of SPARQL Endpoints

An Implementation of a Paper Based Authentication Using HC2D Barcode and Digital Signature

Real-Time and Resilient Intrusion Detection: A Flow-Based Approach

Spectral Active Clustering of Remote Sensing Images

A Practical Evaluation Method of Network Traffic Load for Capacity Planning

Open Digital Forms. Hiep Le, Thomas Rebele, Fabian Suchanek. HAL Id: hal

KeyGlasses : Semi-transparent keys to optimize text input on virtual keyboard

An FCA Framework for Knowledge Discovery in SPARQL Query Answers

Malware models for network and service management

A Logical Pattern for Integrating Business Intelligence into Information Systems Design

Representation of Finite Games as Network Congestion Games

ASAP.V2 and ASAP.V3: Sequential optimization of an Algorithm Selector and a Scheduler

A 64-Kbytes ITTAGE indirect branch predictor

How to simulate a volume-controlled flooding with mathematical morphology operators?

Regularization parameter estimation for non-negative hyperspectral image deconvolution:supplementary material

Comparator: A Tool for Quantifying Behavioural Compatibility

Study on Feebly Open Set with Respect to an Ideal Topological Spaces

Full Text Search Engine as Scalable k-nearest Neighbor Recommendation System

FIT IoT-LAB: The Largest IoT Open Experimental Testbed

YANG-Based Configuration Modeling - The SecSIP IPS Case Study

HySCaS: Hybrid Stereoscopic Calibration Software

Application-Aware Protection in DWDM Optical Networks

QuickRanking: Fast Algorithm For Sorting And Ranking Data

Pipeline and Data Parallel Hybrid Indexing Algorithm for Multi-core Platform

X-Kaapi C programming interface

Simulations of VANET Scenarios with OPNET and SUMO

SIM-Mee - Mobilizing your social network

Taking Benefit from the User Density in Large Cities for Delivering SMS

Assisted Policy Management for SPARQL Endpoints Access Control

From Microsoft Word 2003 to Microsoft Word 2007: Design Heuristics, Design Flaws and Lessons Learnt

BugMaps-Granger: A Tool for Causality Analysis between Source Code Metrics and Bugs

Construction Scheme for Cloud Platform of NSFC Information System

Prototype Selection Methods for On-line HWR

Very Tight Coupling between LTE and WiFi: a Practical Analysis

Implementing Forensic Readiness Using Performance Monitoring Tools

A N-dimensional Stochastic Control Algorithm for Electricity Asset Management on PC cluster and Blue Gene Supercomputer

Cloud My Task - A Peer-to-Peer Distributed Python Script Execution Service

UsiXML Extension for Awareness Support

Modularity for Java and How OSGi Can Help

Continuous Control of Lagrangian Data

An Efficient Numerical Inverse Scattering Algorithm for Generalized Zakharov-Shabat Equations with Two Potential Functions

Open Source Software Developer and Project Networks

Syrtis: New Perspectives for Semantic Web Adoption

MUTE: A Peer-to-Peer Web-based Real-time Collaborative Editor

An Experimental Assessment of the 2D Visibility Complex

Comparison of spatial indexes

Branch-and-price algorithms for the Bi-Objective Vehicle Routing Problem with Time Windows

Monitoring Air Quality in Korea s Metropolises on Ultra-High Resolution Wall-Sized Displays

Structuring the First Steps of Requirements Elicitation

Moveability and Collision Analysis for Fully-Parallel Manipulators

Technical Overview of F-Interop

QAKiS: an Open Domain QA System based on Relational Patterns

IntroClassJava: A Benchmark of 297 Small and Buggy Java Programs

The Connectivity Order of Links

Flexible Embedded Telemetry System for Agriculture and Aquaculture

Teaching Encapsulation and Modularity in Object-Oriented Languages with Access Graphs

On Code Coverage of Extended FSM Based Test Suites: An Initial Assessment

Developing interfaces for the TRANUS system

A Component Data-Focused Method to Build the Executable Model for a DoDAF Compliant Architecture

Search-Based Testing for Embedded Telecom Software with Complex Input Structures

Kernel perfect and critical kernel imperfect digraphs structure

Overlay of Multicast Service in WDM-PON Based on Dynamic Wavelength Reflection Scheme

YAM++ : A multi-strategy based approach for Ontology matching task

Catalogue of architectural patterns characterized by constraint components, Version 1.0

Multi-atlas labeling with population-specific template and non-local patch-based label fusion

A Recovery Approach for SQLite History Recorders from YAFFS2

Detecting Anomalies in Netflow Record Time Series by Using a Kernel Function

NP versus PSPACE. Frank Vega. To cite this version: HAL Id: hal

Natural Language Based User Interface for On-Demand Service Composition

Mapping classifications and linking related classes through SciGator, a DDC-based browsing library interface

The optimal routing of augmented cubes.

COM2REACT: V2V COMMUNICATION FOR COOPERATIVE LOCAL TRAFFIC MANAGEMENT

Transcription:

Application of RMAN Backup Technology in the Agricultural Products Wholesale Market System Ping Yu, Nan Zhou To cite this version: Ping Yu, Nan Zhou. Application of RMAN Backup Technology in the Agricultural Products Wholesale Market System. Daoliang Li; Yingyi Chen. 7th International Conference on Computer and Computing Technologies in Agriculture (CCTA), Sep 2013, Beijing, China. Springer, IFIP Advances in Information and Communication Technology, AICT-420 (Part II), pp.301-308, 2014, Computer and Computing Technologies in Agriculture VII. <10.1007/978-3-642-54341-8_32>. <hal-01220841> HAL Id: hal-01220841 https://hal.inria.fr/hal-01220841 Submitted on 27 Oct 2015 HAL is a multi-disciplinary open access archive for the deposit and dissemination of scientific research documents, whether they are published or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers. L archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d enseignement et de recherche français ou étrangers, des laboratoires publics ou privés. Distributed under a Creative Commons ttributionttribution 4.0 International License

Application of RMAN Backup Technology in the Agricultural Products Wholesale Market System Ping Yu 1,2,a, Nan Zhou 1,b 1 Network Center, China Agricultural University, Beijing 100083, China; 2 School of Economics & Management, China Agricultural University, Beijing 100083, China; a yuping@cau.edu.cn, b zhnan@cau.edu.cn Abstract. Based on Oracle Database RMAN backup technology, this paper designs and implements a database backup subsystem for the agricultural products wholesale market system. Through full backup, incremental backups and cumulative incremental backup, it ensures the timeliness,integrity and efficiency of data recovery, when data mistake happens in the agricultural products wholesale market system database or the database collapses. Keywords: agricultural products wholesale market system; Oracle database backup; RMAN; 1 Introduction The development of computer technology and network technology makes database technology to be widely applied in enterprise management information systems, e- commerce systems, e-government systems and other application systems. With the continuous propelling of informatization, the amount of data in application systems grows sustainably. Data security issue in database systems have become increasingly important. RMAN is Oracle tools which is used to backup, restore and restore Oracle database. RMAN can only be used in ORACLE8 or later versions. Researchers have applied Oracle backup technology to different areas. ZHANG Yun-fan discusses the application of backup and recovery technology of Oracle database in oil field exploration project [1]. Feng ke et al. gives a brief summary for database administrators who pay more attentions to the usability of backup data usability and auto-monitoring technique, the technique is applied in database backup of university and proved to be effective [2]. ZHU Youcun et al. realized rapid backup and recovery based on oracle 10 and applied it in the database of hospital [3]. Following the database backup technology of Daqing logging production database wag still in the stage of the logical export manually and has not yet had an effective data backup technology to ensure data security, LIU Yubin uses RMAN backup technology on the features of the production database to deploy a perfect backup program in practice [4]. The agricultural products wholesale market system database has stored the price information and quality testing data of agricultural products. The safe storage of these data plays a crucial role in price management, quality inspection and macro decision-

making of the agricultural products wholesale market. Therefore, when it appears that data is accidentally deleted or database crashes, the requirement for its data recovery is zero-loss and to recovery to a designated time point. In addition, as the amount of data in this database is very large, and the allowed downtime of this system is 10 minutes, it requires the backup and recovery efficiency is as high as possible. Common logical backup will cause some data cannot be recovered, and the recovery time is far from the actual needs, therefore it needs to design a real-time, fully synchronized and strategic reasonable data backup subsystem. RMAN can back up the entire database or database components, such as table spaces, data files, control files, archive files, and Spfile parameter file [5]. RMAN also allows you to conduct block-level incremental backup, incremental RMAN backups are time and space efficient because they only backup those data blocks which have changed since the last backup [6]. Therefore, it can well meet the data recovery needs of the agricultural products wholesale market system, whether from the respect of real-time or recovery efficiency. In this paper, we used Oracle Database RMAN backup technology to design and implement a backup subsystem for the agricultural products wholesale market system. 2 Agricultural Products Wholesale Market System The agricultural products wholesale market system is the first phase of Golden Agriculture Project, it uses the agricultural products wholesale market as the main datasource to collect the prices and the quality inspection data of agricultural products, it goes through data collection segment, the data processing segment, data analysis and display segment. The technical architecture of the agricultural products wholesale market system is shown as Fig.1. As shown in Figure 1, System database includes portal database, the wholesale market system database and components database, it is an important support for the running of the agricultural product wholesale market system, as all of the system s data changes have been recorded in the database, if these data is lost, it will directly affect the normal running of the agricultural products wholesale business, so how to ensure data not to be lost, is essential. So it is important to choose a reasonable backup mode and develop a reasonable backup strategy to design and implement the agricultural products wholesale market system backup subsystem, so as to ensure the data not to be lost. We choose Oracle10g for windows to meet the system s requirement for the capacity, response speed, database security, stability and scalability of database.

Users Single Sign-On National Agricultural Comprehensive portal Unified user management component Full-text search component Content Management Component Data exchange component Unified Messaging Service Component Service Network for Price Information Of Wholesale Market Reporting System For Price Information Of Wholesale Market Master data management component Common Reporting component Messaging middleware components Portal Database Wholesale Market system database components database System Database Fig. 1. The technical architecture of the agricultural products wholesale market system 3 Database Backup Subsystem Based on RMAN Technology 3.1 The Architecture of RMAN Technology The architecture of RMAN can be expressed in Fig.2 [7].

Fig. 2. The architecture of RMAN Through the above architecture diagram, we can know oracle RMAN is actually through the queries on the basis table of target database and the system views to conduct online hot backup for the database data files,control files and spfile files and so on, so as to achieve the recovery of target database after a crash [8]. In addition, in order to avoid bringing the performance loss to the operating system by backing up all files in each backup, RMAN also provides a backup of the archive logs, so that we can develop an appropriate strategy, namely conducting incremental archive logs backup after full backup. When the database crashes, we first restore full backup, and then apply the incremental backup archive to achieve full recovery or the specified point in time recovery. At backup time, RMAN will store the backup information of each time in the recovery catalog database, and establish a connection channel, and then through media management, transfer the backup sets to the backup media. When restoring database, RMAN will search in the recovery catalog database according to our specified conditions, when it finds the corresponding backup piece, it will use the oracle recovery package to conduct the corresponding recovery. 3.2 The Design of Database Backup Subsystem By analyzing the characteristics of the agricultural products wholesale market system, we know that the amount of data in the database will be very large, and every Monday to Friday is the peak of the business, the data volume has increased significantly more than on Saturday and Sunday; the importance of its data is very high, it does not allow missing data and its recovery time should be as short as possible. Therefore, its backup strategy is as follows: Choose full backups on Sunday to reduce impact of full

backups on the database performance; the data recovery on Monday, Tuesday will be completed through the full backups on Sunday and the incremental backup on the two days; in order to improve the recovery speed, choose to conduct cumulative incremental backups on Wednesday, the recovery on Wednesday will be completed through the full backups on Sunday and the cumulative incremental backups on Wednesday; the recovery on Thursday, Friday and Saturday will be completed by the full backups on Sunday, the cumulative incremental backups on Wednesday and incremental backups on Thursday, Friday and Saturday. The specific backup strategy is shown in Fig.3. Fig. 3. Backup strategy of database backup subsystem 3.3 The Implementation of Database Backup Subsystem 1. Application preparation Before using RMAN backup for the first time, we need to do some preparatory work, including set the target database to archive database, because RMAN needs the archive log file support when doing the time-based recovery or the full recovery or other recoveries. In addition, we need to create a database and create a table space and user in the database to store the recovery catalog information. These works can be broadly described in Fig.4.

Set the target database archiving mode Create recovery catalog database Modify the environment variable of the host where the recovery catalog database locate on NLS_DATE_LANGUAGE=AMERICAN NLS_DTATE_FORMAT=MON DD YYYY HH24:MI:SS Create RMAN tablespace,users and authorize Fig. 4. Preparation before application 2. The design and implementation of backup and recovery program The full backup program on every Sunday are summarized as below: run { allocate channel 'dev1' type disk ; allocate channel 'dev2' type disk ; allocate channel 'dev3' type disk ; allocate channel 'dev4' type disk ; backup incremental level 0 tag 'dbl0' format '<path>\level0_%u_%p_%c' database skip readonly; sql 'alter system archive log current' ; backup archivelog all delete input; release channel dev1; release channel dev2; release channel dev3; release channel dev4; } The incremental backup program on Monday, Tuesday, Thursday, Friday and Saturday are summarized as below: run { allocate channel 'dev1' type disk ; allocate channel 'dev2' type disk ; allocate channel 'dev3' type disk ; allocate channel 'dev4' type disk ; backup incremental level 2 cumulative tag 'dbl2' format '<path>/level2c_%u_%p_%c' database skip readonly;

sql 'alter system archive log current' ; backup archivelog all delete input; release channel dev1; release channel dev2; release channel dev3; release channel dev4; } The incremental backup program on Wednesday are summarized as below: run { allocate channel 'dev1' type disk ; allocate channel 'dev2' type disk ; allocate channel 'dev3' type disk ; allocate channel 'dev4' type disk ; backup incremental level 1 tag 'dbl2' format '<path>/level2_%u_%p_%c' database skip readonly; sql 'alter system archive log current' ; backup archivelog all delete input; release channel dev1; release channel dev2; release channel dev3; release channel dev4; } These backup program are set to be executed through the timed job system of windows. 3. Backup and recovery joint adjusting After making these preparations, we can officially start using RMAN for data backup. This includes running RMAN Manager to connect to the target database and recovery catalog database, register the target database, synchronize the information between the target database, the directory database, and the backup pieces, distribute and establish channels to a connection, run the script for backup and recovery, and finally release the connecting channels and other steps. These steps can be simplified represented in Fig.5.

Run RMAN Manager Connect the target database and recovery catalog database Establish a connection channel Run the script for full backup, incremental backup and other backup Release the connection channel Fig. 5. The backup and recovery processes of RMAN 5 Test and Run The agricultural products wholesale market system was officially launched in the end of December 2011, its database system was Oracle 10G installed under WINDOWS, and Oracle practical cluster systems was installed to ensure the high availability of the database. The physical structure of its operating environment is shown as Fig.6.

Fig. 6. The structure of database backup subsystem As can be seen from the figure, the database realized Oracle utilities (RAC) via two IBM p690 cluster systems.when there is a data error operation, the data can be restored through the database backup system. After two weeks of installation and commissioning, the data backup functionality has been achieved, and in 2012 we conducted a backup and recovery test, which successfully implement the full database restore and the recovery based on the specified point in time, and ensured zero data loss and the recovery of accidentally deleted data. 6 Conclusion This paper designed and implemented a database backup subsystem based on the Oracle Database RMAN backup technology, and successfully deployed it into the agricultural products wholesale market system, which ensures the security, reliability and recoverability of the back-end database of the system. It is also able to adapt to the security requirement of the slimily system. References 1. Zhang Yun-fan. Backup and Recovery Strategy of Oracle Database [J]. Computer Engineering, 2009, 35(15): 85-87. 2. Feng Ke, Liu Nai-jia, Wang Qian, Li Tie. Research and practice of auto-monitoring for Oracle database backup [J]. Experimental Technology and Management, 2011, 28(4). 3. Zhu You-cun, Luo Dan, Yang Xiao-rong. RMAN Backup, Recovery and optimization Based on oracle 10g [J]. Medical Equipment, 2012, 33(10): 45-46. 4. Liu Yu-bin. The Research and Implementation of Database Backup Program Based on Oracle [J]. Programming Skills&Maintenance, 2009, 14: 025.

5. Freeman R G, Hart M. Oracle9i RMAN backup & recovery [M]. McGraw-Hill/Osborne, 2002. 6. Hart M, Freeman R G. Oracle Database 10g RMAN Backup and Recovery [M]. 2007. 7. Oracle RMAN Pocket Reference [M]. O'Reilly Media, Inc., 2009. 8. Alapati S R, Kuhn D, Nanda A. RMAN recipes for Oracle database 11g: A problem-solution approach [M]. Apress, 2007.