CN106227564A - Timed task system based on Linux - Google Patents

Timed task system based on Linux Download PDF

Info

Publication number
CN106227564A
CN106227564A CN201610586600.XA CN201610586600A CN106227564A CN 106227564 A CN106227564 A CN 106227564A CN 201610586600 A CN201610586600 A CN 201610586600A CN 106227564 A CN106227564 A CN 106227564A
Authority
CN
China
Prior art keywords
linux
oracle
crond
weblogic
oracle database
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
CN201610586600.XA
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.)
Inspur Software Group Co Ltd
Original Assignee
Inspur Software Group 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 Software Group Co Ltd filed Critical Inspur Software Group Co Ltd
Priority to CN201610586600.XA priority Critical patent/CN106227564A/en
Publication of CN106227564A publication Critical patent/CN106227564A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a timing task system based on Linux, and relates to a server-side Linux technology. The invention mainly comprises 1) a crond and Oracle database, 2) a crond and WebLogic application server, wherein the crond and Oracle database comprises (i) an Oracle boot self-starting in Linux; oracle database backup at regular time; the crond and WebLogic application server comprises WebLogic starting self-starting in the Linux. Plays a very important role in the robust operation of the Linux-based application system.

Description

A kind of timed task system based on Linux
Technical field
The present invention relates to server end Linux technology, particularly relate to a kind of timed task system based on Linux.
Background technology
Background process be a kind of computer background run need not be mutual with user program.In multiple task operating system On often run multiple background process, some background process (such as demons) the most all need not user input, other Some processes are simply in backstage when user is busy with the program being presently operating in foreground the most temporarily.Finger daemon is a kind of typical case Background process.Crond process is the one in (SuSE) Linux OS in numerous finger daemon daemon, is used for periodically Automatically perform certain task or etc. some event pending, similar with the Mission Planning Program in Windows..
At server end, Windows operating system real-time based on C Plus Plus and stability are all not as good as based on C language (SuSE) Linux OS, therefore, in the application that stability requirement is the highest, server end uses (SuSE) Linux OS strong Strong property and economy two aspect are the most all preferably to select.
Summary of the invention
In order to solve problem above, the present invention proposes a kind of timed task system based on Linux.
The present invention, based on server end Linux technology, enumerates shell script, crond finger daemon, and crontab joins Putting file, oracle database environmental variable is arranged and data backup, and WebLogic middleware environments variable is arranged, Automatic Program The contents such as startup
A kind of timed task system based on Linux,
Mainly include 1) crond and oracle database, 2) crond Yu WebLogic application server,
Wherein crond includes with oracle database
1. in Linux, Oracle start is opened certainly;2. oracle database timed backup;
Crond with WebLogic application server includes
1. in Linux, WebLogic start is opened certainly.
Further,
1. in Linux, Oracle start is opened certainly
Step one: amendment Oracle CONFIG.SYS :/etc/oratab;
Step 2: creating file oracle under/etc/init.d/, type is shell script;
Step 3: change the file permission of step 2 establishment for performing;
Step 4: oracle service is added in registration in linux system, and rank can be 3,5;
2. oracle database timed backup
Step one: log in Linux server with root user;
Step 2: create oracle database backup shell script;
Step 3: editing system task scheduling, sets and performs time point;
Step 4: restart crond process.
Further,
1. in Linux, WebLogic start is opened certainly
Step one: creating file weblogic under/etc/init.d/, type is shell script;
Step 2: change the file permission of step one establishment for performing;
Step 3: weblogic service is added in registration in linux system, and rank can be 3,5.
In Linux server, during production task needed for timing automatic execution is set, need Hand writing command script, It is as shown in the table that parameter arranges form:
minute hour day month week command
Each explanation of field is as shown in the table:
In each field above, it is also possible to use following spcial character:
1, asterisk (*): represent all possible value, such as month field is if asterisk, then it represents that meeting other word This command operation monthly it is carried out after the restriction condition of section.
2, comma (): a list scope, such as " 1,2,5,7,8,9 " can be specified by the value that comma separates
3, Zhong Gang (-): an integer range can be represented with the middle thick stick between integer, such as " 2-6 " expression " 2,3,4,5, 6”
4, positive oblique line (/): can with positive oblique line specify the time spacing frequency, such as " 0-23/2 " represent every two hours hold Row is once.The most positive oblique line can be used together with asterisk, and such as */10, if used in minute field, represent every ten minutes Perform once.
The Server-side of the Web application architecture B/S pattern that the present invention is directed to modern main uses Linux to operate in a large number This situation of system, the start of program performs the sound and stable operation to application system based on Linux from the timing opened with task To very important effect.
Accompanying drawing explanation
Fig. 1 is that crond is called by kernel, and calls the schematic diagram of other scripts.
Detailed description of the invention
Below present disclosure is carried out more detailed elaboration:
1) crond and oracle database
1. in Linux, Oracle start is opened certainly
Step one: amendment Oracle CONFIG.SYS :/etc/oratab, only in this way, Oracle carries Dbstart and dbshut can play a role.
Step 2: creating file oracle under/etc/init.d/, type is shell script.
Step 3: change the file permission of step 2 establishment for performing.
Step 4: oracle service is added in registration in linux system, and rank can be 3,5.
2. oracle database timed backup
Step one: log in Linux server with root user.
Step 2: create oracle database backup shell script.
Step 3: editing system task scheduling, sets and performs time point.
Step 4: restart crond process.
2) crond Yu WebLogic application server
1. in Linux, WebLogic start is opened certainly
Step one: creating file weblogic under/etc/init.d/, type is shell script.
Step 2: change the file permission of step one establishment for performing.
Step 3: weblogic service is added in registration in linux system, and rank can be 3,5.

Claims (3)

1. a timed task system based on Linux, it is characterised in that
Mainly include 1) crond and oracle database, 2) crond Yu WebLogic application server,
Wherein crond includes with oracle database
1. in Linux, Oracle start is opened certainly;2. oracle database timed backup;
Crond with WebLogic application server includes
1. in Linux, WebLogic start is opened certainly.
System the most according to claim 1, it is characterised in that
1. in Linux, Oracle start is opened certainly
Step one: amendment Oracle CONFIG.SYS :/etc/oratab;
Step 2: creating file oracle under/etc/init.d/, type is shell script;
Step 3: change the file permission of step 2 establishment for performing;
Step 4: oracle service is added in registration in linux system, and rank can be 3,5;
2. oracle database timed backup
Step one: log in Linux server with root user;
Step 2: create oracle database backup shell script;
Step 3: editing system task scheduling, sets and performs time point;
Step 4: restart crond process.
System the most according to claim 1, it is characterised in that
1. in Linux, WebLogic start is opened certainly
Step one: creating file weblogic under/etc/init.d/, type is shell script;
Step 2: change the file permission of step one establishment for performing;
Step 3: weblogic service is added in registration in linux system, and rank is 3,5.
CN201610586600.XA 2016-07-22 2016-07-22 Timed task system based on Linux Pending CN106227564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610586600.XA CN106227564A (en) 2016-07-22 2016-07-22 Timed task system based on Linux

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610586600.XA CN106227564A (en) 2016-07-22 2016-07-22 Timed task system based on Linux

Publications (1)

Publication Number Publication Date
CN106227564A true CN106227564A (en) 2016-12-14

Family

ID=57532697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610586600.XA Pending CN106227564A (en) 2016-07-22 2016-07-22 Timed task system based on Linux

Country Status (1)

Country Link
CN (1) CN106227564A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315604A (en) * 2017-06-08 2017-11-03 贵州电网有限责任公司 A kind of unix system Database and application program self-start method
CN108874658A (en) * 2017-12-25 2018-11-23 北京安天网络安全技术有限公司 A kind of sandbox analysis method, device, electronic equipment and storage medium
CN109254805A (en) * 2018-09-21 2019-01-22 武汉斗鱼网络科技有限公司 A kind of application self-start method, terminal installation and readable storage medium storing program for executing

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
MDXY-DXY: "Linux下通过脚本自动备份Oracle数据库并删除指定天数前的备份", 《HTTPS://WWW.JB51.NET/ARTICLE/69312.HTM》 *
一路狂笑: "自动启动WebLogic系统的服务脚本", 《HTTP://BLOG.CHINAUNIX.NET/UID-20164485-ID-1973841.HTML》 *
脚本之家: "linux下oracle设置开机自启动实现方法", 《HTTPS://WWW.JB51.NET/ARTICLE/32214.HTM》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315604A (en) * 2017-06-08 2017-11-03 贵州电网有限责任公司 A kind of unix system Database and application program self-start method
CN108874658A (en) * 2017-12-25 2018-11-23 北京安天网络安全技术有限公司 A kind of sandbox analysis method, device, electronic equipment and storage medium
CN109254805A (en) * 2018-09-21 2019-01-22 武汉斗鱼网络科技有限公司 A kind of application self-start method, terminal installation and readable storage medium storing program for executing

Similar Documents

Publication Publication Date Title
EP3249523B1 (en) Zero downtime maintenance in constrained systems
US8671074B2 (en) Logical replication in clustered database system with adaptive cloning
US11102084B2 (en) Fault rectification method, device, and system
Rattanaopas et al. Improving Hadoop MapReduce performance with data compression: A study using wordcount job
CN106227564A (en) Timed task system based on Linux
CN108536752A (en) A kind of method of data synchronization, device and equipment
CN104965879A (en) Method and device for altering table structure of data table
CN106157129B (en) Method and device for realizing cross-time domain consistency of distributed system
CN108200070B (en) Method and device for generating list
US11308120B2 (en) Automated performing of replication tasks in a multiple database system
US20170269926A1 (en) Server program hot upgrading method and device
EP3417371A1 (en) Model based upgrade campaign generation
US10824642B2 (en) Data synchronization architecture
CN103984574A (en) Method and system for updating website
US11327788B2 (en) Methods for scheduling multiple batches of concurrent jobs
CN109657317B (en) CPLD pin allocation method, system and equipment
CN104462342A (en) Synchronous processing method and device for database snapshots
CN104462344B (en) In the processing method and processing device of destination server structure ETL system
CN106843822B (en) Execution code generation method and equipment
CN104462353B (en) Database batch synchronization processing method and processing device
US20190268180A1 (en) Method and system for high availability topology for master-slave data systems with low write traffic
CN110647319A (en) Functional module decoupling method and system
CN109542598B (en) Timed task management method and device
US7877422B2 (en) Method and system for processing 1:N relationships between data object nodes
CN115956240B (en) Incremental clone based database upgrades

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