• 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

  • 相关阅读:
    JMeter+ant+jenkins自动化持续集成
    如何保证线程按顺序执行
    Java多线程和死锁
    java基础总结
    一、java自带的观察者模式
    一.HttpClient、JsonPath、JsonObject运用
    二.创建maven工程及下载需要的jar包
    一.Maven的安装和配置整理
    sql 关键词语句
    PHP5常量
  • 原文地址:https://www.cnblogs.com/feiyun8616/p/6806180.html
Copyright © 2020-2023  润新知