[转]Linux下查看oracle是否启动

在oracle用户下可以用ps -ef|grep ora查看,是否有oracle的进程,如果有,大多数情况说明启动了,为了更进一步验证,可以登录一下,或查看alert日志

如果没启动,就可以在oracle用户下执行以下命令

单机有两种:1和2

1、sqlplus sys/passwd as sysdba,
startup
2、sqlplus /nolog
conn / as sysdba
startup

查看监听的方法
lsnrctl stat
启动监听
lsnrctl start

 

转自:http://www.linuxdiyf.com/viewarticle.php?id=85564

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
可以使用以下命令查看Oracle是否启动: 1. 检查Oracle进程是否存在: ``` ps -ef | grep ora_ ``` 如果看到类似以下输出,则表示Oracle已经启动: ``` oracle 1751 1 0 2018 ? 00:00:00 ora_pmon_orcl oracle 1753 1 0 2018 ? 00:00:02 ora_dbw0_orcl oracle 1755 1 0 2018 ? 00:00:00 ora_lgwr_orcl oracle 1757 1 0 2018 ? 00:00:00 ora_ckpt_orcl oracle 1759 1 0 2018 ? 00:00:00 ora_smon_orcl oracle 1761 1 0 2018 ? 00:00:03 ora_reco_orcl oracle 1763 1 0 2018 ? 00:00:00 ora_mmon_orcl ``` 2. 检查Oracle监听器是否启动: ``` lsnrctl status ``` 如果看到类似以下输出,则表示Oracle监听器已经启动: ``` LSNRCTL for Linux: Version 12.1.0.2.0 - Production on 16-DEC-2019 10:30:02 Copyright (c) 1991, 2014, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 12.1.0.2.0 - Production Start Date 16-DEC-2019 10:29:31 Uptime 0 days 0 hr. 0 min. 30 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/oracle/product/12.1.0/dbhome_1/network/admin/listener.ora Listener Log File /u01/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521))) Services Summary... Service "orcl" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... Service "orclXDB" has 1 instance(s). Instance "orcl", status READY, has 1 handler(s) for this service... The command completed successfully ```

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值