|
select * from v$circuit;
- select * from v$dispatcher;
- select * from v$process where addr='00000001EC73FDE0';
复制代码 ps aux | grep ora_d0
配置共享服务器:
- SQL> alter system set dispatchers='(PROTOCOL=TCP) (dispatchers=3)';
- System altered.
- SQL> show parameter shared
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- hi_shared_memory_address integer 0
- max_shared_servers integer
- shared_memory_address integer 0
- shared_pool_reserved_size big integer 36909875
- shared_pool_size big integer 0
- shared_server_sessions integer
- shared_servers integer 1
- SQL> alter system set shared_servers=3;
- System altered.
- SQL> show parameter max_dis
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- max_dispatchers integer
- SQL> show parameter shared_ser
- NAME TYPE VALUE
- ------------------------------------ ----------- ------------------------------
- max_shared_servers integer
- shared_server_sessions integer
- shared_servers integer 3
- SQL>
复制代码- SORCL =
- (DESCRIPTION =
- (ADDRESS = (PROTOCOL = TCP)(HOST = station90.example.com)(PORT = 1521))
- (CONNECT_DATA =
- (SERVER = SHARED)
- (SERVICE_NAME = orcl.example.com)
- )
- )
复制代码- select * from v$circuit
- where saddr='00000001EC9BF3C8';
- select * from v$dispatcher where paddr='00000001EC766760';
- select * from v$process where addr='00000001EC766760';
- select * from v$session where saddr in ( select saddr from v$circuit);
复制代码- SQL> alter system set dispatchers='(PROTOCOL=TCP) (dispatchers=3) (listener=only_for_l2)';
- System altered.
复制代码
- select sid, serial# , terminal
- from v$session
- where username='HR';
- ---blocking:
- select * from v$session
- where sid in ( select blocking_session from v$session);
- ---blocked:
- select * from v$session where blocking_session is not null;
-
- select * from v_$lock l
- where l.SID=147;
-
- alter system kill session '147,2229' immediate;
复制代码
|
|