|
HR:
- SQL> ! ps
- PID TTY TIME CMD
- 12802 pts/2 00:00:00 bash
- 19970 pts/2 00:00:00 sqlplus
- 20256 pts/2 00:00:00 ps
- SQL> select employee_id , salary from employees where employee_id=100;
- EMPLOYEE_ID SALARY
- ----------- ----------
- 100 25000
- SQL> select employee_id , salary from employees where employee_id=178;
- EMPLOYEE_ID SALARY
- ----------- ----------
- 178 7000
- SQL> conn hr/oracle_4U@orcl2
- ERROR:
- ORA-12541: TNS:no listener
复制代码
SYS验证:
- select
- s.sid,
- s.serial#,
- s.status ,
- s.username,
- s.terminal
- from v_$session s
- where s.username='HR';
复制代码
看地址:
- select
- sid,
- serial#,
- status ,
- username,
- terminal,
- saddr,
- paddr,
- taddr
- from v_$session
- where username='HR';
-
- select * from v$transaction;
-
- select * from flashback_transaction_query where
- logon_user='HR';
-
复制代码- select username,sid,serial#, terminal, status , paddr from v$session where terminal='pts/1';
- select spid from v$process where addr='00000000C3A69BB0' ;
- select s.username,s.sid,s.serial#, s.terminal, s.status , s.paddr, p.spid
- from v$session s, v$process p
- where s.paddr=p.addr and s.terminal='pts/1';
复制代码
dedicate 连接的服务器进程:
本地:
oracle 23936 0.0 0.8 2046548 131316 ? Ss 14:37 0:00 oracleorcl2 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
网络:
oracle 26997 0.0 0.5 2045280 85736 ? Ss 14:56 0:00 oracleorcl2 (LOCAL=NO)
|
|