【實驗】【Shared Server Mode】專有伺服器連線還是共享伺服器連線確認方法
1.為比較乾淨的演示這個過程,先重啟一下資料庫
sys@ora10g> startup force;
ORACLE instance started.
Total System Global Area 562036736 bytes
Fixed Size 2022312 bytes
Variable Size 176161880 bytes
Database Buffers 377487360 bytes
Redo Buffers 6365184 bytes
Database mounted.
Database opened.
sys@ora10g>
2.使用v$session中的server欄位就可以看出連線方式了
sys@ora10g> select server,program,status from v$session order by 1;
SERVER PROGRAM STATUS
--------- ------------------------------------------------ --------
DEDICATED oracle@testdb (q001) ACTIVE
DEDICATED oracle@testdb (PSP0) ACTIVE
DEDICATED oracle@testdb (MMAN) ACTIVE
DEDICATED oracle@testdb (DBW0) ACTIVE
DEDICATED oracle@testdb (PMON) ACTIVE
DEDICATED oracle@testdb (q000) ACTIVE
DEDICATED oracle@testdb (QMNC) ACTIVE
DEDICATED oracle@testdb (ARC2) ACTIVE
DEDICATED oracle@testdb (ARC0) ACTIVE
DEDICATED oracle@testdb (ARC1) ACTIVE
DEDICATED oracle@testdb (J000) ACTIVE
DEDICATED sqlplus@testdb (TNS V1-V3) ACTIVE
DEDICATED oracle@testdb (MMNL) ACTIVE
DEDICATED oracle@testdb (MMON) ACTIVE
DEDICATED oracle@testdb (CJQ0) ACTIVE
DEDICATED oracle@testdb (RECO) ACTIVE
DEDICATED oracle@testdb (SMON) ACTIVE
DEDICATED oracle@testdb (CKPT) ACTIVE
DEDICATED oracle@testdb (LGWR) ACTIVE
NONE OMS INACTIVE
NONE OMS INACTIVE
NONE OMS INACTIVE
SHARED emagent@testdb (TNS V1-V3) ACTIVE
23 rows selected.
這裡可以看到,所有oralce的後臺程式都是以專有伺服器連線的方式連線資料庫的
三個OMS的狀態都是非活動狀態
3.使用共享伺服器連線連線一次後,再次檢視一次連線狀態
sys@ora10g> conn sec/sec@ora10g
Connected.
sec@ora10g> select server,program,status from v$session order by 1;
SERVER PROGRAM STATUS
--------- ------------------------------------------------ --------
DEDICATED oracle@testdb (J000) ACTIVE
DEDICATED oracle@testdb (PSP0) ACTIVE
DEDICATED oracle@testdb (MMAN) ACTIVE
DEDICATED oracle@testdb (DBW0) ACTIVE
DEDICATED oracle@testdb (LGWR) ACTIVE
DEDICATED oracle@testdb (CKPT) ACTIVE
DEDICATED oracle@testdb (SMON) ACTIVE
DEDICATED oracle@testdb (q001) ACTIVE
DEDICATED oracle@testdb (q000) ACTIVE
DEDICATED oracle@testdb (QMNC) ACTIVE
DEDICATED oracle@testdb (ARC2) ACTIVE
DEDICATED oracle@testdb (ARC0) ACTIVE
DEDICATED oracle@testdb (ARC1) ACTIVE
DEDICATED oracle@testdb (PMON) ACTIVE
DEDICATED oracle@testdb (MMNL) ACTIVE
DEDICATED oracle@testdb (MMON) ACTIVE
DEDICATED oracle@testdb (CJQ0) ACTIVE
DEDICATED oracle@testdb (RECO) ACTIVE
NONE OMS INACTIVE
NONE OMS INACTIVE
NONE OMS INACTIVE
NONE emagent@testdb (TNS V1-V3) INACTIVE
SHARED sqlplus@testdb (TNS V1-V3) ACTIVE
SHARED OMS ACTIVE
SHARED emagent@testdb (TNS V1-V3) ACTIVE
25 rows selected.
這裡面的這一條資訊:
SHARED sqlplus@testdb (TNS V1-V3) ACTIVE
就能夠看到已經使用共享伺服器方式連線到資料庫中了,同時一個OMS程式的狀態已經是活動狀態。
SHARED OMS ACTIVE
-- The End --
sys@ora10g> startup force;
ORACLE instance started.
Total System Global Area 562036736 bytes
Fixed Size 2022312 bytes
Variable Size 176161880 bytes
Database Buffers 377487360 bytes
Redo Buffers 6365184 bytes
Database mounted.
Database opened.
sys@ora10g>
2.使用v$session中的server欄位就可以看出連線方式了
sys@ora10g> select server,program,status from v$session order by 1;
SERVER PROGRAM STATUS
--------- ------------------------------------------------ --------
DEDICATED oracle@testdb (q001) ACTIVE
DEDICATED oracle@testdb (PSP0) ACTIVE
DEDICATED oracle@testdb (MMAN) ACTIVE
DEDICATED oracle@testdb (DBW0) ACTIVE
DEDICATED oracle@testdb (PMON) ACTIVE
DEDICATED oracle@testdb (q000) ACTIVE
DEDICATED oracle@testdb (QMNC) ACTIVE
DEDICATED oracle@testdb (ARC2) ACTIVE
DEDICATED oracle@testdb (ARC0) ACTIVE
DEDICATED oracle@testdb (ARC1) ACTIVE
DEDICATED oracle@testdb (J000) ACTIVE
DEDICATED sqlplus@testdb (TNS V1-V3) ACTIVE
DEDICATED oracle@testdb (MMNL) ACTIVE
DEDICATED oracle@testdb (MMON) ACTIVE
DEDICATED oracle@testdb (CJQ0) ACTIVE
DEDICATED oracle@testdb (RECO) ACTIVE
DEDICATED oracle@testdb (SMON) ACTIVE
DEDICATED oracle@testdb (CKPT) ACTIVE
DEDICATED oracle@testdb (LGWR) ACTIVE
NONE OMS INACTIVE
NONE OMS INACTIVE
NONE OMS INACTIVE
SHARED emagent@testdb (TNS V1-V3) ACTIVE
23 rows selected.
這裡可以看到,所有oralce的後臺程式都是以專有伺服器連線的方式連線資料庫的
三個OMS的狀態都是非活動狀態
3.使用共享伺服器連線連線一次後,再次檢視一次連線狀態
sys@ora10g> conn sec/sec@ora10g
Connected.
sec@ora10g> select server,program,status from v$session order by 1;
SERVER PROGRAM STATUS
--------- ------------------------------------------------ --------
DEDICATED oracle@testdb (J000) ACTIVE
DEDICATED oracle@testdb (PSP0) ACTIVE
DEDICATED oracle@testdb (MMAN) ACTIVE
DEDICATED oracle@testdb (DBW0) ACTIVE
DEDICATED oracle@testdb (LGWR) ACTIVE
DEDICATED oracle@testdb (CKPT) ACTIVE
DEDICATED oracle@testdb (SMON) ACTIVE
DEDICATED oracle@testdb (q001) ACTIVE
DEDICATED oracle@testdb (q000) ACTIVE
DEDICATED oracle@testdb (QMNC) ACTIVE
DEDICATED oracle@testdb (ARC2) ACTIVE
DEDICATED oracle@testdb (ARC0) ACTIVE
DEDICATED oracle@testdb (ARC1) ACTIVE
DEDICATED oracle@testdb (PMON) ACTIVE
DEDICATED oracle@testdb (MMNL) ACTIVE
DEDICATED oracle@testdb (MMON) ACTIVE
DEDICATED oracle@testdb (CJQ0) ACTIVE
DEDICATED oracle@testdb (RECO) ACTIVE
NONE OMS INACTIVE
NONE OMS INACTIVE
NONE OMS INACTIVE
NONE emagent@testdb (TNS V1-V3) INACTIVE
SHARED sqlplus@testdb (TNS V1-V3) ACTIVE
SHARED OMS ACTIVE
SHARED emagent@testdb (TNS V1-V3) ACTIVE
25 rows selected.
這裡面的這一條資訊:
SHARED sqlplus@testdb (TNS V1-V3) ACTIVE
就能夠看到已經使用共享伺服器方式連線到資料庫中了,同時一個OMS程式的狀態已經是活動狀態。
SHARED OMS ACTIVE
-- The End --
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/519536/viewspace-610018/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle專有(dedicated)連線和共享(shared)連線Oracle
- 【實驗】【Shared Server Mode】取消共享伺服器模式Server伺服器模式
- 【Shared Server Mode】“專有伺服器模式”調整為“共享伺服器模式”Server伺服器模式
- SQL Server連線SQL Server、SQL Server連線ORACLE 連結伺服器SQLServerOracle伺服器
- oracle 專用伺服器連線與共享伺服器連線的概念和區別Oracle伺服器
- Oracle共享伺服器的連線模式Oracle伺服器模式
- 建立與Oracle資料庫伺服器連線的兩種連線模式(專用伺服器與共享伺服器)Oracle資料庫伺服器模式
- 連線雲伺服器軟體,連線雲伺服器軟體哪個好?其連線遠端伺服器的方法介紹伺服器
- 【解決】Navicat 連線伺服器方法伺服器
- 共享伺服器模式(shared server)和專用伺服器模式(dedicated server)伺服器模式Server
- 連線mysql伺服器MySql伺服器
- pycharm 連線伺服器PyCharm伺服器
- 常用遠端連線伺服器的軟體,常用遠端連線伺服器的軟體是哪個?如何連線使用?伺服器
- 電腦連線伺服器步驟 電腦如何連線伺服器?伺服器
- 【CONNECT】Oracle連線方式詳細介紹(專用/共享伺服器)Oracle伺服器
- python ES連線伺服器的方法Python伺服器
- SQL SERVER 自連線、外連線SQLServer
- 禁止ssh連線時的確認提示
- SqlServer跨伺服器連線SQLServer伺服器
- 使用ssh連線伺服器伺服器
- SQLSERVER建立連線伺服器SQLServer伺服器
- 什麼是adsl伺服器,如何連線?伺服器
- oracle實驗記錄 (SHARED server MODE)OracleServer
- 自己的電腦怎麼連線伺服器 電腦如何連線伺服器伺服器
- 如何連線adsl伺服器?有方法嗎?伺服器
- VNC遠端連線,如何VNC遠端連線伺服器VNC伺服器
- SQL Server如何判斷哪些會話/連線是長連線?SQLServer會話
- 如何用ip地址連線共享印表機 用ip地址連線共享印表機的方法
- 華納雲:連線Ubuntu伺服器有問題是什麼情況?Ubuntu伺服器
- 如何檢視資料庫是專有伺服器模式還是共享伺服器模式資料庫伺服器模式
- 如何遠端連線伺服器?伺服器
- pycharm連線遠端伺服器PyCharm伺服器
- PhpStrom連線線上伺服器PHP伺服器
- 連線亞馬遜AWS伺服器教程亞馬遜伺服器
- 伺服器的連線情況?伺服器
- 什麼是伺服器【三網直連】線路?伺服器
- 動態adsl伺服器有什麼好的連線方法嗎?伺服器
- 詳解Oracle的連線模式:專有模式和共享模式Oracle模式