1. 程式人生 > >oracle專用模式修改為共享模式

oracle專用模式修改為共享模式

沒有返回值,說明處於專用模式:

SQL> select * from v$dispatcher;

未選定行

SQL> show parameter shared_ser

NAME TYPE VALUE

 

max_shared_servers integer

shared_server_sessions integer

shared_servers integer 0

線上修改共享伺服器程序的數量

SQL> alter system set shared_servers=5 scope=both;

系統已更改。

SQL> show parameter shared_servers

NAME TYPE VALUE

 

max_shared_servers integer

shared_servers integer 5

SQL>

配置dispatchersDispatchers引數用於配置共享模式架構中dispatcher程序,共享模式只少需要一個dispatcher程序。

SQL> alter system set dispatchers='(PROTOCOL=TCP) (dispatchers=3)' scope=both;

系統已更改。

再次檢視

SQL> select * from v$dispatcher;

NAME

----

NETWORK

 

PADDR STATUS ACC MESSAGES BYTES BREAKS

---

OWNED CREATED IDLE BUSY LISTENER CONF_INDX

 

D000

(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-G7Q6ORP7VGQ)(PORT=49432))

000007FF22CC3238 WAIT YES 0 0 0

0 0 20107 0 0 0

NAME

----

NETWORK

 

PADDR STATUS ACC MESSAGES BYTES BREAKS

---

OWNED CREATED IDLE BUSY LISTENER CONF_INDX

 

D001

(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-G7Q6ORP7VGQ)(PORT=49437))

000007FF22CC97A8 WAIT YES 0 0 0

0 0 532 0 0 0

NAME

----

NETWORK

 

PADDR STATUS ACC MESSAGES BYTES BREAKS

---

OWNED CREATED IDLE BUSY LISTENER CONF_INDX

 

D002

(ADDRESS=(PROTOCOL=tcp)(HOST=WIN-G7Q6ORP7VGQ)(PORT=49438))

000007FF22CCA890 WAIT YES 0 0 0

0 0 526