Automating Oracle database startup on Linux
Log in to Linux as root.
Copy the Oracle startup script oracled.tar.gz from the /manual directory of the IMC installation package to the Linux operating system.
Decompress the script file.
tar -xzf oracled.tar.gz
Copy the decompressed file to the /etc/rc.d/init.d directory.
cp oracled /etc/rc.d/init.d/
Change the file permissions.
chmod –R 755 oracled
Add the script to the startup configuration file of the Linux operating system.
chkconfig --add oracled
Open the Oracle configuration file /etc/oratab.
vi /etc/oratab
Set the following line to Y.
orcl:/u01/app/oracle/product/12.1.0/db_1:Y
Save and close the file.
The Oracle database automatically starts at the Linux startup.
To manually start or stop the Oracle database, use the following commands:
service oracled start service oracled stop