zoukankan      html  css  js  c++  java
  • 向数据库中导入AWR数据

    使用$ORACLE_HOME/rdbms/admin/awrload.sql

    $ sqlplus '/as sysdba'
    
    SQL*Plus: Release 11.2.0.4.0 Production on Fri Nov 6 14:22:04 2015
    
    Copyright (c) 1982, 2013, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    
    SQL> @$ORACLE_HOME/rdbms/admin/awrload.sql
    ~~~~~~~~~~
    AWR LOAD
    ~~~~~~~~~~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~  This script will load the AWR data from a dump file. The   ~
    ~  script will prompt users for the following information:    ~
    ~     (1) name of directory object                            ~
    ~     (2) name of dump file                                   ~
    ~     (3) staging schema name to load AWR data into           ~
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Specify the Directory Name
    ~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    Directory Name                 Directory Path
    ------------------------------ -------------------------------------------------
    DATA_FILE_DIR                  /home/oracle/
    DATA_PUMP_DIR                  /u01/app/oracle/admin/dbt/dpdump/
    EXPDP_DIR                      /home/oracle/dump
    LOG_FILE_DIR                   /home/oracle
    ORACLE_OCM_CONFIG_DIR          /u01/app/oracle/product/11.2.0/dbhome_1/ccr/hosts
                                   /testdb/state
    
    ORACLE_OCM_CONFIG_DIR2         /u01/app/oracle/product/11.2.0/dbhome_1/ccr/state
    XMLDIR                         /u01/app/oracle/product/11.2.0/dbhome_1/rdbms/xml
    
    Choose a Directory Name from the list above (case-sensitive).
    
    Enter value for directory_name: LOG_FILE_DIR
    
    Using the dump directory: LOG_FILE_DIR
    
    Specify the Name of the Dump File to Load
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please specify the prefix of the dump file (.dmp) to load:
    
    Enter value for file_name: awrdat_5489_5494
    
    Loading from the file name: awrdat_5489_5494.dmp
    
    Staging Schema to Load AWR Snapshot Data
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    The next step is to create the staging schema
    where the AWR snapshot data will be loaded.
    After loading the data into the staging schema,
    the data will be transferred into the AWR tables
    in the SYS schema.
    
    
    The default staging schema name is AWR_STAGE.
    To use this name, press <return> to continue, otherwise enter
    an alternative.
    
    Enter value for schema_name: 
    
    Using the staging schema name: AWR_STAGE
    
    Choose the Default tablespace for the AWR_STAGE user
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Choose the AWR_STAGE users's default tablespace.  This is the
    tablespace in which the AWR data will be staged.
    
    TABLESPACE_NAME                CONTENTS  DEFAULT TABLESPACE
    ------------------------------ --------- ------------------
    NC_DATA                        PERMANENT
    NC_INDEX                       PERMANENT
    SYSAUX                         PERMANENT *
    TBS1                           PERMANENT
    TBS2                           PERMANENT
    USERS                          PERMANENT
    VPCUSERS                       PERMANENT
    
    Pressing <return> will result in the recommended default
    tablespace (identified by *) being used.
    
    Enter value for default_tablespace: TBS2
    
    Using tablespace TBS2 as the default tablespace for the AWR_STAGE
    
    
    Choose the Temporary tablespace for the AWR_STAGE user
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Choose the AWR_STAGE user's temporary tablespace.
    
    TABLESPACE_NAME                CONTENTS  DEFAULT TEMP TABLESPACE
    ------------------------------ --------- -----------------------
    TEMP                           TEMPORARY *
    
    Pressing <return> will result in the database's default temporary
    tablespace (identified by *) being used.
    
    Enter value for temporary_tablespace: 
    
    Using tablespace TEMP as the temporary tablespace for AWR_STAGE
    
    
    ... Creating AWR_STAGE user
    
    |
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    |  Loading the AWR data from the following
    |  directory/file:
    |   /home/oracle
    |   awrdat_5489_5494.dmp
    | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    |
    |  *** AWR Load Started ...
    |
    |  This operation will take a few moments. The
    |  progress of the AWR load operation can be
    |  monitored in the following directory/file:
    |   /home/oracle
    |   awrdat_5489_5494.log
    |
    ... Dropping AWR_STAGE user
    
    End of AWR Load
    SQL> 
  • 相关阅读:
    常见分布式锁的基本实现
    Xen安装部署和基本原理
    Android应用在不同版本间兼容性处理
    Android 在fragment中实现返回键单击提醒 双击退出
    Android使用的webcview中带有音乐播放控件,在关闭或分享时处于界面不可见状态下,声音仍在播放的问题解决
    Android 使用WebView浏览有声音或者视频的网页,关闭WebView之后,声音或者视频不停止的解决办法
    Android 自带Base64加密解密
    Android java.lang.RuntimeException: Canvas: trying to use a recycled bitmap android.graphics.Bitmap@412d7230
    Android 微信SDK图片分享(checkArgs fail, thumbData is invalid)
    Android之Glide获取图片Path和Glide获取图片Bitmap
  • 原文地址:https://www.cnblogs.com/abclife/p/4942506.html
Copyright © 2011-2022 走看看