[go: up one dir, main page]

CN105302729A - Storage system testing method based on database application - Google Patents

Storage system testing method based on database application Download PDF

Info

Publication number
CN105302729A
CN105302729A CN201510900687.9A CN201510900687A CN105302729A CN 105302729 A CN105302729 A CN 105302729A CN 201510900687 A CN201510900687 A CN 201510900687A CN 105302729 A CN105302729 A CN 105302729A
Authority
CN
China
Prior art keywords
storage system
database application
database
test
batches
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.)
Pending
Application number
CN201510900687.9A
Other languages
Chinese (zh)
Inventor
王少磊
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.)
IEIT Systems Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201510900687.9A priority Critical patent/CN105302729A/en
Publication of CN105302729A publication Critical patent/CN105302729A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a storage system testing method based on database application, belonging to the field of storage system detection, and aiming at solving the technical problem that in the application of combining with a database, the storage system is abnormal, which is very likely to cause data loss, and huge loss, namely storage system stability is caused. The technical scheme is as follows: the method comprises the following steps: (1) building a database application environment: the storage system to be tested is used, a specific database application environment is built, and the actual implementation environment of a user is simulated, so that the stability problem of the storage system can be exposed as soon as possible under the complex application environment; (2) writing an sql script independently: the test script comprises the steps of creating new users in batches, creating tables in batches, exporting and importing in batches, and verifying the data consistency of the storage system under the application pressure of the database by running the script and observing an Oracle log; (3) a swingbench testing tool; (4) and outputting a test result.

Description

一种基于数据库应用的存储系统测试方法A Storage System Testing Method Based on Database Application

技术领域 technical field

  本发明涉及存储系统检测领域,具体地说是一种基于数据库应用的存储系统测试方法。 The present invention relates to the field of storage system testing, specifically a storage system testing method based on database applications.

背景技术 Background technique

随着不同行业关键数据量的不断扩大,数据库应用与存储系统结合应用的实施方案逐渐受到人们的重视。其中,Oracle因其所具备的RAC、DataGuard集群高可用及RMAN备份功能更是受到了关键行业用户的青睐。在与数据库结合应用中,存储系统异常极有可能导致数据丢失,造成巨大的损失,因而这种实施方案中存储系统稳定性及数据一致性的测试尤为重要。 With the continuous expansion of key data volumes in different industries, the combination of database applications and storage systems has gradually attracted people's attention. Among them, Oracle is favored by users in key industries because of its RAC, DataGuard cluster high availability and RMAN backup functions. In the application combined with the database, the abnormality of the storage system is very likely to cause data loss and cause huge losses. Therefore, the test of the stability of the storage system and data consistency in this implementation is particularly important.

存储系统的稳定性问题在大压力、长时间运行的情况下发生的概率较高。因此,在测试中,我们需要模拟这类环境,并针对数据库读写的IO特点进行测试,而这恰恰是较为难以实现的。 Stability problems of the storage system are more likely to occur under high pressure and long-term running conditions. Therefore, in the test, we need to simulate this kind of environment and test the IO characteristics of database read and write, which is precisely difficult to achieve.

发明内容Contents of the invention

  本发明的技术任务是提供一种基于数据库应用的存储系统测试方法,来解决在与数据库结合应用中,存储系统异常极有可能导致数据丢失,造成巨大的损失即存储系统稳定性的问题。 The technical task of the present invention is to provide a storage system testing method based on database applications to solve the problem of storage system stability that is very likely to cause data loss and cause huge losses when combined with database applications.

本发明解决其技术问题所采用的技术方案是:一种基于数据库应用的存储系统测试方法,包括如下步骤: The technical solution adopted by the present invention to solve the technical problem is: a storage system testing method based on database application, comprising the following steps:

(1)搭建数据库应用环境:使用待测存储系统,搭建具体的数据库应用环境,模拟用户实际实施环境,使存储系统在复杂的应用环境下尽肯能暴露其稳定性问题; (1) Build a database application environment: Use the storage system to be tested to build a specific database application environment, simulate the actual implementation environment of the user, and make the storage system expose its stability problems as much as possible in a complex application environment;

(2)自主编写sql脚本:该测试脚本包括批量创建新用户、批量创建表、批量导出及导入,通过运行以上脚本并观察Oracle日志,验证存储系统在数据库应用压力下的数据一致性; (2) Independently write sql scripts: the test scripts include creating new users in batches, creating tables in batches, exporting and importing in batches, and verifying the data consistency of the storage system under the pressure of database applications by running the above scripts and observing Oracle logs;

(3)swingbench测试工具:运行swingbench,模拟实际业务,进行7*24h长时间稳定性测试,验证存储系统在数据库应用压力下的稳定性; (3) swingbench test tool: run swingbench, simulate actual business, conduct 7*24h long-term stability test, and verify the stability of the storage system under the pressure of database application;

(4)输出测试结果:启动智能重启机开始测试,此时断电延时时间开始根据设置值倒数跑秒。 (4) Output the test result: Start the smart restart machine to start the test, at this time, the power-off delay time starts counting down according to the set value.

作为优选,所述数据库应用环境为RAC或Dataguard。 Preferably, the database application environment is RAC or Dataguard.

本发明的一种基于数据库应用的存储系统测试方法和现有技术相比,具有以下有益效果: Compared with the prior art, a storage system testing method based on database application of the present invention has the following beneficial effects:

1、传统的测试方法主要是试用Iometer等测试工具进行测试,这些工具并不能完全模拟出数据库应用的IO特性。本发明一种针对数据库应用的存储系统测试方法,即搭建真实环境,通过sql脚本与swingbench结合的方式,对存储系统的数据一致性、稳定性进行全面、自动化的测试,避免了传统测试方法不匹配数据库应用IO特性的缺点。 1. The traditional test method is mainly to test with test tools such as Iometer, which cannot completely simulate the IO characteristics of database applications. The present invention is a storage system test method for database applications, that is, to build a real environment, and to conduct a comprehensive and automatic test on the data consistency and stability of the storage system through the combination of sql script and swingbench, thereby avoiding the traditional test method. Match the shortcomings of database application IO characteristics.

2、本发明是一种存储系统测试方法,通过一种自动化测试的方式,节省了人力,又提高了工作效率,模拟了存储系统的实际应用场景,为其测试提供了一种简洁的方法。最终以达到提高存储系统可靠性的目的。 2. The present invention is a storage system testing method. Through an automated testing method, manpower is saved, work efficiency is improved, the actual application scene of the storage system is simulated, and a simple method is provided for its testing. Ultimately, the purpose of improving the reliability of the storage system is achieved.

本发明具有设计合理、结构简单、使用方便的特点,因而,具有很好的推广使用价值。 The invention has the characteristics of reasonable design, simple structure and convenient use, and thus has very good popularization and use value.

具体实施方式 detailed description

下面通过具体实施例对本发明作进一步说明。 The present invention will be further described below by specific examples.

本发明的一种基于数据库应用的存储系统测试方法,一种基于数据库应用的存储系统测试方法包括如下步骤: A storage system testing method based on a database application of the present invention, a storage system testing method based on a database application comprises the following steps:

(1)搭建OracleRAC应用环境或者DataGuard应用环境;针对具体应用环境,搭建相应的测试系统。确保数据文件存于存储映射到主机的逻辑卷中。具体拓扑尽可能与实际应用接近。 (1) Build an OracleRAC application environment or a DataGuard application environment; build a corresponding test system for a specific application environment. Make sure the data files are stored on a logical volume that is mapped to the host. The specific topology is as close as possible to the actual application.

(2)编写测试脚本,执行脚本自动化测试;编写sql脚本,包括数据批量插入脚本、用户批量创建脚本、批量导出脚本、批量导入脚本。通过运行脚本,实现自动化执行批量操作,并验证系统的数据一致性。 (2) Write test scripts, execute script automation tests; write sql scripts, including data batch insertion scripts, user batch creation scripts, batch export scripts, and batch import scripts. By running scripts, it can automate batch operations and verify the data consistency of the system.

(3)配置swingbench,执行swingbench模拟业务测试;运行swingbench,模拟实际业务,进行7*24h长时间稳定性测试。 (3) Configure swingbench, execute swingbench simulation business test; run swingbench, simulate actual business, and conduct 7*24h long-term stability test.

(4)输出测试结果;启动智能重启机开始测试,此时断电延时时间开始根据设置值倒数跑秒。 (4) Output the test result; start the smart restart machine to start the test, at this time, the power-off delay time starts counting down according to the set value.

具体工作过程:首先,模拟实际应用环境,搭建基于数据库应用的测试环境; Specific work process: First, simulate the actual application environment and build a test environment based on database applications;

然后,编写sql脚本,以批量插入数据为例: Then, write a sql script, taking batch insertion of data as an example:

declare declare

sTablenamevarchar2(60); sTablenamevarchar2(60);

v_sqlvarchar2(1000); v_sqlvarchar2(1000);

begin begin

sTablename:='abctest'; sTablename:='abctest';

foriin1..10000loop foriin1..10000loop

v_sql:='createtable'||sTablename||to_char(i)||'asselect*fromdba_objects'; v_sql:='createtable'||sTablename||to_char(i)||'asselect*fromdba_objects';

executeimmediatev_sql; executeimmediatev_sql;

endloop; end loop;

end; end;

/ /

再然后,该脚本以复制dba_objects的方式,批量创建10000个表,既可以在批量创建过程中验证数据稳定性,同时这些新创建的数据可用于后续测试的源数据; Then, the script creates 10,000 tables in batches by copying dba_objects, which can verify data stability during the batch creation process, and these newly created data can be used as source data for subsequent tests;

再然后,长时间运行swingbench,保持较高的用户并发数,运行7*24h; Then, run swingbench for a long time, maintain a high number of concurrent users, and run 7*24h;

最后,输出检测结果。 Finally, output the detection result.

通过上面具体实施方式,所述技术领域的技术人员可容易的实现本发明。但是应当理解,本发明并不限于上述的具体实施方式。在公开的实施方式的基础上,所述技术领域的技术人员可任意组合不同的技术特征,从而实现不同的技术方案。 Through the above specific implementation manners, those skilled in the technical field can easily realize the present invention. However, it should be understood that the present invention is not limited to the specific embodiments described above. On the basis of the disclosed embodiments, those skilled in the art can arbitrarily combine different technical features to achieve different technical solutions.

Claims (2)

1.一种基于数据库应用的存储系统测试方法,其特征在于:包括如下步骤: 1. a storage system testing method based on database application, is characterized in that: comprise the steps: (1)搭建数据库应用环境:使用待测存储系统,搭建具体的数据库应用环境,模拟用户实际实施环境,使存储系统在复杂的应用环境下尽肯能暴露其稳定性问题; (1) Build a database application environment: Use the storage system to be tested to build a specific database application environment, simulate the actual implementation environment of the user, and make the storage system expose its stability problems as much as possible in a complex application environment; (2)自主编写sql脚本:该测试脚本包括批量创建新用户、批量创建表、批量导出及导入,通过运行以上脚本并观察Oracle日志,验证存储系统在数据库应用压力下的数据一致性; (2) Independently write sql scripts: the test scripts include creating new users in batches, creating tables in batches, exporting and importing in batches, and verifying the data consistency of the storage system under the pressure of database applications by running the above scripts and observing Oracle logs; (3)swingbench测试工具:运行swingbench,模拟实际业务,进行7*24h长时间稳定性测试,验证存储系统在数据库应用压力下的稳定性; (3) swingbench test tool: run swingbench, simulate actual business, conduct 7*24h long-term stability test, and verify the stability of the storage system under the pressure of database application; (4)输出测试结果:启动智能重启机开始测试,此时断电延时时间开始根据设置值倒数跑秒。 (4) Output the test result: Start the smart restart machine to start the test, at this time, the power-off delay time starts counting down according to the set value. 2.根据权利要求1所述的一种基于数据库应用的存储系统测试方法,其特征在于:所述数据库应用环境为RAC或Dataguard。 2. A storage system testing method based on database application according to claim 1, characterized in that: said database application environment is RAC or Dataguard.
CN201510900687.9A 2015-12-09 2015-12-09 Storage system testing method based on database application Pending CN105302729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510900687.9A CN105302729A (en) 2015-12-09 2015-12-09 Storage system testing method based on database application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510900687.9A CN105302729A (en) 2015-12-09 2015-12-09 Storage system testing method based on database application

Publications (1)

Publication Number Publication Date
CN105302729A true CN105302729A (en) 2016-02-03

Family

ID=55200018

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510900687.9A Pending CN105302729A (en) 2015-12-09 2015-12-09 Storage system testing method based on database application

Country Status (1)

Country Link
CN (1) CN105302729A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294046A (en) * 2016-08-19 2017-01-04 浪潮电子信息产业股份有限公司 A method of writing data into database in real time to test the lost data of storage system
CN107068199A (en) * 2017-05-11 2017-08-18 郑州云海信息技术有限公司 A kind of performance test methods of SSD hard disks
CN107276841A (en) * 2017-04-26 2017-10-20 杭州沃趣科技股份有限公司 A kind of method that health status detection is carried out for Oracle Goldengate
CN107506436A (en) * 2017-08-23 2017-12-22 福建星瑞格软件有限公司 A kind of method and device for Internet of Things data library storage performance test
CN107885654A (en) * 2017-05-05 2018-04-06 平安科技(深圳)有限公司 Data library test method and system
CN109857647A (en) * 2019-01-10 2019-06-07 平安科技(深圳)有限公司 Automated testing method, apparatus, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101093462A (en) * 2006-06-22 2007-12-26 上海全成通信技术有限公司 Automatization method for testing schooling pressure on database application
CN102306193A (en) * 2011-09-05 2012-01-04 浪潮电子信息产业股份有限公司 Method for testing performance of magnetic disc database
CN104572467A (en) * 2015-01-19 2015-04-29 浪潮电子信息产业股份有限公司 Method for testing performance of virtual platform database of server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101093462A (en) * 2006-06-22 2007-12-26 上海全成通信技术有限公司 Automatization method for testing schooling pressure on database application
CN102306193A (en) * 2011-09-05 2012-01-04 浪潮电子信息产业股份有限公司 Method for testing performance of magnetic disc database
CN104572467A (en) * 2015-01-19 2015-04-29 浪潮电子信息产业股份有限公司 Method for testing performance of virtual platform database of server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
彭彬 等: "Oracle RAC和TimesTen性能研究", 《湖北汽车工业学院学报》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294046A (en) * 2016-08-19 2017-01-04 浪潮电子信息产业股份有限公司 A method of writing data into database in real time to test the lost data of storage system
CN107276841A (en) * 2017-04-26 2017-10-20 杭州沃趣科技股份有限公司 A kind of method that health status detection is carried out for Oracle Goldengate
CN107885654A (en) * 2017-05-05 2018-04-06 平安科技(深圳)有限公司 Data library test method and system
CN107068199A (en) * 2017-05-11 2017-08-18 郑州云海信息技术有限公司 A kind of performance test methods of SSD hard disks
CN107068199B (en) * 2017-05-11 2020-03-31 郑州云海信息技术有限公司 Performance test method of SSD (solid State disk)
CN107506436A (en) * 2017-08-23 2017-12-22 福建星瑞格软件有限公司 A kind of method and device for Internet of Things data library storage performance test
CN109857647A (en) * 2019-01-10 2019-06-07 平安科技(深圳)有限公司 Automated testing method, apparatus, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105302729A (en) Storage system testing method based on database application
CN104504122B (en) A kind of verification method and system of database migration data
CN104598376B (en) The layering automatization test system and method for a kind of data-driven
CN104407951A (en) A method for automatically testing the whole machine of the server
CN103744759A (en) Method for verifying unattended disk performance and stability under Linux system
CN101093462B (en) Automatization method for testing schooling pressure on database application
CN102486749B (en) Method and system for data driving test
CN111966656B (en) Method, system, terminal and storage medium for simulating high-load scene of storage file
CN105068920A (en) A method for testing rack asset information stability based on shell
CN107153609B (en) An automated testing method and device
CN104484274A (en) Memory patrol scrub function test method based on ITP (integration test platform) tool
CN104601410A (en) Server automatic HCA card bandwidth testing method
CN104901845A (en) Automation test system and method of domain name WHOIS service
CN107391378A (en) The generation method and device of a kind of test script
CN102486748B (en) Method and device for performance test
CN111858730A (en) A data import and export device, method, device and medium for graph database
CN103617004A (en) Tool and method for performing read-write tests on distributed file system
CN106850342B (en) Method and device for testing compatibility and stability of switch
CN107590037A (en) A kind of method that EDPP tests are carried out to server GPU
CN102055780A (en) Disk array test system and method
CN111930862B (en) A SQL interactive analysis method and system based on big data platform
CN106354599A (en) A server automatic restart test method for Solaris11 series
CN115017054A (en) Data synchronization test method, device, electronic device and storage medium
CN114924992A (en) Formalized FPGA software security verification method and verification platform
CN111625407B (en) SSD performance test method and related components

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160203