Bo's Oracle Station

查看: 942|回复: 0

关于体系结构和会话

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2020-8-9 21:06:40 | 显示全部楼层 |阅读模式
HR:
  1. SQL> ! ps
  2.   PID TTY          TIME CMD
  3. 12802 pts/2    00:00:00 bash
  4. 19970 pts/2    00:00:00 sqlplus
  5. 20256 pts/2    00:00:00 ps

  6. SQL> select employee_id , salary from employees where employee_id=100;

  7. EMPLOYEE_ID        SALARY
  8. ----------- ----------
  9.         100         25000

  10. SQL> select employee_id , salary from employees where employee_id=178;

  11. EMPLOYEE_ID        SALARY
  12. ----------- ----------
  13.         178          7000

  14. SQL> conn hr/oracle_4U@orcl2
  15. ERROR:
  16. ORA-12541: TNS:no listener


复制代码

SYS验证:
  1. select
  2.    s.sid,
  3.    s.serial#,
  4.    s.status ,
  5.    s.username,
  6.    s.terminal
  7.      from v_$session s
  8.   where s.username='HR';
复制代码

看地址:
  1. select
  2.    sid,
  3.    serial#,
  4.    status ,
  5.    username,
  6.    terminal,
  7.    saddr,
  8.    paddr,
  9.    taddr
  10.      from v_$session
  11.   where username='HR';
  12.   
  13.   select * from v$transaction;
  14.   
  15.   select  * from flashback_transaction_query where
  16.    logon_user='HR';
  17.   
复制代码
  1. select  username,sid,serial#, terminal, status , paddr from v$session where terminal='pts/1';

  2. select  spid  from v$process where addr='00000000C3A69BB0' ;

  3. select  s.username,s.sid,s.serial#, s.terminal, s.status , s.paddr, p.spid
  4.   from v$session s, v$process p
  5.   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)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-5-3 14:14 , Processed in 0.131798 second(s), 24 queries .

快速回复 返回顶部 返回列表