日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

向数据库中导入AWR数据

發布時間:2024/8/26 数据库 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 向数据库中导入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 2015Copyright (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 optionsSQL> @$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/stateORACLE_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/xmlChoose a Directory Name from the list above (case-sensitive).Enter value for directory_name: LOG_FILE_DIRUsing the dump directory: LOG_FILE_DIRSpecify 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_5494Loading from the file name: awrdat_5489_5494.dmpStaging 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_STAGEChoose 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 PERMANENTPressing <return> will result in the recommended default tablespace (identified by *) being used.Enter value for default_tablespace: TBS2Using tablespace TBS2 as the default tablespace for the AWR_STAGEChoose 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 userEnd of AWR Load SQL>

?

轉載于:https://www.cnblogs.com/abclife/p/4942506.html

總結

以上是生活随笔為你收集整理的向数据库中导入AWR数据的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。