c 判断mysql服务是否启动_Oracle查看数据库与数据库监听启动状态

1、数据库状态查询:

SQL>select status from v$instance;

2、数据库监听状态查询:

C:/Documents and Settings/skate_db>lsnrctl status1、数据库状态命令结果详解:

oracle.orca@/export/home/oracle > sqlplus / as sysdba

SQL*Plus: Release 11.2.0.1.0 Production on Mon Aug 24 10:40:38 2015

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select status from v$instance;

STATUS

------------

OPEN2、数据库监听命令结果详情:

C:/Documents and Settings/skate_db>lsnrctl status

LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 19-7月 -2008

12:1

1:19

Copyright (c) 1991, 2005, Oracle. All rights reserved.

正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))

LISTENER 的

STATUS

------------------------

别名

LISTENER

版本

TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 -

Produ

ction

启动日期

19-7月 -2008

11:47:59

正常运行时间

0 天 0 小时 23 分 19秒

跟踪级别

off

安全性

ON: Password or Local OS

Authentication

SNMP

OFF

监听程序参数文件

E:/oracle/product/10.2.0/db_3/network/admin/listener.ora

监听程序日志文件

E:/oracle/product/10.2.0/db_3/network/log/listener.log

监听端点概要...

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=//./pipe/EXTPROC1ipc)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=skate)(PORT=1522)))

服务摘要..

服务

"PLSExtProc" 包含 1 个例程。

例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...

服务

"orcl" 包含 1 个例程。

例程 "orcl", 状态 READY, 包含此服务的 1 个处理程序...

服务 "orclXDB" 包含 1个例程。

例程 "orcl", 状态 READY, 包含此服务的 1 个处理程序...

服务 "orcl_XPT" 包含 1 个例程。

例程

"orcl", 状态 READY, 包含此服务的 1 个处理程序...

命令执行成功2、数据库监听本地查询结果:

oracle.orca@/export/home/oracle > lsnrctl status

LSNRCTL for Solaris: Version 11.2.0.1.0 - Production on 24-AUG-2015 10:49:42

Copyright (c) 1991, 2009, Oracle.  All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

STATUS of the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Solaris: Version 11.2.0.1.0 - Production

Start Date                24-AUG-2015 10:34:13

Uptime                    0 days 0 hr. 15 min. 28 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Log File         /u01/app/oracle/diag/tnslsnr/T5120/listener/alert/log.xml

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=T5120)(PORT=1521)))

Services Summary...

Service "orca" has 1 instance(s).

Instance "orca", status READY, has 1 handler(s) for this service...

Service "orcaXDB" has 1 instance(s).

Instance "orca", 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、付费专栏及课程。

余额充值