码迷,mamicode.com
首页 > 数据库 > 详细

How to start/stop DB instance of Oracle under Linux

时间:2014-05-09 15:10:41      阅读:380      评论:0      收藏:0      [点我收藏+]

标签:oracle

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,布布扣,bubuko.com

How to start/stop DB instance of Oracle under Linux

标签:oracle

原文地址:http://blog.csdn.net/alexgreenbar/article/details/25371227

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!