论坛首页 综合技术论坛

dos下启动监听及服务

浏览 8589 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2007-10-08  
用惯了pl/sql.突然在公司里让我在dos下来启动oracle的监听器及服务。这让我感觉很不熟练。今晚来练练手。
sql 代码
  1. C:\Documents and Settings\Administrator>lsnrctl start   
  2.   
  3. LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 08-10月-2007 20:34:44   
  4.   
  5. Copyright (c) 1991, 2004, Oracle.  All rights reserved.   
  6.   
  7. 启动tnslsnr: 请稍候...   
  8.   
  9. TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production   
  10. 系统参数文件为D:\oracle\product\10.1.0\db_1\network\admin\listener.ora   
  11. 写入D:\oracle\product\10.1.0\db_1\network\log\listener.log的日志信息   
  12. 监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))   
  13. 监听: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=lenovo-9664c495)(PORT=1521)))   
  14.   
  15. 正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))   
  16. LISTENER 的 STATUS   
  17. ------------------------   
  18. 别名                      LISTENER   
  19. 版本                      TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production   
  20. 启动日期                  08-10月-2007 20:34:48   
  21. 正常运行时间              0 天 0 小时 0 分 4 秒   
  22. 跟踪级别                  off  
  23. 安全性                    ONLocal OS Authentication   
  24. SNMP                      OFF  
  25. 监听程序参数文件          D:\oracle\product\10.1.0\db_1\network\admin\listener.ora   
  26. 监听程序日志文件          D:\oracle\product\10.1.0\db_1\network\log\listener.log   
  27. 监听端点概要...   
  28.   (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))   
  29.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=lenovo-9664c495)(PORT=1521)))   
  30. 服务摘要..   
  31. 服务 "PLSExtProc" 包含 1 个例程。   
  32.   例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...   
  33. 命令执行成功   
  34.   
  35. C:\Documents and Settings\Administrator>net start oracleservicemelet   
  36. OracleServiceMELET 服务正在启动 ...............   
  37. OracleServiceMELET 服务已经启动成功。   
  38.   
  39.   
  40. C:\Documents and Settings\Administrator>sqlplus melet/melet@melet as sysdba   
  41.   
  42. SQL*Plus: Release 10.1.0.2.0 - Production on 星期一 10月 8 20:38:59 2007   
  43.   
  44. Copyright (c) 1982, 2004, Oracle.  All rights reserved.   
  45.   
  46.   
  47. 连接到:   
  48. Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production   
  49. With the Partitioning, OLAP and Data Mining options   
  50.   
  51. SQL> select * from employee   
  52.   2  /   
  53.   
  54. ID   FIRST_NAME LAST_NAME  START_DATE     END_DATE           SALARY CITY   
  55. ---- ---------- ---------- -------------- -------------- ---------- ----------   
  56. DESCRIPTION   
  57. ---------------   
  58. 01   Jason      Martin     25-7月 -96     25-7月 -06        1234.56 Toronto   
  59. Programmer   
  60.   
  61. 02   Alison     Mathews    21-3月 -76     21-2月 -86        6661.78 Vancouver   
  62. Tester   
  63.   
  64.   
  65. SQL> --数据库名   
  66. SQL> select name from v$database  
  67.   2  /   
  68.   
  69. NAME  
  70. ---------   
  71. MELET   
  72.   
  73. SQL> --实例名   
  74. SQL> select instance_name from v$instance;   
  75.   
  76. INSTANCE_NAME   
  77. ----------------   
  78. melet   
  79.   
  80. SQL> --退出服务   
  81. SQL> net stop oracleservicemelet   
  82. SP2-0734: 未知的命令开头 "net stop o..." - 忽略了剩余的行。   
  83. SQL> exit   
  84. 从 Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production   
  85. With the Partitioning, OLAP and Data Mining options 断开   
  86.   
  87. C:\Documents and Settings\Administrator>net stop oracleservicemelet   
  88. OracleServiceMELET 服务正在停止......   
  89. OracleServiceMELET 服务已成功停止。   
  90.   
  91.   
  92. C:\Documents and Settings\Administrator>lsnrctl status   
  93.   
  94. LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 08-10月-2007 20:54:35   
  95.   
  96. Copyright (c) 1991, 2004, Oracle.  All rights reserved.   
  97.   
  98. 正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))   
  99. LISTENER 的 STATUS   
  100. ------------------------   
  101. 别名                      LISTENER   
  102. 版本                      TNSLSNR for 32-bit Windows: Version 10.1.0.2.0 - Production   
  103. 启动日期                  08-10月-2007 20:34:48   
  104. 正常运行时间              0 天 0 小时 19 分 50 秒   
  105. 跟踪级别                  off  
  106. 安全性                    ONLocal OS Authentication   
  107. SNMP                      OFF  
  108. 监听程序参数文件          D:\oracle\product\10.1.0\db_1\network\admin\listener.ora   
  109. 监听程序日志文件          D:\oracle\product\10.1.0\db_1\network\log\listener.log   
  110. 监听端点概要...   
  111.   (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROCipc)))   
  112.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=lenovo-9664c495)(PORT=1521)))   
  113. 服务摘要..   
  114. 服务 "PLSExtProc" 包含 1 个例程。   
  115.   例程 "PLSExtProc", 状态 UNKNOWN, 包含此服务的 1 个处理程序...   
  116. 命令执行成功   
  117.   
  118. C:\Documents and Settings\Administrator>lsnrctl stop   
  119.   
  120. LSNRCTL for 32-bit Windows: Version 10.1.0.2.0 - Production on 08-10月-2007 20:54:55   
  121.   
  122. Copyright (c) 1991, 2004, Oracle.  All rights reserved.   
  123.   
  124. 正在连接到 (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))   
  125. 命令执行成功   
  126.   
  127. C:\Documents and Settings\Administrator>  
论坛首页 综合技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics