CN107943471A - Carry out the method in monitoring data storehouse in a kind of Linux dual systems using program - Google Patents

Carry out the method in monitoring data storehouse in a kind of Linux dual systems using program Download PDF

Info

Publication number
CN107943471A
CN107943471A CN201711226002.2A CN201711226002A CN107943471A CN 107943471 A CN107943471 A CN 107943471A CN 201711226002 A CN201711226002 A CN 201711226002A CN 107943471 A CN107943471 A CN 107943471A
Authority
CN
China
Prior art keywords
database
program
grep
check
monitoring data
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
CN201711226002.2A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201711226002.2A priority Critical patent/CN107943471A/en
Publication of CN107943471A publication Critical patent/CN107943471A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment

Abstract

The present invention provides a kind of method for coming monitoring data storehouse in Linux dual systems using program, is related to database monitoring technology, and the close coupling of traditional duplex software is changed into loose coupling by the present invention, and the program function being internally integrated is discharged into outside to load.Program code amount is reduced, reduces the competency profiling and workload of developer, deployment is improved and safeguards easness.

Description

Carry out the method in monitoring data storehouse in a kind of Linux dual systems using program
Technical field
The present invention relates to come monitoring data storehouse using program in database monitoring technology, more particularly to a kind of Linux dual systems Method.
Background technology
In modern IT systems, the monitoring importance of upper layer application state is self-evident, the business software such as various two-shippers also layer Go out not poor.But present duplex software be all close coupling deployment monitoring, the exploitation amount for software, the requirement of developer, The quality of exploitation and the deployment maintenance in later stage are proposed very high requirement.
For conventional duplex software system, a usual software is undertaken the whole things, and various functions are all integrated in the inside, one Software million or even several G sizes of many hundreds easily.Software architecture is extremely complex, and dependence is very strong between modules, leads one Start whole body, it is very high to exploitation personnel requirement, putting maintenance into practice personnel are also required also higher.And dispose for host The resource requirement of machine is very high, otherwise cannot meet the requirement of software.And there is BUG in some function, for developer For be all very intractable.
Because the drawbacks of this software development above, a kind of software deployment development deployment mode of loose coupling is increasingly subject to Client, the welcome of developer, putting maintenance into practice personnel.Before market plane, such a demand is more and more stronger.
The content of the invention
In order to solve the above technical problems, the present invention is proposed in a kind of Linux dual systems monitors number using program According to the method in storehouse.Software architecture carries out qualitative change, is changed into loose coupling from original close coupling.Software code quantitative change is few, developer Competency profiling reduce, development quality lifting, the deployment in later stage and safeguard complexity reduction.
The close coupling of traditional duplex software is changed into loose coupling by the present invention, and the program function being internally integrated is discharged into exterior next Loading.Program code amount is reduced, reduces the competency profiling and workload of developer, deployment is improved and safeguards easness
Specific practice is as follows:
(1), first finish writing external program first, the startup and stopping of the function database of this program, database With the detection of database oracle listener.The literary style of program is very much, without inflexible requirement.It can realize corresponding function.
Database starts:
connect / as sysdba
startup
exit;
Database stops:
connect / as sysdba
shutdown immediate
exit;
Detection to database:
check=`ps -aef |grepora_pmon_orcl |grep -v grep |awk '{print $2}'`
while [ $check ]
do
sleep 3
check=`ps -aef |grepora_pmon_orcl |grep -v grep |awk '{print $2}' `
done
The detection monitored database:
check=`ps -aef |greptnslsnr |grep -v grep |awk '{print $2}'`
while [ $check ]
do
sleep 3
check=`ps -aef |greptnslsnr |grep -v grep |awk '{print $2}'`
done
The one kind simply illustrated above is of coursed, as long as developer can realize corresponding function when exploitation, flexibly Processing, it is not inflexible, it is not limited to form etc..
(2), can be with for the place of startup and then the duplex software system of deployment loose coupling mode comes monitoring data storehouse Use the program in log-on data storehouse developed above.Similarly, for closing database, the program for closing database above is used. The monitoring monitored for database and database, the resource that EXCE can perform is created in duplex software system, is called in resource Monitoring data library developed above, monitoring data storehouse oracle listener.
Program is the executable file of the SH forms set in advance, is called with software.Software simply calls, non-self Function, sets and simplifies, loose coupling, runs into failure easy to separate independent investigation, increase is maintainable.
The design of program can be not limited to form, as long as pull-up database and the work(of Test database state can be realized Energy.Flexibly write, it is low to personnel requirement, reduce cost of implementation.
The function that program is realized in itself is fairly simple, and the monitoring of database is realized not for caller in dual systems It is very complicated, there is very strong operability and universality in reality, improves work efficiency.
The beneficial effects of the invention are as follows
The duplex software system of loose coupling is so disposed, for the relevant certain operations of database and monitoring just all by exterior journey Sequence completes.The operation of duplex software system in itself is reduced, while the exploitation of corresponding software inhouse also reduces complexity. Function is transferred to outside to realize.Realize duplex software system in Linux and loose coupling is changed into monitor number by original close coupling According to the method in storehouse.
Embodiment
More detailed elaboration is carried out to present disclosure below:
Specific practice is as follows:
(1), first finish writing external program first, the startup and stopping of the function database of this program, database With the detection of database oracle listener.Following is exactly a kind of:
Database starts:
connect / as sysdba
startup
exit;
Database stops:
connect / as sysdba
shutdown immediate
exit;
Detection to database:
check=`ps -aef |grepora_pmon_orcl |grep -v grep |awk '{print $2}'`
while [ $check ]
do
sleep 3
check=`ps -aef |grepora_pmon_orcl |grep -v grep |awk '{print $2}' `
done
The detection monitored database:
check=`ps -aef |greptnslsnr |grep -v grep |awk '{print $2}'`
while [ $check ]
do
sleep 3
check=`ps -aef |greptnslsnr |grep -v grep |awk '{print $2}'`
done
(2)And then the duplex software system of deployment loose coupling mode comes monitoring data storehouse, for the place of startup, uses above The program in the log-on data storehouse of exploitation.Similarly, for closing database, the program for closing database above is used.For data The monitoring that storehouse and database are monitored, the resource that EXCE can perform is created in duplex software system, is called in resource developed above Monitoring data library, monitoring data storehouse oracle listener.
After the present invention disperses function, a kind of natural benefit is just generated, is exactly function loose coupling, functional independence portion Administration, deployment and later maintenance all very targetedly, specific deployment are done for specific function, behind specific function except problem Do specific maintenance.
Present invention substantially reduces human cost and cost of implementation, has very strong operability and implementation, for promoting With natural advantage.

Claims (4)

1. carry out the method in monitoring data storehouse in a kind of Linux dual systems using program, it is characterised in that
The close coupling of traditional duplex software is changed into loose coupling, the program function being internally integrated is discharged into outside to load.
2. according to the method described in claim 1, it is characterized in that,
Specific practice is as follows
(1), finish writing external program first, the startup and stopping of the function database of this program, database and The detection of database oracle listener;
(2)And then the duplex software system of deployment loose coupling mode comes monitoring data storehouse, for the place of startup, uses above The program in the log-on data storehouse of exploitation;Similarly, for closing database, the program for closing database above is used;For data The monitoring that storehouse and database are monitored, the resource that EXCE can perform is created in duplex software system, is called in resource developed above Monitoring data library, monitoring data storehouse oracle listener.
3. according to the method described in claim 2, it is characterized in that,
Program is the executable file of the SH forms set in advance, is called with software.
4. according to the method described in claim 3, it is characterized in that,
Specific procedure is:
Database starts:
connect / as sysdba
startup
exit;
Database stops:
connect / as sysdba
shutdown immediate
exit;
Detection to database:
check=`ps -aef |grepora_pmon_orcl |grep -v grep |awk '{print $2}'`
while [ $check ]
do
sleep 3
check=`ps -aef |grepora_pmon_orcl |grep -v grep |awk '{print $2}' `
done
The detection monitored database:
check=`ps -aef |greptnslsnr |grep -v grep |awk '{print $2}'`
while [ $check ]
do
sleep 3
check=`ps -aef |greptnslsnr |grep -v grep |awk '{print $2}'`
done。
CN201711226002.2A 2017-11-29 2017-11-29 Carry out the method in monitoring data storehouse in a kind of Linux dual systems using program Pending CN107943471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711226002.2A CN107943471A (en) 2017-11-29 2017-11-29 Carry out the method in monitoring data storehouse in a kind of Linux dual systems using program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711226002.2A CN107943471A (en) 2017-11-29 2017-11-29 Carry out the method in monitoring data storehouse in a kind of Linux dual systems using program

Publications (1)

Publication Number Publication Date
CN107943471A true CN107943471A (en) 2018-04-20

Family

ID=61947609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711226002.2A Pending CN107943471A (en) 2017-11-29 2017-11-29 Carry out the method in monitoring data storehouse in a kind of Linux dual systems using program

Country Status (1)

Country Link
CN (1) CN107943471A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763126A (en) * 2013-12-27 2014-04-30 乐视网信息技术(北京)股份有限公司 System and method for monitoring database and database monitoring device
US20160170743A1 (en) * 2014-12-10 2016-06-16 Salesforce.Com, Inc. Template based software container
CN106406911A (en) * 2016-10-26 2017-02-15 国云科技股份有限公司 Method for modularizing functions of computer software system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763126A (en) * 2013-12-27 2014-04-30 乐视网信息技术(北京)股份有限公司 System and method for monitoring database and database monitoring device
US20160170743A1 (en) * 2014-12-10 2016-06-16 Salesforce.Com, Inc. Template based software container
CN106406911A (en) * 2016-10-26 2017-02-15 国云科技股份有限公司 Method for modularizing functions of computer software system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
匿名用户: "解释下这个awk正则表达式", 《百度知道》 *

Similar Documents

Publication Publication Date Title
TWI226983B (en) Fault-tolerant computer system, re-synchronization method thereof and storage medium storing re-synchronization program thereof
CN106933570B (en) Aerospace test, launch and control software platform based on plug-in technology
US7574627B2 (en) Memory dump method, memory dump program and computer system
US20050022167A1 (en) Method and system for fast application debugging
US7747698B2 (en) Transaction model for deployment operations
CN105511941B (en) The system and method for the joint operation of multiple management programs in ancillary computer systems
US20080229159A1 (en) Failsafe computer support assistant
CN1700171A (en) Providing direct access to hardware from a virtual environment
Štefanko et al. The saga pattern in a reactive microservices environment
CN102981957B (en) Virtual breakpoint script debugging method
CN103019941B (en) program debugging method and device
US20040049362A1 (en) Same virtual machine mode for distributed test execution
US8856756B2 (en) Simulation control techniques
CN105468429A (en) Efficient virtual cluster management method and cluster node
CN105740139A (en) Virtual environment based embedded software debugging method
US8683267B2 (en) Virtual debugging sessions
ITTO20000805A1 (en) METHOD AND SYSTEM FOR THE AUTOMATIC TECHNICAL SUPPORT OF PROCESSORS.
US20120030649A1 (en) Methods and Systems for Automatic Generation of Multithread-Safe Software Code
CN107943471A (en) Carry out the method in monitoring data storehouse in a kind of Linux dual systems using program
CN110231931A (en) A kind of power supply real-time control module and system
CN105824650B (en) Computer system, adaptive suspend mode control module and its control method
US20150082311A1 (en) Method and system for logging into a virtual environment executing on a host
US9672083B2 (en) Operating a program code object in conjunction with an application context
US20150227319A1 (en) Non-volatile storage device image creation
CN103049359A (en) Testing method for automatic continuous refreshing PMON (process monitor) based on Loongson platform computer

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: 20180420

RJ01 Rejection of invention patent application after publication