[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

目录
相关文章
|
Oracle 前端开发 关系型数据库
在Oracle的ADR中设置自动删除trace文件的策略
姚远在一个有两万个客户的公司做数据库支持,什么稀奇古怪的事情都能遇到,有个客户的数据库不停地产生大量的trace,经常把硬盘撑爆,看看姚远怎么解决这个问题的。
115 0
|
Oracle 关系型数据库 Unix
[20180222]Oracle中如何追踪savepoint.txt
[20180222]Oracle中如何追踪savepoint.txt --//测试如何跟踪事务的savepoint点.测试参考http://www.askmaclean.
1059 0
|
SQL Oracle 关系型数据库
|
Oracle 关系型数据库 数据库
|
Oracle 关系型数据库 Linux
[20171031]rman merge例子2.txt
[20171031]rman merge例子2.txt --//以前做的测试 [20170626]rman merge例子.txt --//链接 http://blog.
1006 0
|
Oracle 关系型数据库 Linux
[20170626]rman merge例子.txt
[20170626]rman merge例子.txt 1.环境: SCOTT@book> @ &r/ver1 PORT_STRING                    VERSION        BANNER -----------------...
928 0
|
数据库管理
[20170411]bbed删除记录的恢复.txt
[20170411]bbed删除记录的恢复.txt --//昨天上午做的测试,链接:http://blog.itpub.net/267265/viewspace-2136933/ --//我当时并没有选择恢复记录,仅仅看删除的内容.
1045 0
|
SQL Oracle 关系型数据库
[20170105]关于使用datafilecopy恢复.txt
[20170105]关于使用datafilecopy恢复.txt --如果指定恢复数据文件是从datafilecopy,必须加括号,写一个例子说明: 1.环境: SYS@book> @ &r/ver1 PORT_STRING             ...
1045 0
|
SQL Go 数据库
sys.master_files不能准确展示Tempdb数据库大小
# 问题提出 老鸟这两周一直没有找到机会略菜鸟,因为菜鸟最近一直在参加百阿培训。这不,刚好菜鸟过完买买买的双十一回来,老鸟逮着机会劈头盖脸问道:“菜鸟啊,你去研究下为什么MSSQL Server系统视图sys.master_files不能准确展示Tempdb数据库数据文件大小啊?”。 # 场景复盘 菜鸟一脸懵逼:“什么?不准确,不会吧?我一直都是用它来统计数据库文件大小的啊,有什么问
2571 0