Question 1:
Dbstart error: Failed to auto-start Oracle Net Listene using/ade/vikrkuma_new/oracle/bin/tnslsnr
After successfully installing Oracle10G in Linux, switch to the Oracle user and directly use "dbstart" ($ ORACLE_HOME/bin) when the oracle database is started, the following error occurs: "Failed to auto-start Oracle Net Listene using/ade/vikrkuma_new/oracle/bin/tnslsnr". The reason is that the location of the tnslsnr script called by dbstart is incorrect. Solution:
Open the script vim $ ORACLE_HOME/bin/dbstart,
Find the definition of the "ORACLE_HOME_LISTENER" variable,
Modify "ORACLE_HOME_LISTENER =/ade/vikrkuma_new/oracle" --> "ORACLE_HOME_LISTENER = $ ORACLE_HOME"
Question 2:
Dbstart startup does not respond, that is, no error is reported or start information is displayed.
The reason is that the oracle configuration must be modified before dbstart can start the corresponding data instance. Solution:
Su-root
Vim/etc/oratab
Change "orcl:/opt/oracle/product/9.2.0.4: N" --> "orcl:/opt/oracle/product/9.2.0.4: Y", that is, "N" to "Y"
Question 3
> Dbstart
Can't find init file for Database "orcl ".
Database "orcl" NOT started.
The reason is that the init file is not found. My database instance is orcl.
This file is in the $ ORACLE_HOME/dbs/directory.
> Cd $ ORACLE_HOME/dbs
The solution is to establish a soft connection of initorcl. ora.
> Ln-s spfileego. ora initorcl. ora
Question 4: self-starting
When Linux is started, an init program is run, and then init is used to start subsequent tasks, including multi-user environments (set in inittab) and networks. The running level is the function level of the current program running, which ranges from 1 to 6 and has different functions. These levels are specified in the/etc/inittab. This file is the main file searched by the init program. The first running service is stored in the/etc/rc. d directory.
The file starts with "S", which indicates "start", followed by "start sequence", and "K" indicates "kill". Similarly, "Number" indicates the end sequence.
For example,/etc/rc2.d/S10network indicates that it is related to running level 2, and 10 indicates the startup sequence.
Directory introduction:
Init. d
This directory stores some service startup scripts, multiple rpm packages during system installation, which can be used to start, stop, and restart these services during execution.
Rcx. d (x is 0 ~ 6)
This directory is the startup-level execution program Link directory, and the files in it all point to some soft connections of files in the init. d directory.
For more details, please continue to read the 2nd page content:
Oracle database does not respond to dbstart in Linux
Use the dbstart and dbshut scripts to automatically start and stop Databases
Description of Oracle Auto-start, oratab, and dbstart scripts in Linux
The dbstart command in Oracle 9 does not respond or report errors.
Oracle 10 Gb dbstart configuration for auto start
Configure dbstart for Oracle 10 Gb in RedHat AS4 to enable auto-start upon startup