CN107315604A - A kind of unix system Database and application program self-start method - Google Patents

A kind of unix system Database and application program self-start method Download PDF

Info

Publication number
CN107315604A
CN107315604A CN201710426032.1A CN201710426032A CN107315604A CN 107315604 A CN107315604 A CN 107315604A CN 201710426032 A CN201710426032 A CN 201710426032A CN 107315604 A CN107315604 A CN 107315604A
Authority
CN
China
Prior art keywords
application program
under
program self
script
starting
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
CN201710426032.1A
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.)
Guizhou Power Grid Co Ltd
Original Assignee
Guizhou Power Grid 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 Guizhou Power Grid Co Ltd filed Critical Guizhou Power Grid Co Ltd
Priority to CN201710426032.1A priority Critical patent/CN107315604A/en
Publication of CN107315604A publication Critical patent/CN107315604A/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
    • G06F9/4451User profiles; Roaming

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)
  • Stored Programmes (AREA)

Abstract

The invention discloses a kind of unix system Database and application program self-start method, described method is for UNIX operating system, write startup script, after os starting, automatic perform starts script, realizes the self-starting of Database and application program, by way of increasing script in computer software platform, sybase databases and DF1800 application programs, oracle database and DF8003c application program self-startings are realized, so as to overcome prior art not enough.

Description

A kind of unix system Database and application program self-start method
Technical field
The present invention relates to a kind of unix system Database and application program self-start method, belong to computer software technology neck Domain.
Background technology
In power system, collection control at present and more than 220kV transformer stations use UNIX operating system, though the system has The characteristics of reliability, security and stability, but inconvenience also is brought to maintenance and operations staff, particularly large-scale collection control is adopted With large databases such as sybase and oracle, every time restarting server be intended to input numerous order log-on data storehouse and Application program, and according to producer, operating system(Such as solaris, IBM AIX and HPUNIX)Difference, database and should The order started with program is also inconsistent, considerably increases the complexity of attendant, once particularly server power-off restarting, Operations staff on duty will not start order, then have to related maintenance personnel and started to scene, so as to cause operating efficiency Lowly, human hand wretched insufficiency.
The content of the invention:
The purpose of the present invention is a kind of unix system Database and application program self-start method, by computer software platform The mode of interior increase script, realizes sybase databases and DF1800 application programs, oracle database and DF8003c application journeys Sequence self-starting, so as to overcome prior art not enough.
Technical scheme is as follows:A kind of unix system Database and application program self-start method, described side Method is, for UNIX operating system, to write startup script, after os starting, and automatic perform starts script, realizes data Storehouse and the self-starting of application program.
Described startup script includes sybase databases and DF1800 application program self-startings script, oracle database And DF8003c application program self-starting scripts.
Described sybase databases and the implementation method of DF1800 application program self-starting scripts comprise the following steps:
The first step, under sybase user /export/home/sybase catalogues under newly-built dbstart.sh, after building up preserve And exit sybase catalogues;
The authority of second step, modification file dbstart.sh;
3rd step, computer is switched to root user, S91sybase files are set up under/etc/rc3.d catalogues;
4th step, under root user, Xstartup files are changed under/usr/dt/config catalogues, and in Xstartup texts The increase of part last column:su - df1800 -c "/export/home/df1800/bin/nsp";
Restart computer after 5th step, preservation Xstartup files.
Described oracle database and DF8003c application program self-starting script realization methods comprises the following steps:
The first step, under oracle user, the newly-built dbstart.sh files under/export/home/oracle catalogues are built up After preserve and exit dbstart.sh files;
The authority of second step, modification file dbstart.sh;
3rd step, switching computer to root user, S91oracle is set up under/sbin/rc3.d catalogues;
4th step, under root user, Xstartup files are changed under/usr/dt/config catalogues, are increased in last column Plus:su - df8003c -c "/export/home/df8003c/bin/sysmon";Restart computer after building up preservation.
Compared with the prior art, after using database and application program self-starting script, there is following effect:
1. database self-starting:Into after system desktop, it can be found that sybase databases, are normally opened after being tested with order It is dynamic, the order without manually knocking in numerous complicated.
2. application program self-starting:Find, application program nsp and demons also have been turned on, represent after being checked with order Server application has been started up, and client can voluntarily connect completion data transmit-receive.
3. it is simple and practical:Traditional approach, to input substantial amounts of order could complete startup of server, amateur to safeguard people Member is difficult to complete;After self-starting script, only need to login interface input username and password, then server database and Application program is with regard to automatic start, and anyone can complete, simple and practical.
Brief description of the drawings:
Fig. 1 is to be not carried out database and application program self-starting script sectional drawing;
Fig. 2 is executed database and application program self-starting script sectional drawing.
Embodiment
The invention will be further described below in conjunction with the accompanying drawings.
For UNIX operating system, startup script is write, it is automatic to perform " startup script " after os starting, it is real Existing database startup and the self-starting of application program, both can guarantee that the safe and stable operation of server, and can greatly reduce maintenance again The workload of personnel.
By taking Guiyang Power Supply Bureau as an example, current script can realize south of a city collection control sybase databases and DF1800 application programs certainly Start and collection control oracle Database and application program df8003c self-startings are built in south, script is as follows:
1. south of a city collection control (SUN Solaris) sybase databases and DF1800 application program launching scripts
(1)Sybase self-starting scripts
1. under sybase user, the newly-built dbstart.sh under/export/home/sybase, content is as follows:
/export/home/sybase/ASE-12_0/install/startserver -f /export/home/sybase/ ASE-12_0/install/RUN_gzsrv
rm -f /export/home/sybase/gzsrv.krg
Then preserve and exit.
2. file dbstart.sh authority is changed
chmod 777 dbstart.sh
3. root user is switched to, S91sybase is set up under/etc/rc3.d, content is:
su - sybase -c "/export/home/sybase/dbstart.sh"
(2)Df1800 self-starting scripts
Root user is switched to, Xstartup is changed under/usr/dt/config, in last column increase:
su - df1800 -c "/export/home/df1800/bin/nsp"
Restart after preservation.
2. collection control (HP-UNIX) oracle database and DF8003c application program launching scripts are built in south
(1)Oracle self-starting scripts
1. under oracle user, the newly-built dbstart.sh under/export/home/oracle, content is as follows:
Dbstart.sh contents are
lsnrctl start
sqlplus /nolog <<eof
connect /as sysdba
startup
exit
eof
Then preserve and exit.
2. file dbstart.sh authority is changed
chmod 777 dbstart.sh
3. root user is switched to, S91oracle is set up under/sbin/rc3.d, content is:
su - oracle -c "/export/home/oracle/dbstart.sh"
(2)Df8003c self-starting scripts
Root user is switched to, Xstartup is changed under/usr/dt/config, in last column increase:
Su-df8003c-c "/export/home/df8003c/bin/sysmon ", restart after preservation.
It will be seen from figure 1 that into after system, database is not actuated, and application program can not also start.Complete corresponding Scripting Edition is preserved, and is restarted after computer as can be seen from Figure 2:
1. database self-starting:Into after system desktop, it can be found that sybase databases, are normally opened after being tested with order It is dynamic, the order without manually knocking in numerous complicated.
2. application program self-starting:Find, application program nsp and demons also have been turned on, represent after being checked with order Server application has been started up, and client can voluntarily connect completion data transmit-receive.
3. it is simple and practical:Traditional approach, to input substantial amounts of order could complete startup of server, amateur to safeguard people Member is difficult to complete;After self-starting script, only need to login interface input username and password, then server database and Application program is with regard to automatic start, and anyone can complete, simple and practical.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention, therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (4)

1. a kind of unix system Database and application program self-start method, it is characterised in that:Described method is for UNIX Operating system, writes startup script, after os starting, and automatic perform starts script, realizes Database and application program Self-starting.
2. a kind of unix system Database and application program self-start method according to claim 1, it is characterised in that:Institute The startup script stated includes sybase databases and DF1800 application program self-startings script, oracle database and DF8003c Application program self-starting script.
3. a kind of unix system Database and application program self-start method according to claim 2, it is characterised in that:Institute The sybase databases and the implementation method of DF1800 application program self-starting scripts stated comprise the following steps:
The first step, under sybase user /export/home/sybase catalogues under newly-built dbstart.sh, after building up preserve And exit sybase catalogues;
The authority of second step, modification file dbstart.sh;
3rd step, computer is switched to root user, S91sybase files are set up under/etc/rc3.d catalogues;
4th step, under root user, Xstartup files are changed under/usr/dt/config catalogues, and in Xstartup texts The increase of part last column:su - df1800 -c "/export/home/df1800/bin/nsp";
Restart computer after 5th step, preservation Xstartup files.
4. a kind of unix system Database and application program self-start method according to claim 2, it is characterised in that:Institute The oracle database and DF8003c application program self-starting script realization methods stated comprise the following steps:
The first step, under oracle user, the newly-built dbstart.sh files under/export/home/oracle catalogues are built up After preserve and exit dbstart.sh files;
The authority of second step, modification file dbstart.sh;
3rd step, switching computer to root user, S91oracle is set up under/sbin/rc3.d catalogues;
4th step, under root user, Xstartup files are changed under/usr/dt/config catalogues, are increased in last column Plus:su - df8003c -c "/export/home/df8003c/bin/sysmon";Restart computer after building up preservation.
CN201710426032.1A 2017-06-08 2017-06-08 A kind of unix system Database and application program self-start method Pending CN107315604A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710426032.1A CN107315604A (en) 2017-06-08 2017-06-08 A kind of unix system Database and application program self-start method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710426032.1A CN107315604A (en) 2017-06-08 2017-06-08 A kind of unix system Database and application program self-start method

Publications (1)

Publication Number Publication Date
CN107315604A true CN107315604A (en) 2017-11-03

Family

ID=60181733

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710426032.1A Pending CN107315604A (en) 2017-06-08 2017-06-08 A kind of unix system Database and application program self-start method

Country Status (1)

Country Link
CN (1) CN107315604A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860338A (en) * 2021-01-29 2021-05-28 中国农业银行股份有限公司 Software starting method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110030419A1 (en) * 2009-08-07 2011-02-10 Hitachi Appliances, Inc. Self-starting permanent magnet synchronous motor and compressor and refrigeration cycle using the same
US20160274647A1 (en) * 2015-03-20 2016-09-22 Sanken Electric Co., Ltd. Micro Controller Unit
CN106227564A (en) * 2016-07-22 2016-12-14 浪潮软件集团有限公司 Timed task system based on Linux
CN106572392A (en) * 2016-11-15 2017-04-19 深圳前海茂佳软件科技有限公司 Application self starting method based on intelligent television, device and intelligent television

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110030419A1 (en) * 2009-08-07 2011-02-10 Hitachi Appliances, Inc. Self-starting permanent magnet synchronous motor and compressor and refrigeration cycle using the same
US20160274647A1 (en) * 2015-03-20 2016-09-22 Sanken Electric Co., Ltd. Micro Controller Unit
CN106227564A (en) * 2016-07-22 2016-12-14 浪潮软件集团有限公司 Timed task system based on Linux
CN106572392A (en) * 2016-11-15 2017-04-19 深圳前海茂佳软件科技有限公司 Application self starting method based on intelligent television, device and intelligent television

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860338A (en) * 2021-01-29 2021-05-28 中国农业银行股份有限公司 Software starting method and device

Similar Documents

Publication Publication Date Title
US8442951B1 (en) Processing archive content based on hierarchical classification levels
WO2015139473A1 (en) Method for managing and controlling system configuration document in intelligent substation
CN107450961A (en) A kind of distributed deep learning system and its building method, method of work based on Docker containers
CN108804768A (en) One kind making the light-weighted method of BIM models
CN103235725A (en) Linux-based rapid deployment method for Oracle database in cloud computing
CN107861737A (en) A kind of database version moving method of large scale system
CN107315604A (en) A kind of unix system Database and application program self-start method
CN107229509A (en) The creation method of container type virtual machine under a kind of platform of soaring
US10019185B2 (en) System and method for copying directory structures
CN106775884A (en) Method and equipment for upgrading control program of wind generating set
CN102546837B (en) Virtual host input-output redirection system and implementation method thereof
CN106250267A (en) The data back up method of a kind of virtual machine and device
Wang et al. The researches on public service information security in the context of big data
JP2021056686A (en) System, device, method, and program for processing information
US11861428B2 (en) Service orchestration method, apparatus and device for physical machine, and storage medium
CN104461767B (en) A kind of information processing method and the first electronic equipment
CN107071012B (en) Method, device and system for automatically connecting cloud terminal to virtual machine
Juric et al. Checkpoint, Restore, and Live Migration for Science Platforms
US20060173843A1 (en) Method and system for flexibly providing shared access to data pools
CN111241553A (en) BIOS (basic input output System) permission setting method, device, equipment and storage medium
Jinhui et al. Network center's highly-efficient management solutions based on intel pxe-based remote cloning system
CN101883130B (en) Storage method and device of page frame stream conversation information
CN105224366A (en) A kind of method to batch refresh FRU, DMI in high density rack node band
Lu et al. Design and research of cloud virtual simulation experiment teaching case in the Period of COVID-19
CN109286518A (en) A kind of method and system of interactive configuration ceph clustered node multi-mode binding

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171103