CN104965741A - Method and apparatus for installing real-time application clusters - Google Patents
Method and apparatus for installing real-time application clusters Download PDFInfo
- Publication number
- CN104965741A CN104965741A CN201510377305.9A CN201510377305A CN104965741A CN 104965741 A CN104965741 A CN 104965741A CN 201510377305 A CN201510377305 A CN 201510377305A CN 104965741 A CN104965741 A CN 104965741A
- Authority
- CN
- China
- Prior art keywords
- application clusters
- configuration file
- real application
- information
- module
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention provides a method and an apparatus for installing real-time application clusters. The method comprises the steps of: obtaining a configuration file of the real-time application clusters; and according to configuration information in the configuration file, installing the real-time application clusters.
Description
Technical field
The present invention relates to the communications field, particularly relate to a kind of method and apparatus installing Real Application Clusters.
Background technology
RAC (Real Application Clusters, Real Application Clusters) is the new technology adopted in Oracle new edition database, has high availability, is also the core technology that oracle database supports grid computing environment.In actual applications, the installation of Oracle RAC and layoutprocedure comparatively numerous and diverse.
Therefore, how Fast Installation configures Oracle RAC, and the layoutprocedure simplifying OracleRAC numerous and diverse is problem demanding prompt solution.
Summary of the invention
The invention provides a kind of method and apparatus installing Real Application Clusters, the technical matters that solve is how Fast Installation configures Oracle RAC.
For solving the problems of the technologies described above, the invention provides following technical scheme:
A method for Real Application Clusters is installed, comprises:
Obtain the configuration file of Real Application Clusters;
According to the configuration information in described configuration file, described Real Application Clusters is installed.
Wherein, the configuration file of described Real Application Clusters comprises at least one in nodename, IP address, the memory location of data, username information and encrypted message.
Wherein, described according to the configuration information in described configuration file, described Real Application Clusters is installed, comprises:
Obtain the module information in installation process;
Utilizing the response template that the configuration information in described configuration file is corresponding with each assembly pre-set, exporting the confirmation operation to installing described assembly operation.
Wherein, described method also comprises:
Detect operation required in installation process the need of under the administration authority being switched to power user;
If under the administration authority needing to be switched to power user being detected, then switch current leading subscriber.
A device for Real Application Clusters is installed, comprises:
Acquisition module, for obtaining the configuration file of Real Application Clusters;
Installation module, for according to the configuration information in described configuration file, installs described Real Application Clusters.
Wherein, the configuration file of described Real Application Clusters comprises at least one in nodename, IP address, the memory location of data, username information and encrypted message.
Wherein, described installation module comprises:
Acquiring unit, for obtaining the module information in installation process;
Output unit, for the response template utilizing the configuration information in described configuration file corresponding with each assembly pre-set, exports the confirmation operation to installing described assembly operation.
Wherein, described device also comprises:
Detection module, for detecting in installation process required operation the need of under the administration authority being switched to power user;
Handover module, if need to be switched to the administration authority of power user for detecting under, then switches current leading subscriber.
Embodiment provided by the invention, utilizes the configuration file of Real Application Clusters, installs Real Application Clusters, realizes the object of Auto-mounting, improve the automatism of installation, improve installation effectiveness.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the embodiment of the method for installation Real Application Clusters provided by the invention;
Fig. 2 is the structural drawing of the device embodiment of installation Real Application Clusters provided by the invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combination in any mutually.
Fig. 1 is the process flow diagram of the embodiment of the method for installation Real Application Clusters provided by the invention.Shown in Fig. 1, method comprises:
The configuration file of step 101, acquisition Real Application Clusters;
Step 102, according to the configuration information in described configuration file, described Real Application Clusters is installed.
Method provided by the invention, utilizes the configuration file of Real Application Clusters, installs Real Application Clusters, realizes the object of Auto-mounting, improve the automatism of installation, improve installation effectiveness.
Below embodiment of the method provided by the invention is described further:
Wherein, the configuration file of described Real Application Clusters comprises at least one in nodename, IP address, the memory location of data, username information and encrypted message.
Wherein, described according to the configuration information in described configuration file, described Real Application Clusters is installed, comprises: obtain the module information in installation process; Utilizing the response template that the configuration information in described configuration file is corresponding with each assembly pre-set, exporting the confirmation operation to installing described assembly operation.
Concrete, in installation process, for the determination operation needing in installation process to select, by the responder module pre-set, the confirmation operation of complete mounted in pairs operation, without the need to the manual operation of user, achieves Auto-mounting.
In addition, operation required in installation process is detected the need of under the administration authority being switched to power user; If under the administration authority needing to be switched to power user being detected, then switch current leading subscriber.
The present invention ground object is the Install and configure process of robotization Oracle RAC, enforcement personnel is freed from the work repeated, improves the efficiency of installing, avoid the mistake caused due to the erroneous input in manual installation process.
Precondition of the present invention is operating system and the rsh service of each node will installing Oracle RAC.The Install and configure process of Oracle RAC in the present invention, be decomposed into the configuration of environmental variance, Oracle CRS and RDBMS installation, call VIPCA configuration virtual IP, call netca add listener, call dbca creation database.Wherein various input information automatically reads from configuration file, and configuration file is denoted as rac.conf, and wherein content comprises: the information of nodename, IP, RAC data storage location, oracle calling party and password; The installation of OUI CRS, OUI RDBMS is by when calling program, specify Response file by command line parameter, and the user obtained by needs input is read and realized from response file.Response file is the responseFile template according to CRS and RDBMS, before execution runInstaller, reads required information from rac.conf, automatically generates.Wherein the method for the generation of template is by when running Oracle OUI, adds record order, the input of user on graphical interfaces is recorded, save as responseFile, as the template of responseFile, only need generate once, implement personnel from now on for Oracle RAC.
On windows platform CRS and RDBMS without mutual installation only need specify ResponseFile just can complete, but under tide K-UX platform, can require with root identity execution required by script, to complete some privileged operations.And these operation and installation processes also exist cause-effect relationship, the execution of script can not shift to an earlier date, and can not postpone, and needs to perform under the appropriate moment automatically switches to root user.The present invention installs OUI in the process of CRS and RDBMS and is divided into two stages: the first stage is the target directory structure still unfounded stage, and this stage can not produce any journal file; Subordinate phase is the stage that target directory structure has established, and any one action of this stage OUI all can be recorded in journal file.Only have a script to need to run in the first stage, other script all runs in subordinate phase.Therefore the invention provides a solution: for the script of first stage, the generation of this script of Programmable detection can be write, once find that script produces, then perform at once.For the script of subordinate phase, then need to write a sequential monitoring journal file, when the relative recording needing to perform script appears in the end of journal file, perform corresponding script.
The concrete steps of whole robotization installation process are as follows:
A) from configuration file rac.conf, read the information about nodename, IP, RAC data storage location, oracle calling party and password, configure each node environmental variance;
B) each node installs OCFS, produce ocfs uid, start ocfs service, all memory devices of carry again;
C) from rac.conf, required information is read, according to the responseFile template of CRS, generate responseFile, run the runInstaller of CRS, utility command line parameter-responseFile specifies the responseFile of CRS, without mutual installation CRS; Under Linux platform, the program of operational monitoring simultaneously, guards under the appropriate moment automatically switches to root user, performs necessary script;
D) from rac.conf, required information is read, according to the responseFile template of RDBMS, generate responseFile, run the runInstaller of RDBMS, utility command line parameter-responseFile specifies the responseFile of RDBMS, without mutual installation RDBMS; Under Linux platform, the program of operational monitoring simultaneously, guards under the appropriate moment automatically switches to root user, performs necessary script;
E) from configuration file rac.conf, obtain nodename, IP information, call vipca configuration virtual IP;
F) add listener, start listener service;
G) call dbca and isqlplus creation database, title, the size of database also obtain from rac.conf.
The invention has the beneficial effects as follows: the Install and configure process of robotization Oracle RAC, simplify the process of human configuration Oracle RAC, improve the efficiency of clustered deploy(ment), and this method is applied widely, to windows operating system and linux operating system all applicable, also all applicable to the 9i/10g/11g version of Oracle RAC.
The method of Oracle RAC Auto-mounting provided by the invention, specifically comprises:
Suppose that each node has configured operating system and rsh service.The configuration information record of Oracle RAC is at rac.conf, wherein content comprises: RAC.nodes, RAC.private_ip, RAC.publice_ip, RAG.virtual_ip, RAC.data_location, RAC.user, RAC.password, needed before Auto-mounting, carry out hand filling and configuration.
The method that the invention provides below generates ResponseFile template, for user later.
1./usr/oracle/crs/Disk1/runInstaller-record-destinationFile crs_rec.rsp
2. be reference with crs_rec.rsp, fill in crs.rsp template
3./usr/oracle/db/Disk1/runInstaller-record-destinationFile db_rec.rsp
4. be reference with db_rec.rsp, fill in db.rsp template
Adopt said method, below the crs.rsp template used in embodiment as follows:
RESPONSEFILE_VERSION=2.2.1.0.0
ORACLE_HOME=″/opt/oracle/crs/10.2.0″
SHOW_SPLASH_SCREEN=false
SHOW_WELCOME_PAGE=false
SHOW_SUMMARY_PAGE=false
SHOW_INSTALL_PROGRESS_PAGE=true
SHOW_REQUIRED_CONFIG_TOOL_PAGE=false
SHOW_CONFIG_TOOL_PAGE=false
SHOW_RELEASE_NOTES=false
SHOW_ROOTSH_CONFIRMATION=true
SHOW_END_SESSION_PAGE=false
SHOW_EXIT_CONFIRMATION=false
NEXT_SESSION=false
ACCEPT_LICENSE_AGREEMENT=true
CLUSTER_NODES=
CLUSTER_PRIV_INTERCONNECT=
Embodiment:
Suppose that two K-UX nodes need to install Oracle 10g RAC, the following #/etc/rac.conf of rac.conf file configuration;
RAC.nodes=RAC1;RAC2;
RAC.private_ip=10.10.10.10/255.255.255.0;10.10.10.11/255.255.255.0;
RAC.publice_ip=10.152.11.10/255.255.255.0;10.152.11.11/255.255.255.0;
RAC.virtual_ip=172.16.47.200/255.255.255.0;172.16.47.201/255.255.255.0;
RAC.data_location=/u01/RACdata;
RAC.user=oracle;
RAC.password=oracle;
RAC.instance=test;
Install programs automatically IntallRAC specifically performs the following step and completes installation:
1. from rac.conf, read configuration information, call the configuration that a) envConfiger completes environmental variance.
2. utilize rsh, on RAC1 and RAC2, call b) ocfsConfiger configurator, generate ocfs guid, start ocfs service, carry ocfs file system;
3., according to the parameter read from rac.conf, the template of amendment responseFile, to generate suitable responseFile;
4. the installation supervisory programme CRSMonitor calling CRS performs in back way, until CRS installation, and calls c) CRSInstaller, completes/usr/oracle/crs/Disk1/runInstaller-responseFile crs.rsp;
5. the installation supervisory programme DBMonitor calling DB performs in back way, until DB installation, and calls d) DBInstaller and completes/usr/oracle/db/Disk1/runInstaller-responseFiledb.rsp;
6. from rac.conf, read configuration information, call e) VIPConfiger program, complete vipca-silent-nodelist RAC1_VIP, RAC2_VIP-nodevips172.16.47.200/255.255.255.0,172.16.47.201/255.255.255.0-interfaces eth1, eth1-orahome $ ORACLE_HOME;
7. call f) AddListener program, from rac.conf, read information, amendment listener configuration file, adds audiomonitor, starts audiomonitor;
8. call g) AddDB program, creation database example, start database instance.
From technical scheme of the present invention, the present invention not only simplifies the Install and configure process of Oracle RAC, improves the efficiency of clustered deploy(ment), and this method is applied widely.
Fig. 2 is the structural drawing of the device embodiment of installation Real Application Clusters provided by the invention.Fig. 2 shown device comprises:
Acquisition module 201, for obtaining the configuration file of Real Application Clusters;
Installation module 202, for according to the configuration information in described configuration file, installs described Real Application Clusters.
Wherein, the configuration file of described Real Application Clusters comprises at least one in nodename, IP address, the memory location of data, username information and encrypted message.
Wherein, described installation module comprises:
Acquiring unit, for obtaining the module information in installation process;
Output unit, for the response template utilizing the configuration information in described configuration file corresponding with each assembly pre-set, exports the confirmation operation to installing described assembly operation.
Wherein, described device also comprises:
Detection module, for detecting in installation process required operation the need of under the administration authority being switched to power user;
Handover module, if need to be switched to the administration authority of power user for detecting under, then switches current leading subscriber.
Device provided by the invention, utilizes the configuration file of Real Application Clusters, installs Real Application Clusters, realizes the object of Auto-mounting, improve the automatism of installation, improve installation effectiveness.
One of ordinary skill in the art will appreciate that all or part of step of above-described embodiment can use computer program flow process to realize, described computer program can be stored in a computer-readable recording medium, described computer program (as system, unit, device etc.) on corresponding hardware platform performs, when performing, step comprising embodiment of the method one or a combination set of.
Alternatively, all or part of step of above-described embodiment also can use integrated circuit to realize, and these steps can be made into integrated circuit modules one by one respectively, or the multiple module in them or step are made into single integrated circuit module to realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Each device/functional module/functional unit in above-described embodiment can adopt general calculation element to realize, and they can concentrate on single calculation element, also can be distributed on network that multiple calculation element forms.
Each device/functional module/functional unit in above-described embodiment using the form of software function module realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.The above-mentioned computer read/write memory medium mentioned can be ROM (read-only memory), disk or CD etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain described in claim.
Claims (8)
1. a method for Real Application Clusters is installed, it is characterized in that, comprising:
Obtain the configuration file of Real Application Clusters;
According to the configuration information in described configuration file, described Real Application Clusters is installed.
2. method according to claim 1, is characterized in that, the configuration file of described Real Application Clusters comprises at least one in nodename, IP address, the memory location of data, username information and encrypted message.
3. method according to claim 1 and 2, is characterized in that, described according to the configuration information in described configuration file, installs described Real Application Clusters, comprising:
Obtain the module information in installation process;
Utilizing the response template that the configuration information in described configuration file is corresponding with each assembly pre-set, exporting the confirmation operation to installing described assembly operation.
4. method according to claim 1 and 2, is characterized in that, described method also comprises:
Detect operation required in installation process the need of under the administration authority being switched to power user;
If under the administration authority needing to be switched to power user being detected, then switch current leading subscriber.
5. a device for Real Application Clusters is installed, it is characterized in that, comprising:
Acquisition module, for obtaining the configuration file of Real Application Clusters;
Installation module, for according to the configuration information in described configuration file, installs described Real Application Clusters.
6. device according to claim 5, is characterized in that, the configuration file of described Real Application Clusters comprises at least one in nodename, IP address, the memory location of data, username information and encrypted message.
7. the device according to claim 5 or 6, is characterized in that, described installation module comprises:
Acquiring unit, for obtaining the module information in installation process;
Output unit, for the response template utilizing the configuration information in described configuration file corresponding with each assembly pre-set, exports the confirmation operation to installing described assembly operation.
8. the device according to claim 5 or 6, is characterized in that, described device also comprises:
Detection module, for detecting in installation process required operation the need of under the administration authority being switched to power user;
Handover module, if need to be switched to the administration authority of power user for detecting under, then switches current leading subscriber.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510377305.9A CN104965741A (en) | 2015-06-30 | 2015-06-30 | Method and apparatus for installing real-time application clusters |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510377305.9A CN104965741A (en) | 2015-06-30 | 2015-06-30 | Method and apparatus for installing real-time application clusters |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104965741A true CN104965741A (en) | 2015-10-07 |
Family
ID=54219776
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510377305.9A Pending CN104965741A (en) | 2015-06-30 | 2015-06-30 | Method and apparatus for installing real-time application clusters |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104965741A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106341486A (en) * | 2016-09-29 | 2017-01-18 | 郑州云海信息技术有限公司 | Oracle database automatic deployment tool and method |
CN107291504A (en) * | 2017-06-26 | 2017-10-24 | 郑州云海信息技术有限公司 | The method and apparatus and computer-readable recording medium of a kind of deployment software |
CN109274777A (en) * | 2018-12-06 | 2019-01-25 | 浪潮电子信息产业股份有限公司 | Method, device and equipment for exporting configuration file and readable storage medium |
CN109600260A (en) * | 2018-12-11 | 2019-04-09 | 浪潮(北京)电子信息产业有限公司 | Distributed memory system High Availabitity arrrangement method, system and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101251802A (en) * | 2008-03-11 | 2008-08-27 | 浪潮电子信息产业股份有限公司 | Unattended operation automatic installing method of Oracle RAC |
US20080212495A1 (en) * | 2007-01-23 | 2008-09-04 | Nokia Corporation | Configuration mechanism in hosted remote access environments |
CN102455915A (en) * | 2010-10-18 | 2012-05-16 | 卓望数码技术(深圳)有限公司 | Method for automatically configuring distributed system, and server |
CN103744743A (en) * | 2014-01-17 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Heartbeat signal redundant configuration method based on RAC model of database |
CN104657200A (en) * | 2015-03-03 | 2015-05-27 | 浪潮电子信息产业股份有限公司 | Method for creating shared disk in virtual machine |
-
2015
- 2015-06-30 CN CN201510377305.9A patent/CN104965741A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080212495A1 (en) * | 2007-01-23 | 2008-09-04 | Nokia Corporation | Configuration mechanism in hosted remote access environments |
CN101251802A (en) * | 2008-03-11 | 2008-08-27 | 浪潮电子信息产业股份有限公司 | Unattended operation automatic installing method of Oracle RAC |
CN102455915A (en) * | 2010-10-18 | 2012-05-16 | 卓望数码技术(深圳)有限公司 | Method for automatically configuring distributed system, and server |
CN103744743A (en) * | 2014-01-17 | 2014-04-23 | 浪潮电子信息产业股份有限公司 | Heartbeat signal redundant configuration method based on RAC model of database |
CN104657200A (en) * | 2015-03-03 | 2015-05-27 | 浪潮电子信息产业股份有限公司 | Method for creating shared disk in virtual machine |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106341486A (en) * | 2016-09-29 | 2017-01-18 | 郑州云海信息技术有限公司 | Oracle database automatic deployment tool and method |
CN106341486B (en) * | 2016-09-29 | 2020-02-07 | 郑州云海信息技术有限公司 | Oracle database automatic deployment tool and method |
CN107291504A (en) * | 2017-06-26 | 2017-10-24 | 郑州云海信息技术有限公司 | The method and apparatus and computer-readable recording medium of a kind of deployment software |
CN107291504B (en) * | 2017-06-26 | 2020-08-18 | 郑州云海信息技术有限公司 | Method and device for deploying software and computer readable storage medium |
CN109274777A (en) * | 2018-12-06 | 2019-01-25 | 浪潮电子信息产业股份有限公司 | Method, device and equipment for exporting configuration file and readable storage medium |
CN109274777B (en) * | 2018-12-06 | 2019-11-22 | 浪潮电子信息产业股份有限公司 | A kind of method, apparatus, equipment and readable storage medium storing program for executing exporting configuration file |
CN109600260A (en) * | 2018-12-11 | 2019-04-09 | 浪潮(北京)电子信息产业有限公司 | Distributed memory system High Availabitity arrrangement method, system and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101251802A (en) | Unattended operation automatic installing method of Oracle RAC | |
CN104182288A (en) | Method for automatically testing power consumption of server cluster system | |
CN103200036B (en) | A kind of automation collocation method of electric power system cloud computing platform | |
CN104965741A (en) | Method and apparatus for installing real-time application clusters | |
CN102455936A (en) | Trunk quick allocation method | |
CN112099919B (en) | Application service visualization rapid deployment method based on cloud computing API | |
CN107483243A (en) | A kind of automatic deployment method and equipment of OpenStack platforms | |
CN104461635B (en) | A kind of installation method and equipment of system file | |
CN109254922B (en) | Automatic testing method and device for BMC Redfish function of server | |
CN110018392B (en) | Test system of distribution automation system main station | |
CN112612699B (en) | General automatic test equipment for HID (human interface device) human-computer interaction scene use case | |
CN105912389A (en) | Technique for implementing virtual machine transition system in hybrid cloud environment on basis of data virtualization | |
CN105071948A (en) | Automatic deployment method and device for access switcher | |
CN106789381A (en) | It is a kind of for cloud computing management platform simplified deployment and the method for rapid configuration | |
CN108683567B (en) | Switch port fault testing method and system based on MCS and server | |
CN107181626B (en) | Method and system for monitoring network bandwidth of distributed storage cluster system | |
CN113360386B (en) | Method and device for testing driving of switching chip, electronic equipment and storage medium | |
CN110795105A (en) | Automatic compiling and deploying method and system for power distribution automation master station system | |
US9092295B2 (en) | Managing software package updates using communication pipes | |
CN110502252B (en) | Configuration method and device for database all-in-one machine | |
CN107515725B (en) | Method and device for sharing disk by core network virtualization system and network management MANO system | |
CN110704160B (en) | Dual-computer hot standby test method and device | |
CN103457771A (en) | Method and device for HA virtual machine cluster management | |
CN109150941B (en) | Data center physical resource floating method | |
CN105373477A (en) | Volume test method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20151007 |