zoukankan      html  css  js  c++  java
  • Required diagnostic data collection for RMAN backup

    1.  Provide the alert.log and related tracefile of the target database.  

    2.  Provide details on the location where backup is being placed.  I.e., tape, local disk, nfs mount, data domain, etc.    Call the file srdc_rman_backup_answers_<date>.txt before submitting.

    3.  Submit rman script.  Rename the script to srdc_rman_backup_script_<date>.txt before submitting.

    4.  Submit full rman output of execution.  Rename the output file to srdc_rman_backup_output_<date>.log before submitting.

    5.  If possible, reproduce the error/issue with debug enabled using:

    a. Before invoking rman, set the following environment variable:

    Unix:

    export NLS_DATE_FORMAT='DD-MON-YYYY HH24MISS'

    Windows:

    set NLS_DATE_FORMAT=DD-MON-YYYY HH24MISS

    b. Invoke rman with:

    rman trace=srdc_rman_backup_debug_<date>.trc log=srdc_rman_backup_output_<date>.log

    c. execute:

    connect target /;
    connect catalog ..... /* if rman catalog is being used */
    set echo on;
    debug on;
    <COMMANDS>
    debug off;

       

    NOTE:  debug adds very little overhead. 

    6.  If it is impossible to re-execute, connect to the target database and capture:

    eg:

    SQL> connect / as sysdba
    SQL> @srdc_rman_backup_output.sql

    7.  Compress (in .zip or .tar.gz format) all above files.  Call the file srdc_rman_backup_details_<date>.zip/.tar/.gz before uploading to SR.

    The following files are expected to be uploaded:

    srdc_rman_backup_answers_<date>.txt
    srdc_rman_backup_script_<date>.txt 
    srdc_rman_backup_output_<date>.log
    srdc_rman_backup_debug_<date>.trc

    ps:

    REM srdc_rman_backup_output.sql - collect RMAN information with backup.
    define SRDCNAME='RMAN_BACKUP'
    SET MARKUP HTML ON PREFORMAT ON
    set TERMOUT off FEEDBACK off VERIFY off TRIMSPOOL on HEADING off
    COLUMN SRDCSPOOLNAME NOPRINT NEW_VALUE SRDCSPOOLNAME
    select 'SRDC_'||upper('&&SRDCNAME')||'_'||upper(instance_name)||'_'||
         to_char(sysdate,'YYYYMMDD_HH24MISS') SRDCSPOOLNAME from v$instance;
    set TERMOUT on MARKUP html preformat on
    REM
    spool &&SRDCSPOOLNAME..htm
    select '+----------------------------------------------------+' from dual
    union all
    select '| Diagnostic-Name: '||'&&SRDCNAME' from dual
    union all
    select '| Timestamp:       '||to_char(systimestamp,'YYYY-MM-DD HH24:MI:SS TZH:TZM') from dual
    union all
    select '| Machine:         '||host_name from v$instance
    union all
    select '| Version:         '||version from v$instance
    union all
    select '| DBName:          '||name from v$database
    union all
    select '| Instance:        '||instance_name from v$instance
    union all
    select '+----------------------------------------------------+' from dual
    /
    set pagesize 50000;
    set echo on;
    set feedback on;
    select output from v$rman_output;

    spool off
    set markup html off preformat off

  • 相关阅读:
    jvisualm 结合 visualGC 进行jvm监控,并分析垃圾回收
    linux 查看服务器cpu 与内存配置
    arthas 使用总结
    selinux contexts 安全上下文的临时更改
    Android 8.1 Doze模式分析(五) Doze白名单及Debug方式
    Window 任意窗口置顶软件Window TopMost Control
    Android ApkToolPlus一个可视化的跨平台 apk 分析工具
    SVN Please execute the 'Cleanup' command.
    Android 如何在64位安卓系统中使用32位SO库
    Android cmd命令查看apk是32位还是64位?
  • 原文地址:https://www.cnblogs.com/feiyun8616/p/6806180.html
Copyright © 2011-2022 走看看