Dedicated and shared modes of Oracle)

Source: Internet
Author: User
Tags dedicated server

1. Whether it is configured as a shared server. The most important parameter is
8i mts_servers
9i shared_server
Show parameter shared_server mts_servers
If the value is greater than 0, the Shared Server is enabled.

2. When configured as a shared server, the client can connect to the database using a Shared Server or a dedicated server. The control of this parameter is set in tnsnames. ora.
Aaaa =
(Description =
(Address_list =
(Address = (Protocol = TCP) (host = AAAA) (Port = 1521 ))
)
(CONNECT_DATA =
(SID = aa)
(Server = dedicated)
)
)
The red part specifies the dedicated method to connect to the DB.
In addition, background process, and locally connected, can only be dedicated
For example, sqlplus user/pass
If the DB is not configured with a shared server, the client can only connect to the DB in dedicated mode.

3. There are two methods to determine the connection mode of a connected session.
A
Select Server from V $ session
Where...
If Server = 'dicated ', it is in dedicated mode.
Server = 'shared 'is the shared mode, and shared_server_process is serving it.
Server = 'none' is shared and no shared_server_process service is available.

B. It is only used under Unix. It seems that unknown does not work.
Connect to V $ session, V $ process to view the program in process
1 select P. Program, S. server from V $ session S, V $ PROCESS p
2 * Where S. paddr = P. ADDR
If program is .. (S0nn), it is shared, and shared_server_process is serving it
If program is .. (D0nn), it is in the shared mode, and currently no shared_server_process serves it
If the program is other, it is in the 'dedicated 'mode.

(Original: http://www.cublog.cn/u/20078/showart.php? Id = 127802)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.