- melet
- 等级:


- 性别:
 - 文章: 18
- 积分: 100
- 来自: 海南-临高

|
用惯了pl/sql.突然在公司里让我在dos下来启动oracle的监听器及服务。这让我感觉很不熟练。今晚来练练手。
sql 代码
- 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>
声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
|
返回顶楼 |
|
|