`
edwards0307
  • 浏览: 27363 次
  • 性别: Icon_minigender_2
  • 来自: 北京
社区版块
存档分类
最新评论

Dedicated Server and Shared Server

 
阅读更多

1.concepts about DS and SS

 

   DS:Oracle will create a new process for me when I log in. This is commonly
referred to as the dedicated server configuration, since a server process will be dedicated to me
for the life of my session.

         One client process mapping to One DS process

                                                                                          datafiles

               client----- DS server process--get data from-----

                                                                                          sga

                                                       

    

   SS(MTS):In shared server mode, the shared processes are generally started up with the database.

                 the client connection will send a request to the dispatcher. The dispatcher will first place       this request onto the request queue in the SGA (1). The first available shared server will dequeue this request (2) and process it. When the shared server completes,
the response (return codes, data, and so on) is placed into the response queue (3), subse-
quently picked up by the dispatcher (4), and transmitted back to the client.

                client------dispatchers------request quence------

                                                                                         |

                                                                                         |   

                                                                       available shared server process

 

                                                                                         |

                                                                                         |

                                                                                    get data

                                                                                         |

                                                                                         |

                                                       shared server  place the response into the the response queue

 

   Note:Both dedicated and shared server processes have the same job: they process all of the SQL you give to them. When you submit a SELECT * FROM EMP query to the database, an Oracle dedi-cated/shared server process parses the query and places it into the Shared pool (or finds it in the Shared pool already, hopefully). This process comes up with the query plan, if necessary,
and executes the query plan, perhaps finding the necessary data in the buffer cache or reading  the data from disk into the buffer cache.

 

   Connection and Session

   

   Note:

           A connectionmay have zero, one, or more sessions established on it. Each session is separate and inde-pendent, even though they all share the same physical connection to the database.

           A connection is simply a physical circuit between your client process and the database instance—a network connection, most commonly. The connection may be to a dedi-
   cated server process or to a dispatcher. As previously stated, a connection may have zero or more sessions, meaning that a connection may exist with no corresponding sessions.

           A session is a logical entity that exists in the instance,It is  your session in the server, where you execute SQL, commit transactions, and run stored procedures.

 

   Dedicated Server

   1.one connection have one or zero session

   client:sqlplus hr/hr@oraclelsh

   server:ps -ef| grep oracle

     oracle    5438     1  0 12:09 ?        00:00:00 oraclelsh (LOCAL=NO)

   client:disconnect

   server:ps -ef| grep oracle

     oracle    5438     1  0 12:09 ?        00:00:00 oraclelsh (LOCAL=NO)

    2.one connection two sessions

    client: sqlplus system/oracle@oraclelsh

    server:ps -ef | grep oracle

       oracle    1234    1  0 12:09 ?        00:00:00 oraclelsh (LOCAL=NO)

    select sid,username,addr from v$session;

               1234 system

   client:  set autotrace on

   select sid,username,addr from v$session;

               1234 system

               1235 system

   server: ps  -ef | grep oracle

               1234 system 

 

   Shared Server

      dispatchers(if ora-00105,we modify it in the pfile.then create spfile,last statup)

      max_dispatchers

      shared_servers

      max_shared_servers

      circuits

      shared_server_sessions

      ora_d000_lsh(dispatchers processes)

      ora_s000_lsh(shared server processes)

        server=shared/dedicated

     1 when in shared server connection. we can not startup,shutdown immediate,backup.(

      ORA-00106: cannot startup/shutdown database when connected to a dispatcher)

      we statup,shudown database in dedicated server.

     2.ORA-12520: TNS:listener could not find available handler for requested type of servercheck server is in DD or MTS.

        in tnsnames.ora,we choice error way(server=dedicated or shared)

        alter system set dispatchers='(protocol=tcp)(dispatchers=1)'

     3. view the current session use which connection type.

         select sid from v$mystat;

         select server from v$session;

     4.ERROR:ORA-12523: TNS:listener could not find instance appropriate for the client connection

          (SERVICE_NAME = db_name.db_domain)   

            

          v$circuit

          v$dispatcher

          v$shared_server

          v$queue

          v$sesson

 

分享到:
评论

相关推荐

    hlds-v8:带有Google V8 JS引擎(metamod插件)的Half Life Dedicated Server

    带有Google V8 JS引擎(metamod插件)的Half Life Dedicated Server ! 已废弃,请参阅 (node / io.js + hlds作为metamod插件) 如何建造 获取文件 从下载metamod(版本:1.20) 从下载修补的HLSDK(版本:2.3p4...

    Photon Fusion 简练手册

    Photon Fusion 通过 Photon Cloud 服务来提供实时的网络同步,支持多种游戏模式,包括 Dedicated Server、Client Hosted 和 Shared Mode。 Photon Fusion 网络架构 Photon Fusion 的网络架构主要包括三种模式:...

    详解Oracle 11g DRCP连接方式的基本原理

    在Oracle数据库中,传统的连接方式有两种:Dedicated Server和Shared Server。Dedicated Server模式下,每个客户端连接都会有一个单独的Server Process,这个Server Process专门为该客户端提供服务,直到连接关闭。...

    Photon Fusion 简介

    - **Dedicated Server**:服务器独立运行,所有玩家通过Photon Cloud配对后连接到同一服务器,服务器仅负责网络同步计算。 - **Client Hosted**:玩家用自己的电脑作为服务器(称为Host),开启房间让其他玩家通过...

    oracle10g培训讲义05

    这一章节详细探讨了专用服务器(Dedicated Server)与共享服务器(Shared Server)之间的差异及其结构,以及共享服务器如何通过优化内存使用和进程管理来提高数据库效率。 ##### DedicatedServer 与 SharedServer ...

    计算机网络第六版答案

    HFC, rates up to 42.8 Mbps and upstream rates of up to 30.7 Mbps, bandwidth is shared. FTTH: 2-10Mbps upload; 10-20 Mbps download; bandwidth is not shared. 10. There are two popular wireless ...

    Oracle体系结构(超详细.pdf

    - **进程**:每个会话可以由一个或多个进程支持,取决于配置(例如,Dedicated Server或Shared Server模式)。 6. **数据库启动和关闭**: - `startup`命令启动数据库实例,初始化SGA并启动后台进程。 - `...

    微软内部资料-SQL性能优化2

    In this module we will discuss Microsoft® SQL Server™ interaction with the operating system and methodology of troubleshooting server-based problems. At the end of this module, you will be able to:...

    Linux 下Oracle数据库配置

    在配置过程中,你需要指定全局数据库名称,比如`mydbsys`,并且选择服务模式,如Dedicated Server Mode或Shared Server Mode。Dedicated模式适用于内存充足的情况,每个连接都有自己独立的进程,而Shared Server ...

    Java邮件开发Fundamentals of the JavaMail API

    advantage of users having multiple folders on the server and these folders can be shared by multiple users. Due to the more advanced capabilities, you might think IMAP would be used by everyone. It...

    oracle数据库体系结构之一【连接配置】

    Oracle还提供了数据字典视图,如`V$MTS`, `V$DISPATCHER`, `V$SHARED_SERVER`和`V$CIRCUIT`,用于监控和管理MTS环境的性能和状态。 理解这些连接配置方式对于优化Oracle数据库的性能和资源利用至关重要,尤其是在...

    操作系统英文教学课件:Chapter 4 Threads.ppt

    1. **Synchronization**: Threads need to coordinate access to shared resources to prevent race conditions and ensure data consistency. 2. **Deadlocks**: Threads can become blocked waiting for resources...

    impala-2.8

    - **Shared Metadata**: Both Impala and Hive share the same metadata through the Hive Metastore, ensuring consistency between the two systems. - **SQL Syntax**: Impala uses the Hive SQL dialect, making...

    Oracle数据库专用服务器与共享服务器探究.pdf

    Oracle数据库系统提供了两种主要的服务器连接模式:专用服务器(Dedicated Server)和共享服务器(Shared Server),这两种模式在不同的应用场景下各有优势。 1. 专用服务器连接 在专用服务器模式下,每个客户端...

    基于双VIO的Power虚拟化高可用解决方案.docx

    其中,Enterprise Edition提供了最全面的功能,包括不限制的分区数量、微分区支持、Shared Dedicated Capacity、Power VM Lx86、Multiple Shared Processor Pools、Live Partition Mobility和Active Memory Sharing...

    tnsnames.ora配置

    此外,CONNECT_DATA部分包含SERVER参数(如DEDICATED或SHARED,定义连接类型)和服务名称(与服务器端的service_name参数匹配)。例如: ```markdown ORCL = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = ...

    Power Systems虚拟技术

    它允许创建最多三个分区,支持微分区和 Shared Dedicated Capacity,但不支持 Multiple Shared Processor Pools 和 Live Partition Mobility 功能。分区管理和创建通过 IVM(Integrated Virtualization Manager)...

    python3.6.5参考手册 chm

    PEP 465 - A dedicated infix operator for matrix multiplication PEP 448 - Additional Unpacking Generalizations PEP 461 - percent formatting support for bytes and bytearray PEP 484 - Type Hints PEP ...

    建立与Oracle服务器连接的两种模式

    Oracle9i和10g提供了两种主要的连接模式:专用服务器连接(Dedicated Server)和共享服务器连接(Shared Server)。理解这两种模式的工作原理对于优化数据库性能至关重要。 **专用服务器模式**: 在专用服务器模式...

Global site tag (gtag.js) - Google Analytics