OracleDedicatedserver和Sharedserver(专用模式和共享模式)说明

本文详细介绍了Oracle数据库中的专用服务器(Dedicated Server)和共享服务器(Shared Server)模式,包括两者的工作原理、优缺点以及如何判断数据库运行模式。专用服务器模式为每个连接创建独立进程,适合批处理和RMAN操作;共享服务器模式通过调度器处理多个连接,可减少系统资源消耗,但可能导致性能下降和并发问题。文章还提供了检查数据库运行模式的方法,并分享了配置和参数设置的相关信息。
摘要由CSDN通过智能技术生成

原 Oracle Dedicated server 和 Shared server(专用模式 和 共享模式) 说明https://blog.csdn.net/tianlesoftware/article/details/5695784版权声明: https://blog.csdn.net/tianlesoftware/article/details/5695784
  一.  官网说明
       在DBCA 建库的时候,有提示让我们选择连接类型,这里有两种类型:专用服务器模式和共享服务器模式。默认使用专用模式。如下图:
    Oracle 官方文档对这两种文档的说明如下:
About Dedicated andShared Server Processes
http://download.oracle.com/docs/cd/B28359_01/server.111/b28310/manproc001.htm
         OracleDatabase creates server processes to handle the requests of user processesconnected to an instance. A server process can be either of the following:
       (1)A dedicated server process, which services only one userprocess
       (2)A shared server process, which can service multiple userprocesses
         Oracle 创建Server process 来处理user processes连接实例的的请求。 server process 分两种: dedicated server process和 sharedserver process。
         Yourdatabase is always enabled to allow dedicated server processes, but you mustspecifically configure and enable shared server by setting one ormore initialization parameters.
    1.1 Dedicated Server Processes
       Figure4-1, "Oracle Database Dedicated Server Processes" illustrateshow dedicated server processes work. In this diagram two user processes areconnected to the database through dedicated server processes.
         Ingeneral, it is better to be connected through a dispatcher and use ashared server process. This is illustrated in Figure4-2, "Oracle Database Shared Server Processes". A shared serverprocess can be more efficient because it keeps the number of processes requiredfor the running instance low.
              Inthe following situations, however, users and administrators should explicitlyconnect to an instance using a dedicated server process:
       在以上两种情况,需要显示的使用dedicated server process 去连接实例:
       (1)To submit a batch job (for example, when a job can allow little orno idle time for the server process)
       (2)To use Recovery Manager (RMAN) to back up, restore, or recover a database
         Torequest a dedicated server connection when Oracle Database is configured forshared server, users must connect using a net service name that is configuredto use a dedicated server. Specifically, the net service name value shouldinclude the SERVER=DEDICATED clause in the connect descriptor.
       如果数据库配置的是shared server,想要用dedicated server 去连接实例,就必须配置在net service name(tnsnames.ora)里指定SERVER=DEDICATED。

       Figure 4-1 OracleDatabase Dedicated Server Processes


1.2 Shared Server Processes
       Consideran order entry system with dedicated server processes. A customer phones theorder desk and places an order, and the clerk taking the call enters the orderinto the database. For most of the transaction, the clerk is on the telephonetalking to the customer. A server process is not needed during this time, sothe server process dedicated to the clerk's user process remains idle. Thesystem is slower for other clerks entering orders, because the idle serverprocess is holding system resources.
       Sharedserver architect

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值