设为首页 收藏本站
查看: 709|回复: 0

[经验分享] Oracle技术之10204 AWR导入性能问题

[复制链接]

尚未签到

发表于 2018-9-26 10:50:33 | 显示全部楼层 |阅读模式
  测试发现10g的AWR在导入大数据量的SNAP数据时,性能明显下降。
  一个不到2G的AWR导出文件,利用AWR导入到目标数据库中,居然用时超过了5个小时。
  bash-2.03$ sqlplus / as sysdba

  SQL*Plus:>  Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.
  连接到:

  Oracle Database10gEnterprise Edition>  With the Partitioning, Real Application Clusters, OLAP, Data Mining
  and Real Application Testing options
  SQL> @?/rdbms/admin/awrload
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Disclaimer: This SQL/Plus script. should only be called under
  the guidance of Oracle Support.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~~~~~~~~~~
  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
  ------------------------------ -------------------------------------------------
  ADMIN_DIR                      /data/oracle/product/10.2/database/md/admin
  DATA_PUMP_DIR                  /data/oracle/product/10.2/database/rdbms/log/
  D_AWR                          /data1/awr
  ORACLE_OCM_CONFIG_DIR          /data/oracle/product/10.2/database/ccr/state
  WORK_DIR                       /data/oracle/product/10.2/database/work
  Choose a Directory Name from the list above (case-sensitive).
  输入directory_name的值:  D_AWR
  Using the dump directory: D_AWR
  Specify the Name of the Dump File to Load
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Please specify the prefix of the dump file (.dmp) to load:
  输入file_name的值:  awrdat_1_47802
  Loading from the file name: awrdat_1_47802.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  to continue, otherwise enter

  an>  输入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
  ------------------------------ --------- ------------------
  SYSAUX                         PERMANENT *
  USERS                          PERMANENT
  Pressing  will result in the recommended default
  tablespace (identified by *) being used.
  输入default_tablespace的值:  sysaux
  Using tablespace SYSAUX 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  will result in the database's default temporary
  tablespace (identified by *) being used.
  输入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:
  |   /data1/awr
  |   awrdat_1_47802.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:
  |   /data1/awr
  |   awrdat_1_47802.log
  |
  WHERE (DBID) NOT IN (SELECT DBID FROM AWR_STAGE.WRM$_WR_CONTROL)
  WHERE (DBID, INSTANCE_NUMBER, STARTUP_TIME) NOT IN (SELECT DBID, INSTANCE_NUMBER, STARTUP_TIME FROM
  AWR_STAGE.WRM$_DATABASE_INSTANCE)
  WHERE (DBID, SNAP_ID) NOT IN (SELECT DBID, SNAP_ID FROM AWR_STAGE.WRM$_SNAPSHOT)
  WHERE (DBID, SNAP_ID) NOT IN (SELECT DBID, SNAP_ID FROM AWR_STAGE.WRM$_SNAP_ERROR)
  WHERE (DBID, STAT_ID) NOT IN (SELECT DBID, STAT_ID FROM AWR_STAGE.WRH$_STAT_NAME)
  WHERE (DBID, PARAMETER_HASH) NOT IN (SELECT DBID, PARAMETER_HASH FROM AWR_STAGE.WRH$_PARAMETER_NAME)
  WHERE (DBID, EVENT_ID) NOT IN (SELECT DBID, EVENT_ID FROM AWR_STAGE.WRH$_EVENT_NAME)
  WHERE (DBID, LATCH_HASH) NOT IN (SELECT DBID, LATCH_HASH FROM AWR_STAGE.WRH$_LATCH_NAME)
  WHERE (DBID, SNAP_ID) NOT IN (SELECT DBID, SNAP_ID FROM AWR_STAGE.WRH$_FILESTATXS)
  WHERE (DBID, SNAP_ID) NOT IN (SELECT DBID, SNAP_ID FROM AWR_STAGE.WRH$_FILESTATXS_BL)
  .
  .
  .
  WHERE (DBID, SNAP_ID) NOT IN (SELECT DBID, SNAP_ID FROM AWR_STAGE.WRH$_ACTIVE_SESSION_HISTORY)
  WHERE (DBID, SNAP_ID) NOT IN (SELECT DBID, SNAP_ID FROM AWR_STAGE.WRH$_ACTIVE_SESSION_HISTORY_BL)
  已成功加载/卸载了主表"SYS"."SYS_IMPORT_FULL_01"
  启动"SYS"."SYS_IMPORT_FULL_01":
  处理对象类型TABLE_EXPORT/TABLE/TABLE
  处理对象类型TABLE_EXPORT/TABLE/TABLE_DATA
  . .导入了"AWR_STAGE"."WRH$_SQL_PLAN"                 212.1 MB  769266行
  . .导入了"AWR_STAGE"."WRH$_SQLTEXT"                  114.0 MB   48107行
  . .导入了"AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_46936"  155.2 MB  820442行
  . .导入了"AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_45248"  139.3 MB  725923行
  . .导入了"AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_46552"  135.3 MB  714041行
  . .导入了"AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_47664"  124.4 MB  657252行
  . .导入了"AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_45440"  112.9 MB  594929行
  . .导入了"AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_47280"  110.9 MB  588137行
  . .导入了"AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_46359"  98.25 MB  519423行
  . .导入了"AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_45713"  69.07 MB  365955行
  . .导入了"AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_45906"  68.64 MB  363224行
  . .导入了"AWR_STAGE"."WRH$_SYSMETRIC_SUMMARY"        25.81 MB  352755行
  .
  .
  .
  . .导入了"AWR_STAGE"."WRR$_CAPTURE_STATS"                0 KB       0行
  . .导入了"AWR_STAGE"."WRR$_FILTERS"                      0 KB       0行
  处理对象类型TABLE_EXPORT/TABLE/INDEX/INDEX
  处理对象类型TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
  处理对象类型TABLE_EXPORT/TABLE/COMMENT
  处理对象类型TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
  作业"SYS"."SYS_IMPORT_FULL_01"已于13:19:40成功完成
  Register the DBID: 3944144691
  Append Data for AWR_STAGE.WRM$_DATABASE_INSTANCE.
  INSERT /*+ APPEND */ INTO SYS.WRM$_DATABASE_INSTANCE (DBID, INSTANCE_NUMBER, STARTUP_TIME, PARALLEL, VERSION,
  DB_NAME, INSTANCE_NAME, HOST_NAME, LAST_ASH_SAMPLE_ID) SELECT DBID, INSTANCE_NUMBER, STARTUP_TIME, PARALLEL,
  VERSION, DB_NAME, INSTANCE_NAME, HOS
  T_NAME, LAST_ASH_SAMPLE_ID FROM AWR_STAGE.WRM$_DATABASE_INSTANCE WHERE (DBID, INSTANCE_NUMBER, STARTUP_TIME)
  NOT IN (SELECT DBID, INSTANCE_NUMBER, STARTUP_TIME FROM SYS.WRM$_DATABASE_INSTANCE)
  Append Data for AWR_STAGE.WRM$_SNAPSHOT.
  INSERT /*+ APPEND */ INTO SYS.WRM$_SNAPSHOT (SNAP_ID, DBID, INSTANCE_NUMBER, STARTUP_TIME,
  BEGIN_INTERVAL_TIME, END_INTERVAL_TIME, FLUSH_ELAPSED, SNAP_LEVEL, STATUS, ERROR_COUNT, BL_MOVED, SNAP_FLAG)
  SELECT SNAP_ID, DBID, INSTANCE_NUMBER, STARTUP_TIME, BE
  GIN_INTERVAL_TIME, END_INTERVAL_TIME, FLUSH_ELAPSED, SNAP_LEVEL, 1, 0, 0, SNAP_FLAG + 2 FROM
  AWR_STAGE.WRM$_SNAPSHOT WHERE (DBID, SNAP_ID) NOT IN (SELECT DBID, SNAP_ID FROM SYS.WRM$_SNAPSHOT)
  .
  .
  .
  Append Data for AWR_STAGE.WRH$_ACTIVE_SESSION_HISTORY_BL.
  INSERT /*+ APPEND */ INTO SYS.WRH$_ACTIVE_SESSION_HISTORY (SNAP_ID, DBID, INSTANCE_NUMBER, SAMPLE_ID,
  SAMPLE_TIME, SESSION_ID, SESSION_SERIAL#, USER_ID, SQL_ID, SQL_CHILD_NUMBER, SQL_PLAN_HASH_VALUE,
  SERVICE_HASH, SESSION_TYPE, SQL_OPCODE, QC_SESSION_ID,
  QC_INSTANCE_ID, CURRENT_OBJ#, CURRENT_FILE#, CURRENT_BLOCK#, SEQ#, EVENT_ID, P1, P2, P3, WAIT_TIME,
  TIME_WAITED, PROGRAM, MODULE, ACTION, CLIENT_ID, FORCE_MATCHING_SIGNATURE, BLOCKING_SESSION,
  BLOCKING_SESSION_SERIAL#, XID, PLSQL_ENTRY_OBJECT_ID, PLSQL_EN
  TRY_SUBPROGRAM_ID, PLSQL_OBJECT_ID, PLSQL_SUBPROGRAM_ID, FLAGS) SELECT SNAP_ID, DBID, INSTANCE_NUMBER,
  SAMPLE_ID, SAMPLE_TIME, SESSION_ID, SESSION_SERIAL#, USER_ID, SQL_ID, SQL_CHILD_NUMBER, SQL_PLAN_HASH_VALUE,
  SERVICE_HASH, SESSION_TYPE, SQL_OPCODE, QC_
  SESSION_ID, QC_INSTANCE_ID, CURRENT_OBJ#, CURRENT_FILE#, CURRENT_BLOCK#, SEQ#, EVENT_ID, P1, P2, P3,
  WAIT_TIME, TIME_WAITED, PROGRAM, MODULE, ACTION, CLIENT_ID, FORCE_MATCHING_SIGNATURE, BLOCKING_SESSION,
  BLOCKING_SESSION_SERIAL#, XID, PLSQL_ENTRY_OBJECT_
  ID, PLSQL_ENTRY_SUBPROGRAM_ID, PLSQL_OBJECT_ID, PLSQL_SUBPROGRAM_ID, FLAGS FROM
  AWR_STAGE.WRH$_ACTIVE_SESSION_HISTORY_BL WHERE (DBID, SNAP_ID) NOT IN (SELECT DBID, SNAP_ID FROM
  SYS.WRH$_ACTIVE_SESSION_HISTORY)
  Append Data for AWR_STAGE.WRM$_SNAP_ERROR.
  INSERT /*+ APPEND */ INTO SYS.WRM$_SNAP_ERROR (SNAP_ID, DBID, INSTANCE_NUMBER, TABLE_NAME, ERROR_NUMBER)
  SELECT SNAP_ID, DBID, INSTANCE_NUMBER, TABLE_NAME, ERROR_NUMBER FROM AWR_STAGE.WRM$_SNAP_ERROR WHERE (DBID,
  SNAP_ID, INSTANCE_NUMBER, TABLE_NAME) NOT
  IN (SELECT DBID, SNAP_ID, INSTANCE_NUMBER, TABLE_NAME FROM SYS.WRM$_SNAP_ERROR)
  UPDATE SYS.WRM$_SNAPSHOT s1 SET status = 0, error_count = (SELECT count(*) FROM SYS.wrm$_snap_error s2 WHERE
  s1.dbid    = s2.dbid AND s1.snap_id = s2.snap_id AND s1.instance_number = s2.instance_number)  WHERE status =
  1   AND BITAND(snap_flag, 2) != 0
  AND (dbid, snap_id) IN (SELECT dbid, snap_id FROM AWR_STAGE.WRM$_SNAPSHOT)
  Finished MOVE_TO_AWR procedure
  ... Dropping AWR_STAGE user
  End of AWR Load
  可以看到在数据泵导入输出之前,多了很多WHERE语句,且在最后Append Data for输出的时候多了很多sql语句,正是这些导致了10204上导入AWR数据性能很差。
  而在10203或11.2上执行导入,同样的数据不到一个小时就能完成:
  SQL> select * from v$version;
  BANNER
  ----------------------------------------------------------------

  Oracle Database10gEnterpriseEdition>
  PL/SQL>  CORE    10.2.0.3.0      Production
  TNS for Linux: Version 10.2.0.3.0 - Production
  NLSRTL Version 10.2.0.3.0 - Production
  SQL> @?/rdbms/admin/awrload.sql
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Disclaimer: This SQL/Plus script. should only be called under
  the guidance of Oracle Support.
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ~~~~~~~~~~
  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
  ------------------------------ -------------------------------------------------
  ADMIN_DIR                      /opt/ora10g/product/10.2.0/db_1/md/admin
  DATA_PUMP_DIR                  /opt/ora10g/product/10.2.0/db_1/rdbms/log/
  EXTDIR                         /home/oracle/script/
  TRAN                           /data/backup
  WORK_DIR                       /opt/ora10g/product/10.2.0/db_1/work
  Choose a Directory Name from the list above (case-sensitive).
  Enter value for directory_name: DMP_DIR
  Using the dump directory: DMP_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_1_47802
  Loading from the file name: awrdat_1_47802.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  to continue, otherwise enter

  an>  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
  ------------------------------ --------- ------------------
  BOOKS                          PERMANENT
  NDMAIN                         PERMANENT
  SYSAUX                         PERMANENT *
  TEST                           PERMANENT
  ZJ_LPD                         PERMANENT
  Pressing  will result in the recommended default
  tablespace (identified by *) being used.
  Enter value for default_tablespace: ndmain
  Using tablespace NDMAIN 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  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:
  |   /data/backup
  |   awrdat_1_47802.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:
  |   /data/backup
  |   awrdat_1_47802.log
  |
  Master table "SYS"."SYS_IMPORT_FULL_01" successfully loaded/unloaded
  Starting "SYS"."SYS_IMPORT_FULL_01":
  Processing object type TABLE_EXPORT/TABLE/TABLE
  Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
  . . imported "AWR_STAGE"."WRH$_SQL_PLAN"                 212.1 MB  769266 rows
  . . imported "AWR_STAGE"."WRH$_SQLTEXT"                  114.0 MB   48107 rows
  . . imported "AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_46936"  155.2 MB  820442 rows
  . . imported "AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_45248"  139.3 MB  725923 rows
  . . imported "AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_46552"  135.3 MB  714041 rows
  . . imported "AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_47664"  124.4 MB  657252 rows
  . . imported "AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_45440"  112.9 MB  594929 rows
  . . imported "AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_47280"  110.9 MB  588137 rows
  . . imported "AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_46359"  98.25 MB  519423 rows
  . . imported "AWR_STAGE"."WRH$_ACTIVE_SESSION_HISTORY":"WRH$_ACTIVE_3944144691_45713"  69.07 MB  365955 rows
  .
  .
  .
  . . imported "AWR_STAGE"."WRR$_CAPTURE_STATS"                0 KB       0 rows
  . . imported "AWR_STAGE"."WRR$_FILTERS"                      0 KB       0 rows
  Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
  Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
  Processing object type TABLE_EXPORT/TABLE/COMMENT
  Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
  Job "SYS"."SYS_IMPORT_FULL_01" successfully completed at 09:44:25
  Register the DBID: 3944144691
  Append Data for AWR_STAGE.WRM$_DATABASE_INSTANCE.
  Append Data for AWR_STAGE.WRM$_SNAPSHOT.
  Append Data for AWR_STAGE.WRH$_STAT_NAME.
  Append Data for AWR_STAGE.WRH$_PARAMETER_NAME.
  Append Data for AWR_STAGE.WRH$_EVENT_NAME.
  Append Data for AWR_STAGE.WRH$_LATCH_NAME.
  Append Data for AWR_STAGE.WRH$_FILESTATXS.
  .
  .
  .
  Append Data for AWR_STAGE.WRH$_ACTIVE_SESSION_HISTORY_BL.
  Append Data for AWR_STAGE.WRM$_SNAP_ERROR.
  Finished MOVE_TO_AWR procedure
  ... Dropping AWR_STAGE user
  End of AWR Load
  可以看到,在输出中不包括任何WHERE语句,在Append Data for输出的时候也没有包括INSERT语句。正是10204上的增加的这些操作导致了AWR导入效率明显下降。
  oracle视频教程请关注:http://u.youku.com/user_video/id_UMzAzMjkxMjE2.html


运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-602266-1-1.html 上篇帖子: Oracle中使用数据库的最高权限 下篇帖子: Oracle技术之AWR概述—导出
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表