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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值