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

  • 相关阅读:
    【OpenCV学习】安防监控可疑走动报警
    【OpenCV学习】OpenMP并行化实例
    【OpenCV学习】cvConvert的使用
    【OpenCV学习】Fuzzy Logic模糊逻辑边缘提取
    C# 委托系列(一)将方法作为方法的参数
    关于dev的Gridview控件的行数据的颜色控制,根据不同的值设置不同颜色
    将gridcontrol导出到excel
    DataGridView中将某行设置为当前可见区域第一行
    如何获得窗体上控件相对于屏幕的位置?
    dev 控件 lookupedit 设置选项值
  • 原文地址:https://www.cnblogs.com/feiyun8616/p/6806180.html
Copyright © 2011-2022 走看看