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 PDFInfo
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3055—Monitoring 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Quality & Reliability (AREA)
- Mathematical Physics (AREA)
- Hardware Redundancy (AREA)
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
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。
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)
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 |
-
2017
- 2017-11-29 CN CN201711226002.2A patent/CN107943471A/en active Pending
Patent Citations (3)
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)
Title |
---|
匿名用户: "解释下这个awk正则表达式", 《百度知道》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
DE102020120102A1 (en) | Global permanent memory flush | |
CN106933570B (en) | Aerospace test, launch and control software platform based on plug-in technology | |
US7418697B2 (en) | Method and system for fast application debugging | |
US7685474B2 (en) | Failsafe computer support assistant using a support virtual machine | |
US7574627B2 (en) | Memory dump method, memory dump program and computer system | |
Štefanko et al. | The saga pattern in a reactive microservices environment | |
DE112007001321T5 (en) | Execution of a secure environment initialization command in a point-to-point connection system | |
CN1722092A (en) | VEX - virtual extension framework | |
CN1700171A (en) | Providing direct access to hardware from a virtual environment | |
CN101764703B (en) | Implementing method of network element management system based on virtual technology | |
CN103019941B (en) | program debugging method and device | |
US20040049362A1 (en) | Same virtual machine mode for distributed test execution | |
CN104123194A (en) | Communication structure and method for kernel mode and user mode | |
US8856756B2 (en) | Simulation control techniques | |
CN105740139A (en) | Virtual environment based embedded software debugging method | |
US20120102358A1 (en) | Server having memory dump function and memory dump acquisition method | |
US20120317443A1 (en) | Virtual debugging sessions | |
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 | |
CN110045992A (en) | A kind of general-purpose system and method suitable for multicore board | |
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 | |
US8924972B2 (en) | Method and system for logging into a virtual environment executing on a host | |
CN104102583A (en) | High-availability cluster software distributed automated testing framework | |
US9672083B2 (en) | Operating a program code object in conjunction with an application context |
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 |