[20160902][转载]跟踪rman操作.txt

简介: [20160902]跟踪rman操作.txt --转载:跟踪rman https://laurent-leturgez.com/2016/08/29/tracing-oracle-binaries-and-tools/ --以前仅仅知道debug,没有知道这么细,做一个记录,原链接里面还有DGMGRL,EXPDP / IMPDP,SRVCTL,OPATCH,10046事件的跟踪。

[20160902]跟踪rman操作.txt

--转载:跟踪rman
https://laurent-leturgez.com/2016/08/29/tracing-oracle-binaries-and-tools/
--以前仅仅知道debug,没有知道这么细,做一个记录,原链接里面还有DGMGRL,EXPDP / IMPDP,SRVCTL,OPATCH,10046事件的跟踪。

RMAN

RMAN is the Oracle utility used to backup and recover your databases. To enable tracing is RMAN, you have to switch rman is "debug" mode.

This mode can be enabled directly in rman:

[oracle@oel7 ~]$ rman target /
Recovery Manager: Release 12.1.0.2.0 - Production on Wed Feb 24 15:45:13 2016
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: ORCL (DBID=1413029491)
 
RMAN> debug on
 
RMAN-03036: Debugging set to level=9[MEDIUM], types=ALL
DBGSQL: TARGET> begin dbms_rcvman.setDebugOn; dbms_rcvman.dumpPkgState('Debug On'); end;
DBGSQL: sqlcode = 0
DBGRCVMAN: ENTERING dumpPkgState Debug On
.../...

Or (much better) it can be enabled with the debug option in the rman command, and by specifying a trace file :
   
[oracle@oel7 ~]$ rman target / debug trace=tracefile.trc
Recovery Manager: Release 12.1.0.2.0 - Production on Wed Feb 24 15:22:10 2016
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
RMAN-06005: connected to target database: ORCL (DBID=1413029491)
RMAN> disconnect

All the debug stuff is then located in your "tracefile.trc" file.

You can enable tracing on specific component in rman :

    SQL: for tracing SQL queries generated by rman
    RESTORE: for tracing restore operation only
    RECOVER: for tracing recovery operation only
    RESYNC: for tracing synchronization operation only
    DUPLICATE: for tracing duplicate operation only

And for each or all of these component, you can set a verbosity level from 1 (lowest) to 10 (highest). 9 is the default
verbosity level. Sometimes, you can change the verbosity level without any change in your tracefile.

Here are some examples (point that many components can be traced at the same time):
   
[oracle@oel7 ~]$ rman target / debug recover level=10 trace=tracefile.trc
[oracle@oel7 ~]$ rman target / debug sql level=1 trace=tracefile.trc
RMAN> debug restore,sql level=10

目录
相关文章
|
SQL Oracle 关系型数据库
|
Oracle 关系型数据库 数据库
|
Oracle 关系型数据库 Linux
[20171031]rman merge例子2.txt
[20171031]rman merge例子2.txt --//以前做的测试 [20170626]rman merge例子.txt --//链接 http://blog.
985 0
|
Oracle 关系型数据库 Linux
[20170626]rman merge例子.txt
[20170626]rman merge例子.txt 1.环境: SCOTT@book> @ &r/ver1 PORT_STRING                    VERSION        BANNER -----------------...
904 0
|
Oracle 关系型数据库 数据库
[20170518]模拟ora-00600[2608]错误2.txt
[20170518]模拟ora-00600[2608]错误2.txt --//以前模拟过ora-00600[2608]错误.链接http://blog.itpub.net/267265/viewspace-1680801/ --//当时基本按照刘工的帖子重复测试.
979 0
|
数据库管理
[20170411]bbed删除记录的恢复.txt
[20170411]bbed删除记录的恢复.txt --//昨天上午做的测试,链接:http://blog.itpub.net/267265/viewspace-2136933/ --//我当时并没有选择恢复记录,仅仅看删除的内容.
1034 0
|
Oracle 关系型数据库 开发工具
[20161020]bbed保存执行结果.txt
[20161020]bbed保存执行结果.txt --别人问的问题,实际上如果输出内容不多,直接界面上查看。 --如果输出很多,屏幕显示一闪而过,如果在tmux下使用就很简单,使用前缀键+[进入tmux的buffer模式,浏览以前的显示的内容 --我设置vi模式,可以像vim使用?或者/查询需要找的内容,一般使用?,因为tmux的显示是从下向上的。
740 0
|
SQL Oracle 关系型数据库
[20160720]查看了解oracle跟踪事件.txt
[20160720]查看了解oracle跟踪事件.txt --作为dba偶尔会使用一些跟踪事件,比较有名的是10046,10053.其他使用很少事情,更别说记忆。 --如果查询特定的事件可以使用oerr 命令。
790 0
|
数据库管理
[20160528]bbed观察行目录变化.txt
[20160528]bbed观察行目录变化.txt 如果使用bbed观察kdbr,可以发现记录的是相对偏移量,这个偏移我一直认为从kdbh算起.而对于数据块前面有ITL槽信息,对于有2个ITL的块, 使用assm的表空间,一般我看到都是100.
753 0