为什么当我们能够conn / as sysdba 登录,系统一定是专用服务器模式呢?

[复制链接]
查看11 | 回复8 | 2009-7-22 09:30:00 | 显示全部楼层 |阅读模式
如题,这是某大虾整理的笔记,我看了以后不太明白这句话,有知道的发表下意见麽


回复

使用道具 举报

千问 | 2009-7-22 09:30:00 | 显示全部楼层
个人觉得是oracle的机制
回复

使用道具 举报

千问 | 2009-7-22 09:30:00 | 显示全部楼层
我记得管理连接就是以专用服务器模式连接的.就像在备份的时候也要以专用服务器模式连接.
回复

使用道具 举报

千问 | 2009-7-22 09:30:00 | 显示全部楼层
conn / as sysdba 这样连接是本地连接,你不启动监听一样可以连接上
专有服务器进程是sqlplus这个连接请求创建的
这种情况下只能是专有服务器模式
oracle757575740 17:38 pts/400:00:00 sqlplus
oracle757675750 17:38 ?00:00:00 oraclewilson (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
专有服务器的进程的父ID就是sqlplus
回复

使用道具 举报

千问 | 2009-7-22 09:30:00 | 显示全部楼层
没有这种说法~~~
即使数据库是共享服务器模式,也可以专用模式连接
回复

使用道具 举报

千问 | 2009-7-22 09:30:00 | 显示全部楼层
shared server needs listener and dispatcher,
/ as sysdba do not need listener. so maybe that answers your question!
回复

使用道具 举报

千问 | 2009-7-22 09:30:00 | 显示全部楼层
In Chapter 2, we saw how these dedicated servers are “spawned” or created by the Oracle
listener process. We won’t cover that process again; rather, we’ll quickly look at what happens
when the listener isn’t involved. The mechanism is much the same as it was with the listener,
but instead of the listener creating the dedicated server via a fork()/exec() in UNIX or an
interprocess communication (IPC) call in Windows, the client process itself creates it.
We can see this parent/child process creation clearly on UNIX when we run the client and
server on the same machine:
ops$tkyte@ORA10G> select a.spid dedicated_server,
2 b.process clientpid
3 from v$process a, v$session b
4 where a.addr = b.paddr
5 and b.sid = (select sid from v$mystat where rownum=1)
6 /
DEDICATED_SE CLIENTPID
------------ ------------
5114 5112
ops$tkyte@ORA10G> !/bin/ps -p 5114 5112
PID TTY STAT TIME COMMAND
5112 pts/1 R 0:00 sqlplus
5114 ? S 0:00 oracleora10g (DESCRIPTION=(LOCAL=YES)..(PROTOCOL=beq)))
这是tom书上的原话
回复

使用道具 举报

千问 | 2009-7-22 09:30:00 | 显示全部楼层
看了很多资料,知道答案了,其实很简单的
我们都知道共享服务器模式需要配置dispatcher,如下:
altersystemsetdispatchers='(protocol=tcp)(dispatchers=5)’
可以看到,共享模式一定是通过网络连的 即 conn scott/tiger@vis_demo 这种方式,因为只有这样才能和调度进程连上,才能使用共享模式
而本地连接如 conn / as sysdba的连接,肯定是专有模式,因为它没走网络,所以没和调度进程连上,所以它走的肯定就是专有模式
回复

使用道具 举报

千问 | 2009-7-22 09:30:00 | 显示全部楼层
原帖由 junsansi 于 2009-9-25 20:15 发表
没有这种说法~~~
即使数据库是共享服务器模式,也可以专用模式连接

恩,是这样的,它的意思其实是 conn / as sysdba进去的连接走的肯定就是专有服务器模式
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行