CN109857411A - The method and device of installation database under linux system - Google Patents

The method and device of installation database under linux system Download PDF

Info

Publication number
CN109857411A
CN109857411A CN201811528376.4A CN201811528376A CN109857411A CN 109857411 A CN109857411 A CN 109857411A CN 201811528376 A CN201811528376 A CN 201811528376A CN 109857411 A CN109857411 A CN 109857411A
Authority
CN
China
Prior art keywords
packet
installation
script
linux system
relies
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
CN201811528376.4A
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.)
Zhengfang Software Co Ltd
Original Assignee
Zhengfang Software 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 Zhengfang Software Co Ltd filed Critical Zhengfang Software Co Ltd
Priority to CN201811528376.4A priority Critical patent/CN109857411A/en
Publication of CN109857411A publication Critical patent/CN109857411A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of method and devices of installation database under linux system.A kind of method of the installation database under linux system includes: that acquisition system relies on packet;Pre-set installation script is called, executes the installation script to complete the system and rely on installment work of the packet under linux system.Packet is relied on by the installation of pre-set installation script in the present embodiment, so that installing DB be made more to standardize, has professional knowledge and interaction without user, the efficiency of installment work can be obviously improved.

Description

The method and device of installation database under linux system
Technical field
The present invention relates to program mounting technique field more particularly to a kind of methods of the installation database under linux system And device.
Background technique
Currently, oracle database is applied than wide, this relates to the installment work of database.
Before installation procedure, user needs to be familiar with a series of preparation that (SuSE) Linux OS carries out professions, such as The program bag etc. that directory creating, the creation of user and group, priority assignation, environmental variance configuration, installation database rely on, so Installation procedure can be run.
In addition, installation steps are more during installation procedure, user is needed to click in next step, in many steps It needs that parameter is arranged by hand, time-consuming for installation process.If preliminary preparation is not perfect, it is more likely that it will appear setup error, To need to reinstall, user experience is reduced.
Summary of the invention
For the defects in the prior art, the present invention provides a kind of method of installation database under linux system and Device, for solving technical problem present in the relevant technologies.
In a first aspect, the embodiment of the invention provides a kind of methods of installation database under linux system, comprising:
Acquisition system relies on packet;
Pre-set installation script is called, executes the installation script to complete the system and rely on packet in Linux system Installment work under system.
Optionally, acquisition system, which relies on, includes:
Obtain installing DB packet and existing patch;
The installing DB packet and existing patch upgrading are installed manually under local linux system;
The system program file that will be installed and accomplish fluently the database of patch carries out packing backup, obtains system dependence Packet.
Optionally, the installation script is executed to complete the system and rely on installment work packet of the packet under linux system It includes:
The system for detecting linux system relies on packet, and the system dependence for judging that installation database needs wraps and prompts user;
In response to the trigger action of user, selects the image file path of linux system and be automatically performed carry and system Rely on packet installation;
Configuration and optimization linux system parameter;
It executes silence and builds library script, build library script to generate parameter file of database and execute silence;
Generate Installation Report.
Optionally, it executes silence and builds library script further include:
Execute physical backup script.
Optionally, the system for detecting linux system relies on packet, judges that the system that installation database needs relies on packet Afterwards, the method also includes:
Determine the dependence packet lacked;
It downloads and the dependence packet lacked is installed.
Second aspect, the embodiment of the invention provides a kind of devices of installation database under linux system, comprising:
It relies on packet and obtains module, rely on packet for obtaining system;
Packet installation module is relied on, for calling pre-set installation script, it is described to complete to execute the installation script System relies on installment work of the packet under linux system.
Optionally, the dependence packet acquisition module includes:
Installation kit acquiring unit, for obtaining installing DB packet and existing patch;
Installation kit installation unit, for installing the installing DB packet and existing manually under local linux system Patch upgrading;
Packet packaged unit is relied on, for the system program file for being installed and accomplishing fluently the database of patch to be packaged Backup obtains system and relies on packet.
Optionally, the dependence packet installation module includes:
Packet detection unit is relied on, the system for detecting linux system relies on packet, and judge installation database needs is System, which relies on, to be wrapped and prompts user;
It relies on packet installation unit and selects the image file path of linux system simultaneously for the trigger action in response to user It is automatically performed carry and system relies on packet installation;
System parameter optimizes unit, is used for configuration and optimization linux system parameter;
Library script executing unit is built, builds library script for executing silence, to generate parameter file of database and execute silence Build library script;
Installation Report generation unit, for generating Installation Report.
Optionally, the library script executing unit of building is also used to execute physical backup script.
Optionally, the packet installation unit that relies on is also used to determine the dependence packet lacked;And it downloads and installs and lack Rely on packet.
As shown from the above technical solution, packet is relied on by the installation of pre-set installation script in the present embodiment, to make Installing DB more standardizes, and has professional knowledge and interaction without user, can be obviously improved the efficiency of installment work.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Other attached drawings are obtained according to these figures.
Fig. 1 is a kind of process signal of the method for installation database under linux system that one embodiment of the invention provides Figure;
Fig. 2 be another embodiment of the present invention provides the process of method of installation database under linux system a kind of show It is intended to;
Fig. 3-Fig. 5 is the block diagram of the device of installation database under linux system that one embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is the flow diagram of the method for installation database under linux system that one embodiment of the invention provides.Ginseng See Fig. 1, a kind of method of the installation database under linux system includes:
101, it obtains system and relies on packet;
102, pre-set installation script is called, executes the installation script to complete the system dependence packet and exist Installment work under linux system.
With reference to the accompanying drawings and examples each step of the method for installation database under linux system is made to retouch in detail It states.
In a step 101, it obtains system and relies on packet.
In the present embodiment, installing DB packet and existing patch are obtained.Then, under local linux system manually The installing DB packet and existing patch upgrading are installed.Later, it will be installed and accomplish fluently the system of the database of patch Program file carries out packing backup, obtains system and relies on packet.
In a step 102, pre-set installation script is called, executes the installation script to complete the system and rely on Wrap the installment work under linux system
In the present embodiment, the system for detecting linux system relies on packet, judges that the system that installation database needs relies on packet And user is prompted, it is user-friendly.Then, in response to the trigger action of user, the image file path of linux system is selected And it is automatically performed carry and system dependence packet installation.Wherein, in the dependence packet for determining to lack, download and install lack according to Rely packet, be not necessarily to user's operation, improves treatment effeciency.Later, configuration and optimization linux system parameter, and execute silence and build library Script builds library script to generate parameter file of database and execute silence, and executes physical backup script.Finally, generating peace Dress report.
It should be noted that pre-set installation script can be compiled based on above-mentioned installation process in the present embodiment Code, in the case where can be realized above-mentioned function, corresponding scheme falls into the protection scope of the application.
In the present embodiment, in the case where installation kit uploads completion and the smooth situation of network, average institute's used time of installation database Between within 30 minutes, display promoted installation effectiveness.In this way, one or several skills can only be arranged for database provider Art personnel can meet and provide the end installing DB task of hundreds of projects throughout the country every year, and be not necessarily to in-site installation, Installation cost can be substantially reduced.
So far, packet is relied on by the installation of pre-set installation script in the present embodiment, to make installing DB more Specification, has professional knowledge and interaction without user, can be obviously improved the efficiency of installment work.
Fig. 2 is the flow diagram of the method for installation database under linux system that one embodiment of the invention provides, ginseng See Fig. 2, execute pre-set installation script (i.e. one button installation script), comprising:
First, operating system is detected, automatic installation relies on packet.Second, configure and optimize operating system parameter.In first item It is completed with Section 2, i.e., after completing to rely on packet and parameter optimization, carries out building lab environment configuration and detection, including generate database Parameter line executes silence and builds library script.Third executes physical backup script.
Finally, having executed physical backup script, after silence builds library script, Installation Report is generated.
Fig. 3 is the device of installation database under linux system that one embodiment of the invention provides.Referring to Fig. 3, the present invention Embodiment additionally provides a kind of device of installation database under linux system, and described device includes:
It relies on packet and obtains module 301, rely on packet for obtaining system;
It relies on packet installation module 302 and executes the installation script for calling pre-set installation script to complete It states system and relies on installment work of the packet under linux system.
Fig. 4 is the device of installation database under linux system that one embodiment of the invention provides.Referring to fig. 4, in Fig. 3 On the basis of shown device, the dependence packet obtains module 301 and includes:
Installation kit acquiring unit 401, for obtaining installing DB packet and existing patch;
Installation kit installation unit 402, for installing the installing DB packet manually under local linux system and showing There is patch upgrading;
Packet packaged unit 403 is relied on, is carried out for that will be installed and accomplish fluently the system program file of database of patch It is packaged backup, system is obtained and relies on packet.
Fig. 5 is the device of installation database under linux system that one embodiment of the invention provides.Referring to Fig. 5, in Fig. 3 On the basis of shown device, the dependence packet installation module 302 includes:
Packet detection unit 501 is relied on, the system for detecting linux system relies on packet, judges installation database needs System rely on wrap and prompt user;
It relies on packet installation unit 502 and selects the image file road of linux system for the trigger action in response to user Diameter is simultaneously automatically performed carry and system dependence packet installation;
System parameter optimizes unit 503, is used for configuration and optimization linux system parameter;
Library script executing unit 504 is built, builds library script for executing silence, to generate parameter file of database and execute quiet It is silent to build library script;
Installation Report generation unit 505, for generating Installation Report.
In some embodiments, the library script executing unit of building is also used to execute physical backup script.
In some embodiments, the packet installation unit that relies on is also used to determine the dependence packet lacked;And it downloads and pacifies Fill the dependence packet lacked.
It should be noted that the device of the installation database provided in an embodiment of the present invention under linux system and above-mentioned side Method is one-to-one relationship, and the implementation detail of the above method is equally applicable to above-mentioned apparatus, and the embodiment of the present invention is no longer to upper The system of stating is described in detail.
In specification of the invention, numerous specific details are set forth.It is to be appreciated, however, that the embodiment of the present invention can be with It practices without these specific details.In some instances, well known method, structure and skill is not been shown in detail Art, so as not to obscure the understanding of this specification.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, various embodiments of the present invention technology that it does not separate the essence of the corresponding technical solution The range of scheme should all cover within the scope of the claims and the description of the invention.

Claims (10)

1. a kind of method of the installation database under linux system characterized by comprising
Acquisition system relies on packet;
Pre-set installation script is called, executes the installation script to complete the system and rely on packet under linux system Installment work.
2. the method according to claim 1, wherein the system dependence of acquisition includes:
Obtain installing DB packet and existing patch;
The installing DB packet and existing patch upgrading are installed manually under local linux system;
The system program file that will be installed and accomplish fluently the database of patch carries out packing backup, obtains system and relies on packet.
3. the method according to claim 1, wherein executing the installation script to complete the system and rely on packet Installment work under linux system includes:
The system for detecting linux system relies on packet, and the system dependence for judging that installation database needs wraps and prompts user;
In response to the trigger action of user, selects the image file path of linux system and be automatically performed carry and system dependence Packet installation;
Configuration and optimization linux system parameter;
It executes silence and builds library script, build library script to generate parameter file of database and execute silence;
Generate Installation Report.
4. according to the method described in claim 3, it is characterized in that, executing silence builds library script further include:
Execute physical backup script.
5. according to the method described in claim 3, it is characterized in that, the system dependence packet of detection linux system, judges to install After the system that database needs relies on packet, the method also includes:
Determine the dependence packet lacked;
It downloads and the dependence packet lacked is installed.
6. a kind of device of the installation database under linux system characterized by comprising
It relies on packet and obtains module, rely on packet for obtaining system;
It relies on packet installation module and executes the installation script for calling pre-set installation script to complete the system Rely on installment work of the packet under linux system.
7. device according to claim 6, which is characterized in that the dependence packet obtains module and includes:
Installation kit acquiring unit, for obtaining installing DB packet and existing patch;
Installation kit installation unit, for installing the installing DB packet and existing patch manually under local linux system Upgrading;
Packet packaged unit is relied on, it is standby for be packaged the system program file for being installed and accomplishing fluently the database of patch Part, it obtains system and relies on packet.
8. device according to claim 6, which is characterized in that the dependence packet installs module and includes:
Rely on packet detection unit, for detect linux system system rely on packet, judge installation database need system according to Rely and wraps and prompt user;
Packet installation unit is relied on, for the trigger action in response to user, selects the image file path of linux system and automatic It completes carry and system relies on packet installation;
System parameter optimizes unit, is used for configuration and optimization linux system parameter;
Library script executing unit is built, builds library script for executing silence, builds library to generate parameter file of database and execute silence Script;
Installation Report generation unit, for generating Installation Report.
9. device according to claim 8, which is characterized in that it is described build library script executing unit be also used to execute physics it is standby Part script.
10. device according to claim 8, which is characterized in that the packet installation unit that relies on is also used to what determination lacked Rely on packet;And it downloads and the dependence packet lacked is installed.
CN201811528376.4A 2018-12-13 2018-12-13 The method and device of installation database under linux system Pending CN109857411A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811528376.4A CN109857411A (en) 2018-12-13 2018-12-13 The method and device of installation database under linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811528376.4A CN109857411A (en) 2018-12-13 2018-12-13 The method and device of installation database under linux system

Publications (1)

Publication Number Publication Date
CN109857411A true CN109857411A (en) 2019-06-07

Family

ID=66891168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811528376.4A Pending CN109857411A (en) 2018-12-13 2018-12-13 The method and device of installation database under linux system

Country Status (1)

Country Link
CN (1) CN109857411A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857752A (en) * 2020-07-22 2020-10-30 浪潮商用机器有限公司 PostgreSQL database installation method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101251802A (en) * 2008-03-11 2008-08-27 浪潮电子信息产业股份有限公司 Unattended operation automatic installing method of Oracle RAC
CN103235725A (en) * 2013-05-16 2013-08-07 浪潮通信信息系统有限公司 Linux-based rapid deployment method for Oracle database in cloud computing
US20140372999A1 (en) * 2012-01-05 2014-12-18 Bernd Becker Computer system for updating programs and data in different memory areas with or without write authorizations
CN105786564A (en) * 2016-02-22 2016-07-20 上海新炬网络信息技术有限公司 Automatic custom installation and deployment method for Oracle
CN107391197A (en) * 2017-07-25 2017-11-24 郑州云海信息技术有限公司 The installation method and device of a kind of (SuSE) Linux OS

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101251802A (en) * 2008-03-11 2008-08-27 浪潮电子信息产业股份有限公司 Unattended operation automatic installing method of Oracle RAC
US20140372999A1 (en) * 2012-01-05 2014-12-18 Bernd Becker Computer system for updating programs and data in different memory areas with or without write authorizations
CN103235725A (en) * 2013-05-16 2013-08-07 浪潮通信信息系统有限公司 Linux-based rapid deployment method for Oracle database in cloud computing
CN105786564A (en) * 2016-02-22 2016-07-20 上海新炬网络信息技术有限公司 Automatic custom installation and deployment method for Oracle
CN107391197A (en) * 2017-07-25 2017-11-24 郑州云海信息技术有限公司 The installation method and device of a kind of (SuSE) Linux OS

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111857752A (en) * 2020-07-22 2020-10-30 浪潮商用机器有限公司 PostgreSQL database installation method, device and equipment
CN111857752B (en) * 2020-07-22 2023-08-08 浪潮商用机器有限公司 PostgreSQL database installation method, device and equipment

Similar Documents

Publication Publication Date Title
US7185335B2 (en) Programmatic application installation diagnosis and cleaning
CN102609326B (en) Data downloading processing method and data downloading processing device
CN107704238B (en) Method and device for packaging items
CN102447732A (en) Method for intelligent configuration of host computer embedded environment during BMC (Baseboard Management Controller) development
CN104636172B (en) A kind of application upgrade method and apparatus
CN106648762A (en) Development environment building method and device
CN110134574A (en) A kind of software performance testing method, system, medium and electronic equipment
CN104978271A (en) Automatic upgrade pressure measurement method and system for Android system
US20200065229A1 (en) Systems and methods for on-demand container-based development environments
CN110262806A (en) A kind of DevOps system for supporting automation services layout
CN107632829A (en) A kind of App automation continuous integration systems and method based under iOS system
CN104125504A (en) Deployment method, device and system based on continuous integration
CN106502713A (en) A kind of method for upgrading software and system
KR20120081873A (en) Method for verifying mobile application and terminal using the same
CN113721957B (en) Automatic test method, device and system for firmware deployment upgrade of embedded equipment
CN110795124A (en) Remote upgrading method, device, equipment and storage medium for automobile safety part
CN105512026A (en) Automatic batch testing method
CN109857411A (en) The method and device of installation database under linux system
CN102768628A (en) Method and device for preinstallation of third party application
CN110297749B (en) Method and terminal for testing new function
CN107741854A (en) The installation method and device of the trawl performance of a kind of electronic equipment
CN106933637A (en) The restorative procedure and device of a kind of system partitioning
CN114880244A (en) Application testing method and device, storage medium and electronic equipment
CN107220174B (en) Automatic testing method and device
CN115599645A (en) Method and device for testing stability of linux drive module

Legal Events

Date Code Title Description
PB01 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

Application publication date: 20190607

RJ01 Rejection of invention patent application after publication