Under the Linux host configuration automatically start Oracle 10G
Open terminal run:
$ su - root
# chown oracle.oinstall / etc / rc.d / init.d / oradbstart
# chmod 775 / etc / rc.d / init.d / oradbstart
Then run:
chkconfig - add oradbstart
chkconfig - list oradbstart
chkconfig - list oradbstart results:
oradbstart 0: off 1: off 2: off 3: on 4: on 5: on 6: off
5. Inspection:
According to the results above, when the appropriate level of on time running (for example: 5: on), in the corresponding / etc / rc.d / rcN.d (for example: and 5: on the corresponding
Is: / etc/rc.d/rc5.d) will generate a document the following: S99oradbstart, the use of vi S99oradbstart open the file, you can see the contents of the document
And / etc / rc.d / init.d / oradbstart the same content that the configuration successfully, in fact, S99oradbstart is a to / etc / rc.d / init.d / oradbstart link
We can use the file command to see:
$ file / etc/rc.d/rc5.d/S99oradbstart
S99oradbstart: symbolic link to '.. / init.d / oradbstart
6. A little note:
Script file: # chkconfig: 345 99 10
Pointed out that the 3,4,5-level to start the service, 99 are in the appropriate / etc / rc.d / rcN.d (N for the front of the specified level, this is 345) the link directory to generate the serial number of documents (Kai
Dynamic priority) S99oradbstart, 10 as noted above, in addition to the level of the corresponding / etc / rc.d / rcN.d (N for the outside in addition to 345-level) directory of links to documents generated by the serial number (service
Treasury to stop the priority level) K10oradbstart.
Tags: oracle, oracle 10g, script file, init, serial number, linux, treasury, dynamic priority, priority level, terminal run, linux host, rc5, level directory, host configuration, symbolic link, chmod, rcn, link directory, kai
Permalink: http://www.kods.netwww.kods.net/under-the-linux-host-configuration-automatically-start-oracle-10g/
















