当前位置: 首页 > news >正文

ROCESS SPID 代表什么进程

ROCESS  发出sql命令 所在主机的进程 可以不在数据库主机上发出

SPID         对应数据库的服务进程id

select a.PROCESS,b.SPID From  v$session a , v$process b where a.PADDR=b.ADDR and a.USERNAME='SYS'
 

SQL> !ps -ef|grep sqlplus
oracle     385  2792  0 21:01 pts/0    00:00:00 sqlplus           
oracle     399   385  0 21:01 pts/0    00:00:00 /bin/bash -c ps -ef|grep sqlplus
oracle     401   399  0 21:01 pts/0    00:00:00 grep sqlplus

SQL> !ps -ef | grep 385
oracle     385  2792  0 21:01 pts/0    00:00:00 sqlplus           
oracle     386   385  0 21:01 ?        00:00:00 oraclecdb1 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle     475   385  0 21:01 pts/0    00:00:00 /bin/bash -c ps -ef | grep 385
oracle     477   475  0 21:01 pts/0    00:00:00 grep 385

----------------------不在数据库主机发出  spid 主是1

oracle   3485015       1 51 21:19 ?        00:01:10 oracle  (LOCAL=NO)

--------------------

select a.PROCESS,b.SPID From  v$session a , v$process b where a.PADDR=b.ADDR and a.USERNAME='SYS'

SQL> !ps -ef|grep sqlplus
oracle    3442  2792  0 21:06 pts/0    00:00:00 sqlplus           
oracle    3496  3442  0 21:06 pts/0    00:00:00 /bin/bash -c ps -ef|grep sqlplus
oracle    3498  3496  0 21:06 pts/0    00:00:00 grep sqlplus

SQL> !ps -ef | grep 3442
oracle    3442  2792  0 21:06 pts/0    00:00:00 sqlplus           
oracle    3450  3442  0 21:06 ?        00:00:00 oraclecdb1 (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
oracle    3578  3442  0 21:06 pts/0    00:00:00 /bin/bash -c ps -ef | grep 3442
oracle    3580  3578  0 21:06 pts/0    00:00:00 grep 3442

http://www.lryc.cn/news/204503.html

相关文章:

  • oracle rac了解
  • 力扣 -- 44. 通配符匹配
  • 电脑msvcp100.dll丢失的解决办法,靠谱的五个解决方法分享
  • HTML+CSS+JS+Django 实现前后端分离的科学计算器、利率计算器(附全部代码在gitcode链接)
  • VS Code C# 开发工具包正式发布
  • 【计算机网络】HTTPS 的加密流程
  • 若依和芋道
  • Linux流量监控
  • 高流量大并发Linux TCP性能调优
  • ATT 格式汇编语言语法
  • Linux系统编程学习 NO.8 ——make和Makefile、进度条程序
  • elementUI 中 date-picker 的使用的坑(vue3)
  • 1-07 React配置postcss-px-to-viewport
  • ITSource 分享 第3期【在线个人网盘】
  • 【C#进阶】C#语法中一些常用知识点总结
  • 加速开发容错量子计算应用!PsiQuantum官宣将在英国干大事
  • 使用canvas做了一个最简单的网页版画板,5分钟学会
  • 自组织映射Python实现
  • 如何避免阿里云对象储存OSS被盗刷
  • 产品研发团队协作神器!10款提效工具大盘点!
  • LSTM 与 GRU
  • 代码评审CheckList
  • [尚硅谷React笔记]——第5章 React 路由
  • 如何去掉不够优雅的IF-ELSE
  • Python中defaultdict的使用
  • 【ccc3.8】虚拟列表
  • 【23种设计模式】单一职责原则
  • DNS入门学习:什么是TTL值?如何设置合适的TTL值?
  • ilr normalize isometric log-ratio transformation
  • el表单的简单查询方法