问题描述: 一个session已经ACTIVE20多小时,等待事件SQL*Net more data from client 有一人session,从昨天上午11点多登陆(v$session.login_time),到现在一直是ACTIVE,而且从v$active_session_history只有一个sql_id,是一个merge操作,等待事件是SQL*Net more data from client.网络没有问题啊,现在访问的通. 如果是SQL执行的慢,不应该是这个等待事件吧. 解决思路:
SQL*Net message from client SQL> select event#,name,parameter1,parameter2,parameter3 from v$event_name where name = 'SQL*Net message from client'; EVENT# NAME PARAMETER1 PARAMETER2 PARAMETER3 --
--查出SID名字select * from v$access where object ='PKG_SMSSEND_PROC';--通过sid查出spidselect spid,osuser, s.program from v$session s,v$process p where s.paddr=p.addr and s.sid=(select sid from v$access where object ='PKG_SMSSEND_PROC');--杀进程登录ssh, kill -9
SELECT l.session_id sid, s.serial#, l.locked_mode, l.oracle_username, s.user#, l.os_user_name,s.machine, s.terminal,a.sql_text, a.action FROM v$sqlarea a,v$session s, v$locked_object l WHERE l.session_id = s.sid AND s.prev_sql_addr = a.address ORDER
1.数据库语言的分类 DDL:数据库定义语言 data Definition language 用于创建.修改.和删除数据库内的数据结构,如: 1:创建和删除数据库(CREATE DATABASE || DROP DATABASE): 2:创建.修改.重命名.删除表(CREATE TABLE || ALTER TABLE|| RENAME TABLE||DROP TABLE,TRUNCATE TABLE): 3:创建和删除索引(CREATEINDEX || DROP INDEX) DML:数据操
一.子查询 子查询:把一个查询语句用括号括起来,当做另外一条查询语句的条件去用,称为子查询 select emp.name from emp inner join dep on emp.dep_id = dep.id where dep.name="技术"; select name from emp where dep_id =(select id from dep where name="技术"); 查询平均年龄在25岁以上的部门名select name from
作者:程序员小冰,CSDN博客:http://blog.csdn.net/qq_21376985转载请说明出处. 下面是代码: 增加:insert into 数据表(字段1,字段2,字段3) values('值1','值2','值3') 删除:delete from 数据表 where id=你要删除的数据id 修改:update 数据表 set 字段1='值1',字段2='值2',字段3='值3' where id=你要修改的数据ID 查询:select(你要查询的字段,*代表全部字段) fr
insert INSERT INTO t_stu (name,age) VALUES ('wang',12) INSERT INTO t_stu VALUES(NULL,'wang',12) delete DELETE FROM t_stu WHERE id = 6 query SELECT * FROM t_stu update UPDATE t_stu SET age = 38 WHERE id = 1
read by other session简介 官方关于read by other session的介绍如下: When information is requested from the database, Oracle will first read the data from disk into the database buffer cache. If two or more sessions request the same information, the first session
一. 概述 这次介绍实例级别资源等待LCK类型锁的等待时间,关于LCK锁的介绍可参考 “sql server 锁与事务拨云见日”.下面还是使用sys.dm_os_wait_stats 来查看,并找出耗时最高的LOK锁. select wait_type, waiting_tasks_count, wait_time_ms , max_wait_time_ms, signal_wait_time_ms from sys.dm_os_wait_stats where wait_type like
在ORACLE当中有两个很常见的等待事件"SQL*Net message from client"与"SQL*Net message to client",两者有点区别,下面整理这方面的资料如下: SQL*Net message from client 表示服务端等待着Cilent发来请求让它处理,这时就会产生SQL*Net message from client等待事件. 而我们把这种Wait叫做空闲事件(ildel event),并不代表真正的Load