Oracle数据库数据恢复、性能优化

找回密码
注册
搜索
热搜: 活动 交友 discuz
发新帖

5

积分

0

好友

6

主题
1#
发表于 2013-9-9 16:33:27 | 查看: 2529| 回复: 1
本帖最后由 s_chrison 于 2013-9-9 16:34 编辑

数据库版本 12.1.0.1.0
操作系统版本  CentOS 6.3

awr数据来源正常,导入awr数据报错,步骤和错误信息:
  1. SYS@mals01 SQL> conn /as sysdba
  2. SYS@mals01 SQL> alter session set container=pdb;

  3. Session altered.

  4. SYS@mals01 SQL> @?/rdbms/admin/awrload
  5. ~~~~~~~~~~
  6. AWR LOAD
  7. ~~~~~~~~~~
  8. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9. ~  This script will load the AWR data from a dump file. The   ~
  10. ~  script will prompt users for the following information:    ~
  11. ~     (1) name of directory object                            ~
  12. ~     (2) name of dump file                                   ~
  13. ~     (3) staging schema name to load AWR data into           ~
  14. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  15. Specify the Directory Name
  16. ~~~~~~~~~~~~~~~~~~~~~~~~~~

  17. Directory Name                 Directory Path
  18. ------------------------------ -------------------------------------------------
  19. AWR_DUMP_DIR                   /home/oracle/awr
  20. OPATCH_LOG_DIR                 /oracle/app/oracle/product/12.1.0/QOpatch
  21. OPATCH_SCRIPT_DIR              /oracle/app/oracle/product/12.1.0/QOpatch
  22. ORACLE_BASE                    /
  23. ORACLE_HOME                    /
  24. ORACLE_OCM_CONFIG_DIR          /oracle/app/oracle/product/12.1.0/ccr/hosts/oraS1
  25.                                2c01/state

  26. ORACLE_OCM_CONFIG_DIR2         /oracle/app/oracle/product/12.1.0/ccr/state
  27. XSDDIR                         /ade/b/3593327372/oracle/rdbms/xml/schema

  28. Choose a Directory Name from the list above (case-sensitive).

  29. Enter value for directory_name: AWR_DUMP_DIR

  30. Using the dump directory: AWR_DUMP_DIR

  31. Specify the Name of the Dump File to Load
  32. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  33. Please specify the prefix of the dump file (.dmp) to load:

  34. Enter value for file_name: awrdat_50_56

  35. Loading from the file name: awrdat_50_56.dmp

  36. Staging Schema to Load AWR Snapshot Data
  37. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  38. The next step is to create the staging schema
  39. where the AWR snapshot data will be loaded.
  40. After loading the data into the staging schema,
  41. the data will be transferred into the AWR tables
  42. in the SYS schema.


  43. The default staging schema name is AWR_STAGE.
  44. To use this name, press <return> to continue, otherwise enter
  45. an alternative.

  46. Enter value for schema_name:

  47. Using the staging schema name: AWR_STAGE

  48. Choose the Default tablespace for the AWR_STAGE user
  49. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  50. Choose the AWR_STAGE users's default tablespace.  This is the
  51. tablespace in which the AWR data will be staged.

  52. TABLESPACE_NAME                CONTENTS  DEFAULT TABLESPACE
  53. ------------------------------ --------- ------------------
  54. SYSAUX                         PERMANENT *
  55. USERS                          PERMANENT

  56. Pressing <return> will result in the recommended default
  57. tablespace (identified by *) being used.

  58. Enter value for default_tablespace: users

  59. Using tablespace USERS as the default tablespace for the AWR_STAGE


  60. Choose the Temporary tablespace for the AWR_STAGE user
  61. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  62. Choose the AWR_STAGE user's temporary tablespace.

  63. TABLESPACE_NAME                CONTENTS  DEFAULT TEMP TABLESPACE
  64. ------------------------------ --------- -----------------------
  65. TEMP                           TEMPORARY *

  66. Pressing <return> will result in the database's default temporary
  67. tablespace (identified by *) being used.

  68. Enter value for temporary_tablespace:

  69. Using tablespace TEMP as the temporary tablespace for AWR_STAGE


  70. ... Creating AWR_STAGE user

  71. |
  72. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  73. |  Loading the AWR data from the following
  74. |  directory/file:
  75. |   /home/oracle/awr
  76. |   awrdat_50_56.dmp
  77. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  78. |
  79. |  *** AWR Load Started ...
  80. |
  81. |  This operation will take a few moments. The
  82. |  progress of the AWR load operation can be
  83. |  monitored in the following directory/file:
  84. |   /home/oracle/awr
  85. |   awrdat_50_56.log
  86. |
  87. Register 1: dbid 1228956769 src_name 1228956769 src_dbid 1228956769
  88. begin
  89. *
  90. ERROR at line 1:
  91. ORA-20105: unable to move AWR data to SYS
  92. ORA-06512: at "SYS.DBMS_SWRF_INTERNAL", line 4552
  93. ORA-65040: operation not allowed from within a pluggable database
  94. ORA-06512: at line 3


  95. ... Dropping AWR_STAGE user

  96. End of AWR Load
复制代码
是哪里出了问题?
2#
发表于 2013-9-9 17:39:59
使用CDB,用户名大写,导入成功。

结贴
已有 1 人评分威望 理由
Maclean Liu(刘相兵 + 5 结贴有奖

总评分: 威望 + 5   查看全部评分

回复 只看该作者 道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|Archiver|Oracle数据库数据恢复、性能优化

GMT+8, 2025-1-4 07:34 , Processed in 0.046550 second(s), 24 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

回顶部
TEL/電話+86 13764045638
Email service@parnassusdata.com
QQ 47079569