XP系统在命令提示符下启动Oracle监听及服务:
C:\Documents and Settings\user>lsnrctl start
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 20-8月 -2009 14:24:40
Copyright (c) 1991, 2005, Oracle. All rights reserved.
启动tnslsnr: 请稍候...
TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
系统参数文件为D:\oracle\product\10.2.0\db_1\network\admin\listener.ora
写入D:\oracle\product\10.2.0\db_1\network\log\listener.log的日志信息
监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=zhaisx_ibm)(PORT=1521)))
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
LISTENER 的 STATUS
------------------------
别名 LISTENER
版本 TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
启动日期 20-8月 -2009 14:24:42
正常运行时间 0 天 0 小时 0 分 1 秒
跟踪级别 off
安全性 ON: Local OS Authentication
SNMP OFF
监听程序参数文件 D:\oracle\product\10.2.0\db_1\network\admin\listener.ora
监听程序日志文件 D:\oracle\product\10.2.0\db_1\network\log\listener.log
监听端点概要...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1ipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=zhaisx_ibm)(PORT=1521)))
服务摘要..
服务 "PLSExtProc" 包含 1 个例程。
例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...
命令执行成功
C:\Documents and Settings\user>net start oracleserviceorcl
OracleServiceORCL 服务正在启动 ........
OracleServiceORCL 服务已经启动成功。
C:\Documents and Settings\user>sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on 星期四 8月 20 14:25:53 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> connect xtlm@orcl
输入口令:
SQL> select sysdate from dual;
SYSDATE
--------------
20-8月 -09
SQL> exit
With the Partitioning, OLAP and Data Mining options 断开
C:\Documents and Settings\user>net stop oracleserviceorcl
OracleServiceORCL 服务正在停止.......
OracleServiceORCL 服务已成功停止。
C:\Documents and Settings\user>lsnrctl stop
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 20-8月 -2009 14:27:38
Copyright (c) 1991, 2005, Oracle. All rights reserved.
正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
命令执行成功