1、 查看监听状态
lsnrctl status
C:\Users\admin>lsnrctl status, 未启动的状态 LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 22-10月-2013 09:2 Copyright (c) 1991, 2010, Oracle. All rights reserved. 正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) |
2、启动监听
lsnrctl start
C:\Users\admin>lsnrctl start LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 22-10月-2013 09:32:06 Copyright (c) 1991, 2010, Oracle. All rights reserved. 启动tnslsnr: 请稍候... TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production 正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) |
3、查看监听状态
lsnrctl status
C:\Users\admin>lsnrctl status,启动后的状态 LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 22-10月-2013 09:33:39 Copyright (c) 1991, 2010, Oracle. All rights reserved. 正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) |
4、停止监听
lsnrctl stop
C:\Users\admin>lsnrctl stop LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 22-10月-2013 09:34:53 Copyright (c) 1991, 2010, Oracle. All rights reserved. 正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) |
5、命令详解
C:\Users\admin>lsnrctl help LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 23-10月-2013 16:01:19 Copyright (c) 1991, 2010, Oracle. All rights reserved. 以下操作可用 start stop status |