免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2369 | 回复: 4
打印 上一主题 下一主题

专用服务器中怎么也开有dispatcher? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-10-25 16:49 |只看该作者 |倒序浏览
安装时记着选的时专用服务器,为了确定使用dbca查看了一下,的确选择的是dispatcher。


  1.   1  select server
  2.   2  from v$session
  3.   3* where audsid=userenv('sessionid')
  4. SQL>; /

  5. SERVER
  6. ---------
  7. DEDICATED
复制代码


这样说明是专用服务器。

但查看下面信息,其中也有dispatcher,是否有dispatcher就能说明服务器是共享服务器模式?

  1. SQL>;  show parameter dispatcher

  2. NAME                                 TYPE        VALUE
  3. ------------------------------------ ----------- ------------------------------
  4. dispatchers                          string      (PROTOCOL=TCP) (SERVICE=hpunix
  5.                                                  XDB)
  6. max_dispatchers                      integer     5
  7. mts_dispatchers                      string      (PROTOCOL=TCP) (SERVICE=hpunix
  8.                                                  XDB)
  9. mts_max_dispatchers                  integer     5

  10. SQL>; select * from v$dispatcher;

  11. NAME
  12. ----
  13. NETWORK
  14. --------------------------------------------------------------------------------
  15. PADDR            STATUS           ACC   MESSAGES      BYTES     BREAKS
  16. ---------------- ---------------- --- ---------- ---------- ----------
  17.      OWNED    CREATED       IDLE       BUSY   LISTENER  CONF_INDX
  18. ---------- ---------- ---------- ---------- ---------- ----------
  19. D000
  20. (ADDRESS=(PROTOCOL=tcp)(HOST=hpserver)(PORT=63750))
  21. C000000016243D28 WAIT             YES        123      33584          0
  22.          0         11  103228407         47          0          0

  23. $ lsnrctl status

  24. LSNRCTL for HPUX: Version 9.2.0.2.0 - Production on 25-OCT-2005 16:20:19

  25. Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.

  26. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
  27. STATUS of the LISTENER
  28. ------------------------
  29. Alias                     LISTENER
  30. Version                   TNSLSNR for HPUX: Version 9.2.0.2.0 - Production
  31. Start Date                13-OCT-2005 17:56:46
  32. Uptime                    11 days 22 hr. 23 min. 32 sec
  33. Trace Level               off
  34. Security                  OFF
  35. SNMP                      OFF
  36. Listener Parameter File   /opt/oracle/OraHome1/network/admin/listener.ora
  37. Listener Log File         /opt/oracle/OraHome1/network/log/listener.log
  38. Listening Endpoints Summary...
  39.   (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
  40.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hpserver)(PORT=1521)))
  41.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hpserver)(PORT=8080))(Presentation=HTTP)(Session=RAW))
  42.   (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=hpserver)(PORT=2100))(Presentation=FTP)(Session=RAW))
  43. Services Summary...
  44. Service "PLSExtProc" has 1 instance(s).
  45.   Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
  46. Service "hpunix" has 2 instance(s).
  47.   Instance "hpunix", status UNKNOWN, has 1 handler(s) for this service...
  48.   Instance "hpunix", status READY, has 1 handler(s) for this service...
  49. Service "hpunixXDB" has 1 instance(s).
  50.   Instance "hpunix", status READY, has 1 handler(s) for this service...
  51. The command completed successfully


  52. $ lsnrctl services

  53. LSNRCTL for HPUX: Version 9.2.0.2.0 - Production on 25-OCT-2005 16:49:11

  54. Copyright (c) 1991, 2002, Oracle Corporation.  All rights reserved.

  55. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
  56. Services Summary...
  57. Service "PLSExtProc" has 1 instance(s).
  58.   Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
  59.     Handler(s):
  60.       "DEDICATED" established:0 refused:0
  61.          LOCAL SERVER
  62. Service "hpunix" has 2 instance(s).
  63.   Instance "hpunix", status UNKNOWN, has 1 handler(s) for this service...
  64.     Handler(s):
  65.       "DEDICATED" established:2 refused:0
  66.          LOCAL SERVER
  67.   Instance "hpunix", status READY, has 1 handler(s) for this service...
  68.     Handler(s):
  69.       "DEDICATED" established:524 refused:0 state:ready
  70.          LOCAL SERVER
  71. Service "hpunixXDB" has 1 instance(s).
  72.   Instance "hpunix", status READY, has 1 handler(s) for this service...
  73.     Handler(s):
  74.       "D000" established:8 refused:0 current:2 max:2026 state:ready
  75.          DISPATCHER <machine: hpserver, pid: 17338>;
  76.          (ADDRESS=(PROTOCOL=tcp)(HOST=hpserver)(PORT=63750))
  77. The command completed successfully

复制代码

论坛徽章:
0
2 [报告]
发表于 2005-11-04 11:27 |只看该作者
看来都不大注意这些

论坛徽章:
0
3 [报告]
发表于 2005-11-04 14:52 |只看该作者
这个dispatcher应该是oracle自带apache server,你可以通过执行netstat -an | grep LISTEN看看是不是有个8080 port在监听,你可以把这个服务关闭了,那就不存在这个dispatcher了。
关闭这个port的方法,参考本论坛的相关文章。

论坛徽章:
0
4 [报告]
发表于 2005-11-04 16:02 |只看该作者
是这样的。
你的DB启用了shared_server模式(或者是你说的dispatcher)

但是,你连接到DB时可以选择DEDICATED模式,比如说,不通过TNSNAME,直接连接,就肯定是DEDICATED.(sqlplus "/ as sysdba" 或者 sqlplus user/pass ,没有加@tnsnames的形式 ),所以,你查询v$session时发现是DEDICATED.
我们也可以在tnsnames.ora里定义强制使用DEDICATED模式。
dbstr = (descriions = (
……
(SERVER=DEDICATED)
……
)


结论就是:

DB设置为shared_server模式 , Client可以选择shared_server模式或者DEDICATED模式

DB设置为DEDICATED模式,Client只能使用DEDICATED模式

论坛徽章:
0
5 [报告]
发表于 2005-11-04 23:57 |只看该作者
原帖由 rollingpig 于 2005-11-4 16:02 发表
是这样的。
你的DB启用了shared_server模式(或者是你说的dispatcher)

但是,你连接到DB时可以选择DEDICATED模式,比如说,不通过TNSNAME,直接连接,就肯定是DEDICATED.(sqlplus "/ as sysdba" 或 ...


具体怎么判断我我们的服务器启用了共享模式?
要改为专用服务器怎么修改呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP