DBA不复制粘贴,你还能做些什么?思考一下

在客户现场查看文档,照着命令敲,其实是很LOW的一件事,问题是很多时候,现场不允许带着你的笔记本和手机,你怎么办。很多常用的命令需要我们记住,随手捏来,每天花费半个小时边敲边理解是很好学习方式。

下面的诊断命令你能在理解的基础上盲敲下来么???

[[email protected] ~]# date
Mon Dec 24 06:40:05 CST 2018
[[email protected] ~]# su - oracle
<11g-ocp:orcl:/home/oracle>$sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Mon Dec 24 06:40:12 2018

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Automatic Storage Management, OLAP and Real Application Testing options

SQL> select sysdate from dual;

SYSDATE
-----------------------
24-DEC-2018 06:40:18

SQL> oradebug setmypid;
Statement processed.
SQL> oradebug event 10046 trace name context forever,level 12;
Statement processed.
SQL> select count(*) from t;

  COUNT(*)
----------
         1

SQL> oradebug event 10046 trace name context off;
Statement processed.
SQL> oradebug tracefile_name;
/u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_2761.trc
SQL> !tkprof /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_2761.trc ./1224.trc

TKPROF: Release 11.2.0.4.0 - Development on Mon Dec 24 06:41:30 2018

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

SQL> !more ./1224.trc

TKPROF: Release 11.2.0.4.0 - Development on Mon Dec 24 06:41:30 2018

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Trace file: /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_2761.trc
Sort options: default

********************************************************************************
count    = number of times OCI procedure was executed
cpu      = cpu time in seconds executing
elapsed  = elapsed time in seconds executing
disk     = number of physical reads of buffers from disk
query    = number of buffers gotten for consistent read
current  = number of buffers gotten in current mode (usually for update)
rows     = number of rows processed by the fetch or execute call
********************************************************************************

SQL ID: cyzznbykb509s Plan Hash: 2966233522

select count(*)
from
 t

call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        1      0.00       0.00          0          0          0           0
Execute      1      0.00       0.00          0          0          0           0
Fetch        2      0.00       0.00          0          2          0           1
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total        4      0.00       0.00          0          2          0           1

Misses in library cache during parse: 0
Optimizer mode: ALL_ROWS
Parsing user id: SYS
Number of plan statistics captured: 1

Rows (1st) Rows (avg) Rows (max)  Row Source Operation
---------- ---------- ----------  ---------------------------------------------------
         1          1          1  SORT AGGREGATE (cr=2 pr=0 pw=0 time=65 us)
         1          1          1   TABLE ACCESS FULL T (cr=2 pr=0 pw=0 time=37 us cost=2 size=0 card=1)

Elapsed times include waiting on following events:
  Event waited on                             Times   Max. Wait  Total Waited
  ----------------------------------------   Waited  ----------  ------------
  SQL*Net message to client                       2        0.00          0.00
  SQL*Net message from client                     2       10.31         10.31

********************************************************************************

OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS

call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        1      0.00       0.00          0          0          0           0
Execute      1      0.00       0.00          0          0          0           0
Fetch        2      0.00       0.00          0          2          0           1
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total        4      0.00       0.00          0          2          0           1

Misses in library cache during parse: 0

Elapsed times include waiting on following events:
  Event waited on                             Times   Max. Wait  Total Waited
  ----------------------------------------   Waited  ----------  ------------
  SQL*Net message to client                       3        0.00          0.00
  SQL*Net message from client                     3       10.31         15.89

OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS

call     count       cpu    elapsed       disk      query    current        rows
------- ------  -------- ---------- ---------- ---------- ----------  ----------
Parse        0      0.00       0.00          0          0          0           0
Execute      0      0.00       0.00          0          0          0           0
Fetch        0      0.00       0.00          0          0          0           0
------- ------  -------- ---------- ---------- ---------- ----------  ----------
total        0      0.00       0.00          0          0          0           0

Misses in library cache during parse: 0

    1  user  SQL statements in session.
    0  internal SQL statements in session.
    1  SQL statements in session.
********************************************************************************
Trace file: /u01/app/oracle/diag/rdbms/orcl/orcl/trace/orcl_ora_2761.trc
Trace file compatibility: 11.1.0.7
Sort options: default

       1  session in tracefile.
       1  user  SQL statements in trace file.
       0  internal SQL statements in trace file.
       1  SQL statements in trace file.
       1  unique SQL statements in trace file.
      62  lines in trace file.
       0  elapsed seconds in trace file.

SQL> 

原文地址:http://blog.51cto.com/roidba/2334371

时间: 2024-07-30 10:03:39

DBA不复制粘贴,你还能做些什么?思考一下的相关文章

面对即将终止支持的server你还能做些什么

截止到7月14日终止支持日期,WindowsServer 2003仅仅剩下两次定期性更新,以后将不再有不论什么安全更新.这就意味着,若您在7月15日起依旧使用Windows Server 2003的话.当此server发现不论什么新漏洞,您将马上面临危急. 依据近期的一项调查显示,82%的受訪者其企业内部仍有一些Windows Server 2003 存在.而这些受訪者其中的25%表示,将在缺乏支持和维护的情况下继续使用Windows Server 2003. 使用缺乏支持的操作系统,在营运上被

除了一键复制粘贴,“软件机器人”还能自动完成这些电脑操作...

日常工作中,我们经常会遇到,或者看到身边的人,常常被大量繁琐的重复性电脑操作所困扰.如销售人员为收集客户信息,需要某些网站查询复制一些客户信息:专家医生做某类病症科研分析,需要采集HIS系统临床数据进行汇总分析-- 这些简单且具重复规律性工作,消耗了大量的时间和精力,束缚了双手和双眼,为此腰酸背痛.头晕眼花.同时,又不得不带着这种精疲力尽的状态,继续这些手工搬运数据的工作,出现工作错误.失误,导致更多时间的浪费和其他损失. 所以,我们常希望能出现一个人,能够听从指令,按照要求,快速而又准确地完成

textarea还剩余字数统计,支持复制粘贴的时候统计字数

<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>textarea还剩余字数统计 - 懒人建站 http://www.51xuediannao.com/</title> <style type="text/css"> body,a{ font-size: 14px; color: #555;;} .wordCo

在LINUX终端和VIM下复制粘贴

http://www.tinylab.org/linux-terminal-and-paste-copy-under-vim/ 在GUI界面下,我们可以很自由的复制粘贴.但是在字符界面下,我们不得不用鼠标选定,然后单击右健,选择复制,再到别处去Ctrl-v.并且对于 那些用没有配置过的VIM来说,VIM的粘贴板和X Window的粘贴板还不共享.这在码字的过程中,感觉非常不流畅.下面,我们就尝试解决这个问题. 首先我们得让VIM和X Window共享一个粘贴板,这样我们就可以像在GUI界面下一样

Android 复制 粘贴 剪贴板的使用 ClipboardManager

Copy and Paste 版本:Android 4.0 r1 快速查看 用于复制粘贴数据的基于剪贴板的框架. 同时支持简单和复杂的数据,包括文本串.复杂的数据结构.文本和二进制流数据.程序 asset. 直接从剪贴板复制粘贴简单文本. 用content provider复制粘贴复杂数据. 需要API 11版本. 在本文中 剪贴板框架 剪贴板类 ClipboardManager ClipData.ClipDescription和ClipData.Item ClipData常用方法 将剪贴板中数

H5复制粘贴

H5 复制粘贴 - execCommand 字数748 阅读399 评论0 喜欢0 需求:自动复制一段内容到剪切板, 让用户可以在其他客户端粘贴(发小广告做推广经常要用吧) window.clipboardData (IE 才有) 是个很好用的对象, 但是 只在 IE 才有,IE 被吐糟了一万年, 才发现他有个不错的地方.IE 即将退出历史, 找点其他的吧. ZeroClipboard (借助Flash) 是一个不错选择, 但是他还是借助的 flash 实现的本人讨厌 Flash, 弃之. wi

Vim 复制粘贴探秘

Vim作为最好用的文本编辑器之一,使用vim来编文档,写代码实在是很惬意的事情.每当学会了vim的一个新功能,就会很大地提高工作效率.有人使用vim几十年,还没有完全掌握vim的功能,这也说明了vim的强大.而这样何尝不是一件好事呢,只要有的学习,就有的提高. 最近使用Vim来写博客,发现在Vim中粘贴Python代码后,缩进就全乱了.仔细研究了以下,原来是自动缩进的缘故,于是做如下设置: :set noai nosi 取消了自动缩进和智能缩进,这样粘贴就不会错行了.但在有的vim中不行,还是排

vi的复制粘贴命令 -- (转)

vi编辑器有3种模式:命令模式.输入模式.末行模式.掌握这三种模式十分重要: 1.命令模式:vi启动后默认进入的是命令模式,从这个模式使用命令可以切换到另外两种模式,同时无论在任何模式下只要按一下[Esc]键都可以返回命令模式.在命令模式中输入字幕“i”就可以进入vi的输入模式编辑文件. 2.输入模式:在这个模式中我们可以编辑.修改.输入等编辑工作,在编辑器最后一行显示一个“--INSERT--”标志着vi进入了输入模式.当我们完成修改输入等操作的时候我们需要保存文件,这时我们需要先返回命令模式

个人永久性免费-Excel催化剂功能第44波-可见区域复制粘贴不覆盖隐藏内容

Excel的复制粘贴操作,每天都在进行,若其中稍能提升一点效率,长久来说,实在是很可观的效率提升. Excel自带的复制粘贴功能,若复制的数据源或粘贴的目标位置中有隐藏的行列内容,简单一个复制粘贴充满许多的坑坑哇哇.Excel催化剂今天为你全部解决,填满所有的坑! 文章出处说明 原文在简书上发表,再同步到Excel催化剂微信公众号或其他平台上,文章后续有修改和更新将在简书上操作, 其他平台不作同步修改更新,因此建议阅读其他出处的文章时,尽可能跳转回简书平台上查看. 使用场景 在数据临时加工处理过