重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

HighcostSQL-创新互联

select s.sid,        s.serial#,        s.username,        s.sql_id,        m.physical_reads,        m.logical_reads,        m.hard_parses,        m.physical_read_pct,        trunc(m.logical_read_pct) as logical_read_pct,        m.cpu / 100 as CPU   from v$sessmetric m, v$session s  where (m.physical_reads > 100 or m.cpu > 100 or m.logical_reads > 100)    and m.session_id = s.sid    and m.session_serial_num = s.serial#    and s.username is not null    and s.status = 'ACTIVE'  group by s.sid,           s.serial#,           s.username,           m.physical_reads,           m.logical_reads,           m.hard_parses,           m.physical_read_pct,           m.logical_read_pct,           cpu,           s.sql_id  order by m.physical_reads, m.cpu, m.logical_reads;

==

创新互联专注于静乐企业网站建设,响应式网站设计,商城建设。静乐网站建设公司,为静乐等地区提供建站服务。全流程定制制作,专业设计,全程项目跟踪,创新互联专业和态度为您提供的服务

Highcost SQL

 SELECT *   FROM (SELECT *           FROM (SELECT *                   FROM (SELECT u.name owner,                                o.name table_name,                                NULL partition_name,                                NULL subpartition_name,                                m.inserts,                                m.updates,                                m.deletes,                                m.timestamp,                                decode(bitand(m.flags, 1), 1, 'YES', 'NO') truncated,                                m.drop_segments                           FROM sys.mon_mods_all$ m,                                sys.obj$          o,                                sys.tab$          t,                                sys.user$         u                          WHERE o.obj# = m.obj#                            AND o.obj# = t.obj#                            AND o.owner# = u.user#                         UNION ALL                         SELECT u.name,                                o.name,                                o.subname,                                NULL,                                m.inserts,                                m.updates,                                m.deletes,                                m.timestamp,                                decode(bitand(m.flags, 1), 1, 'YES', 'NO'),                                m.drop_segments                           FROM sys.mon_mods_all$ m, sys.obj$ o, sys.user$ u                          WHERE o.owner# = u.user#                            AND o.obj# = m.obj#                            AND o.type# = 19                         UNION ALL                         SELECT u.name,                                o.name,                                o2.subname,                                o.subname,                                m.inserts,                                m.updates,                                m.deletes,                                m.timestamp,                                decode(bitand(m.flags, 1), 1, 'YES', 'NO'),                                m.drop_segments                           FROM sys.mon_mods_all$ m,                                sys.obj$          o,                                sys.tabsubpart$   tsp,                                sys.obj$          o2,                                sys.user$         u                          WHERE o.obj# = m.obj#                            AND o.owner# = u.user#                            AND o.obj# = tsp.obj#                            AND o2.obj# = tsp.pobj#)                  WHERE owner NOT LIKE '%SYS%'                    AND owner NOT LIKE 'XDB'                 UNION ALL                 SELECT *                   FROM (SELECT u.name owner,                                o.name table_name,                                NULL partition_name,                                NULL subpartition_name,                                m.inserts,                                m.updates,                                m.deletes,                                m.timestamp,                                decode(bitand(m.flags, 1), 1, 'YES', 'NO') truncated,                                m.drop_segments                           FROM sys.mon_mods$ m,                                sys.obj$      o,                                sys.tab$      t,                                sys.user$     u                          WHERE o.obj# = m.obj#                            AND o.obj# = t.obj#                            AND o.owner# = u.user#                         UNION ALL                         SELECT u.name,                                o.name,                                o.subname,                                NULL,                                m.inserts,                                m.updates,                                m.deletes,                                m.timestamp,                                decode(bitand(m.flags, 1), 1, 'YES', 'NO'),                                m.drop_segments                           FROM sys.mon_mods$ m, sys.obj$ o, sys.user$ u                          WHERE o.owner# = u.user#                            AND o.obj# = m.obj#                            AND o.type# = 19                         UNION ALL                         SELECT u.name,                                o.name,                                o2.subname,                                o.subname,                                m.inserts,                                m.updates,                                m.deletes,                                m.timestamp,                                decode(bitand(m.flags, 1), 1, 'YES', 'NO'),                                m.drop_segments                           FROM sys.mon_mods$   m,                                sys.obj$        o,                                sys.tabsubpart$ tsp,                                sys.obj$        o2,                                sys.user$       u                          WHERE o.obj# = m.obj#                            AND o.owner# = u.user#                            AND o.obj# = tsp.obj#                            AND o2.obj# = tsp.pobj#)                  WHERE owner NOT LIKE '%SYS%'                    AND owner NOT LIKE '%XDB%')          ORDER BY inserts DESC)  WHERE rownum <= 50;

另外有需要云服务器可以了解下创新互联cdcxhl.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


网页标题:HighcostSQL-创新互联
标题来源:http://cqcxhl.com/article/jisgg.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP