- C:/Documents and Settings/Administrator>lsnrctl start
- LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 08-10月-2007 20:34:44
- Copyright (c) 1991, 2004, Oracle. All rights reserved.
- 启动tnslsnr: 请稍候...
- TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
- 系统参数文件为D:/oracle/product/10.1.0/db_1/network/admin/listener.ora
- 写入D:/oracle/product/10.1.0/db_1/network/log/listener.log的日志信息
- 监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=//./pipe/EXTPROCipc)))
- 监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=lenovo-9664c495)(PORT=1521)))
- 正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
- LISTENER 的 STATUS
- ------------------------
- 别名 LISTENER
- 版本 TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
- 启动日期 08-10月-2007 20:34:48
- 正常运行时间 0 天 0 小时 0 分 4 秒
- 跟踪级别 off
- 安全性 ON: Local OS Authentication
- SNMP OFF
- 监听程序参数文件 D:/oracle/product/10.1.0/db_1/network/admin/listener.ora
- 监听程序日志文件 D:/oracle/product/10.1.0/db_1/network/log/listener.log
- 监听端点概要...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=//./pipe/EXTPROCipc)))
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=lenovo-9664c495)(PORT=1521)))
- 服务摘要..
- 服务 "PLSExtProc" 包含 1 个例程。
- 例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
- 命令执行成功
- C:/Documents and Settings/Administrator>net start oracleservicemelet
- OracleServiceMELET 服务正在启动 ...............
- OracleServiceMELET 服务已经启动成功。
- C:/Documents and Settings/Administrator>sqlplus melet/melet@melet as sysdba
- SQL*Plus: Release 10.1.0.2.0 - Production on 星期一 10月 8 20:38:59 2007
- Copyright (c) 1982, 2004, Oracle. All rights reserved.
- 连接到:
- Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
- With the Partitioning, OLAP and Data Mining options
- SQL> select * from employee
- 2 /
- ID FIRST_NAME LAST_NAME START_DATE END_DATE SALARY CITY
- ---- ---------- ---------- -------------- -------------- ---------- ----------
- DESCRIPTION
- ---------------
- 01 Jason Martin 25-7月 -96 25-7月 -06 1234.56 Toronto
- Programmer
- 02 Alison Mathews 21-3月 -76 21-2月 -86 6661.78 Vancouver
- Tester
- SQL> --数据库名
- SQL> select name from v$database
- 2 /
- NAME
- ---------
- MELET
- SQL> --实例名
- SQL> select instance_name from v$instance;
- INSTANCE_NAME
- ----------------
- melet
- SQL> --退出服务
- SQL> net stop oracleservicemelet
- SP2-0734: 未知的命令开头 "net stop o..." - 忽略了剩余的行。
- SQL> exit
- 从 Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
- With the Partitioning, OLAP and Data Mining options 断开
- C:/Documents and Settings/Administrator>net stop oracleservicemelet
- OracleServiceMELET 服务正在停止......
- OracleServiceMELET 服务已成功停止。
- C:/Documents and Settings/Administrator>lsnrctl status
- LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 08-10月-2007 20:54:35
- Copyright (c) 1991, 2004, Oracle. All rights reserved.
- 正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
- LISTENER 的 STATUS
- ------------------------
- 别名 LISTENER
- 版本 TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production
- 启动日期 08-10月-2007 20:34:48
- 正常运行时间 0 天 0 小时 19 分 50 秒
- 跟踪级别 off
- 安全性 ON: Local OS Authentication
- SNMP OFF
- 监听程序参数文件 D:/oracle/product/10.1.0/db_1/network/admin/listener.ora
- 监听程序日志文件 D:/oracle/product/10.1.0/db_1/network/log/listener.log
- 监听端点概要...
- (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=//./pipe/EXTPROCipc)))
- (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=lenovo-9664c495)(PORT=1521)))
- 服务摘要..
- 服务 "PLSExtProc" 包含 1 个例程。
- 例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
- 命令执行成功
- C:/Documents and Settings/Administrator>lsnrctl stop
- LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 08-10月-2007 20:54:55
- Copyright (c) 1991, 2004, Oracle. All rights reserved.
- 正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
- 命令执行成功
- C:/Documents and Settings/Administrator>
DOS下启动oracle监听
最新推荐文章于 2024-04-13 10:20:48 发布