- 浏览: 27363 次
- 性别:
- 来自: 北京
最新评论
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
发表评论
-
from string get number data using pl/sql or sql
2012-02-16 17:32 892declare @aa varchar(80),--- ... -
SQL
2012-02-15 18:01 7341.select sal salary from emp; ... -
modify ip
2012-02-10 17:45 7991.netconfig 2./etc/sysconfig/n ... -
MULTI dbwr or io slaves
2012-02-10 15:21 883thanks dukope of itpub. ... -
FAQS
2012-02-09 15:59 7581.How can I get the largest amo ... -
HOW TO STUDY ORACLE FROM Yong Huang
2012-01-18 14:48 804Assuming you want to study orac ... -
RMAN
2012-01-14 17:07 7081.components of the rman ... -
INSTANCE and CRASH RECOVERY
2012-01-12 10:12 7541.type of checkpoint full c ... -
STARTUP PFILE=
2011-12-31 14:11 12281.vi initdbs.ora spfile=&quo ... -
MANAGE TABLE
2011-12-26 16:50 5731.heap table IOT PARTI ... -
MONITOR redo size
2011-12-21 17:48 6501.set autot on stat 2.unsin ... -
What do rollback and commit
2011-12-21 11:21 745When we COMMIT, all that is lef ... -
What is the schema ?
2011-12-20 15:18 592A schema is a collection of dat ... -
MANAGE UNDOTABS
2011-12-19 17:15 6791.manual undo_management=ma ... -
DBA SQL
2011-12-19 15:21 4391.select a.name,b.status from v ... -
SEGMENT EXTENTS ORACLEBLOCK
2011-12-15 16:11 7981.SEGMENT: allocated fo ... -
MANAGE TABLESPACE AND DATAFILES
2011-12-13 15:28 5791. tablespace,segment,extent,bl ... -
ORACLE NET
2011-12-12 09:49 6871.net_service_name: servive ... -
SQLPLUS TIPS
2011-12-09 17:51 9101.SQLPLUS : a tool that execute ... -
ORACLE ENVIRONMENT VARIABLES
2011-12-09 17:15 659ORACLE_HOME ORACLE_SID : or ...
相关推荐
带有Google V8 JS引擎(metamod插件)的Half Life Dedicated Server ! 已废弃,请参阅 (node / io.js + hlds作为metamod插件) 如何建造 获取文件 从下载metamod(版本:1.20) 从下载修补的HLSDK(版本:2.3p4...
Photon Fusion 通过 Photon Cloud 服务来提供实时的网络同步,支持多种游戏模式,包括 Dedicated Server、Client Hosted 和 Shared Mode。 Photon Fusion 网络架构 Photon Fusion 的网络架构主要包括三种模式:...
在Oracle数据库中,传统的连接方式有两种:Dedicated Server和Shared Server。Dedicated Server模式下,每个客户端连接都会有一个单独的Server Process,这个Server Process专门为该客户端提供服务,直到连接关闭。...
- **Dedicated Server**:服务器独立运行,所有玩家通过Photon Cloud配对后连接到同一服务器,服务器仅负责网络同步计算。 - **Client Hosted**:玩家用自己的电脑作为服务器(称为Host),开启房间让其他玩家通过...
这一章节详细探讨了专用服务器(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 ...
- **进程**:每个会话可以由一个或多个进程支持,取决于配置(例如,Dedicated Server或Shared Server模式)。 6. **数据库启动和关闭**: - `startup`命令启动数据库实例,初始化SGA并启动后台进程。 - `...
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:...
在配置过程中,你需要指定全局数据库名称,比如`mydbsys`,并且选择服务模式,如Dedicated Server Mode或Shared Server Mode。Dedicated模式适用于内存充足的情况,每个连接都有自己独立的进程,而Shared Server ...
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还提供了数据字典视图,如`V$MTS`, `V$DISPATCHER`, `V$SHARED_SERVER`和`V$CIRCUIT`,用于监控和管理MTS环境的性能和状态。 理解这些连接配置方式对于优化Oracle数据库的性能和资源利用至关重要,尤其是在...
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...
- **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数据库系统提供了两种主要的服务器连接模式:专用服务器(Dedicated Server)和共享服务器(Shared Server),这两种模式在不同的应用场景下各有优势。 1. 专用服务器连接 在专用服务器模式下,每个客户端...
其中,Enterprise Edition提供了最全面的功能,包括不限制的分区数量、微分区支持、Shared Dedicated Capacity、Power VM Lx86、Multiple Shared Processor Pools、Live Partition Mobility和Active Memory Sharing...
此外,CONNECT_DATA部分包含SERVER参数(如DEDICATED或SHARED,定义连接类型)和服务名称(与服务器端的service_name参数匹配)。例如: ```markdown ORCL = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = ...
它允许创建最多三个分区,支持微分区和 Shared Dedicated Capacity,但不支持 Multiple Shared Processor Pools 和 Live Partition Mobility 功能。分区管理和创建通过 IVM(Integrated Virtualization Manager)...
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 ...
Oracle9i和10g提供了两种主要的连接模式:专用服务器连接(Dedicated Server)和共享服务器连接(Shared Server)。理解这两种模式的工作原理对于优化数据库性能至关重要。 **专用服务器模式**: 在专用服务器模式...