How to start/stop DB instance of Oracle under Linux

Posted mthoutai

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了How to start/stop DB instance of Oracle under Linux相关的知识,希望对你有一定的参考价值。

All below actions should be executed with "oracle" user account



1. Check the status of listener
$ lsnrctl status


2. If the listener isn‘t be started, start it
$ lsnrctl start


3. Set the "ORACLE_SID" environment to the DB instance‘s SID which you want to start, for example
$ export ORACLE_SID=PC855


4. Start sqlplus and start the DB instance
$ sqlplus "/as sysdba"
SQL> startup


5. If you want to stop the DB instance
$ sqlplus "/as sysdba"
SQL> shutdown immediate


6. Check the DB instance status again
$ lsnrctl status


Notes:

1. Make sure the listener be started before starting the DB instance
2. Make sure the ORACLE_SID environment has been set correctly
3. To configure the listener
$ netca
or
$ netmgr
4. To configure the DB instance
$ dbca






































以上是关于How to start/stop DB instance of Oracle under Linux的主要内容,如果未能解决你的问题,请参考以下文章

ROS进二阶学习笔记 - programmatic way to start/stop a roslaunch

How to install fixpack on DB2

How to install fixpack on DB2

How to backup a remote PostgreSQL db and restore it locally?

How To Upgrade ASM from 10.2 to 11.1 (RAC)

How-to setup MySQL HA by using keepalived