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

  • 相关阅读:
    大数据的前景?
    PriorityBlockingQueue深度解析(好文)
    深入CAS原理
    common-lang3工具类-使用手册
    gitlab搭建
    RestTemplate转码bug
    论tigergraph边的方向性
    关于java的wait方法的深入分析
    openjdk的源码下载方式
    一个奇怪的urlencode转码问题
  • 原文地址:https://www.cnblogs.com/feiyun8616/p/6806180.html
Copyright © 2011-2022 走看看