离线运行Oracle Database In-Memory Advisor

概念

离线运行Oracle Database In-Memory Advisor,就是不在生产系统上运行。这样可以避免影响生产系统。但需要从生产系统导出以下的数据:

  1. AWR Dump
  2. AWR补充数据

过程

导出AWR Dump

连接到CDB root运行。

SQL> connect / as sysdba
SQL> @?/rdbms/admin/awrextr.sql
~~~~~~~~~~~~~
AWR EXTRACT
~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~  This script will extract the AWR data for a range of snapshots  ~
~  into a dump file.  The script will prompt users for the         ~
~  following information:                                          ~
~     (1) database id                                              ~
~     (2) snapshot range to extract                                ~
~     (3) name of directory object                                 ~
~     (4) name of dump file                                        ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Databases in this Workload Repository schema
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~DB Id     DB Name      Host
------------ ------------ ------------
* 1677860020 ORCL         instance-20231013-1024-db19c-iaasThe default database id is the local one: '1677860020'.  To use this
database id, press <return> to continue, otherwise enter an alternative.Enter value for dbid: <这里输入回车,使用默认值>Using 1677860020 for Database IDSpecify the number of days of snapshots to choose from
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Entering the number of days (n) will result in the most recent
(n) days of snapshots being listed.  Pressing <return> without
specifying a number lists all completed snapshots.Enter value for num_days: 7Listing the last 7 days of Completed SnapshotsDB Name        Snap Id    Snap Started
------------ --------- ------------------
ORCL              1281 06 Dec 2023 00:001282 06 Dec 2023 01:001283 06 Dec 2023 02:001284 06 Dec 2023 03:001285 06 Dec 2023 04:001286 06 Dec 2023 05:001287 06 Dec 2023 06:001288 06 Dec 2023 07:001289 06 Dec 2023 08:001290 06 Dec 2023 09:001291 06 Dec 2023 10:00DB Name        Snap Id    Snap Started
------------ --------- ------------------
ORCL              1292 06 Dec 2023 11:001293 06 Dec 2023 12:001294 06 Dec 2023 13:001295 06 Dec 2023 14:001296 06 Dec 2023 15:001297 06 Dec 2023 16:001298 06 Dec 2023 17:001299 06 Dec 2023 18:001300 06 Dec 2023 19:001301 06 Dec 2023 20:001302 06 Dec 2023 21:00DB Name        Snap Id    Snap Started
------------ --------- ------------------
ORCL              1303 06 Dec 2023 22:001304 06 Dec 2023 23:001305 07 Dec 2023 00:001306 07 Dec 2023 01:001307 07 Dec 2023 02:001308 07 Dec 2023 03:001309 07 Dec 2023 04:001310 07 Dec 2023 05:001311 07 Dec 2023 06:001312 07 Dec 2023 07:001313 07 Dec 2023 08:00DB Name        Snap Id    Snap Started
------------ --------- ------------------
ORCL              1314 07 Dec 2023 09:001315 07 Dec 2023 10:001316 07 Dec 2023 11:001317 07 Dec 2023 12:001318 07 Dec 2023 13:001319 07 Dec 2023 14:001320 07 Dec 2023 15:001321 07 Dec 2023 16:001322 07 Dec 2023 17:001323 07 Dec 2023 18:001324 07 Dec 2023 19:00DB Name        Snap Id    Snap Started
------------ --------- ------------------
ORCL              1325 07 Dec 2023 20:001326 07 Dec 2023 21:001327 07 Dec 2023 22:001328 07 Dec 2023 23:001329 08 Dec 2023 00:001330 08 Dec 2023 01:001331 08 Dec 2023 02:001332 08 Dec 2023 03:001333 08 Dec 2023 04:001334 08 Dec 2023 05:001335 08 Dec 2023 06:00DB Name        Snap Id    Snap Started
------------ --------- ------------------
ORCL              1336 08 Dec 2023 07:001337 08 Dec 2023 08:001338 08 Dec 2023 09:001339 08 Dec 2023 10:001340 08 Dec 2023 11:001341 08 Dec 2023 12:001342 08 Dec 2023 13:001343 08 Dec 2023 14:001344 08 Dec 2023 15:001345 08 Dec 2023 16:001346 08 Dec 2023 17:00DB Name        Snap Id    Snap Started
------------ --------- ------------------
ORCL              1347 08 Dec 2023 18:001348 08 Dec 2023 19:001349 08 Dec 2023 20:001350 08 Dec 2023 21:001351 08 Dec 2023 22:001352 08 Dec 2023 23:001353 09 Dec 2023 00:001354 09 Dec 2023 01:001355 09 Dec 2023 02:001356 09 Dec 2023 03:001357 09 Dec 2023 04:00DB Name        Snap Id    Snap Started
------------ --------- ------------------
ORCL              1358 09 Dec 2023 05:001359 09 Dec 2023 06:001360 09 Dec 2023 07:001361 09 Dec 2023 12:441362 09 Dec 2023 14:001363 09 Dec 2023 15:001364 09 Dec 2023 16:001365 09 Dec 2023 17:001366 09 Dec 2023 18:001367 09 Dec 2023 19:001368 09 Dec 2023 20:00DB Name        Snap Id    Snap Started
------------ --------- ------------------
ORCL              1369 09 Dec 2023 21:001370 09 Dec 2023 22:001371 09 Dec 2023 23:001372 10 Dec 2023 00:001373 10 Dec 2023 01:001374 10 Dec 2023 02:001375 10 Dec 2023 03:001376 10 Dec 2023 04:001377 10 Dec 2023 05:001378 10 Dec 2023 06:001379 10 Dec 2023 07:00DB Name        Snap Id    Snap Started
------------ --------- ------------------
ORCL              1380 10 Dec 2023 08:001381 10 Dec 2023 09:001382 10 Dec 2023 10:001383 10 Dec 2023 11:001384 10 Dec 2023 12:001385 10 Dec 2023 13:001386 10 Dec 2023 14:001387 10 Dec 2023 15:001388 10 Dec 2023 16:001389 10 Dec 2023 17:001390 10 Dec 2023 18:00DB Name        Snap Id    Snap Started
------------ --------- ------------------
ORCL              1391 10 Dec 2023 19:001392 10 Dec 2023 20:001393 10 Dec 2023 21:001394 10 Dec 2023 22:001395 10 Dec 2023 23:001396 11 Dec 2023 00:001397 11 Dec 2023 01:001398 11 Dec 2023 02:001399 11 Dec 2023 03:001400 11 Dec 2023 04:001401 11 Dec 2023 05:00DB Name        Snap Id    Snap Started
------------ --------- ------------------
ORCL              1402 11 Dec 2023 06:001403 11 Dec 2023 07:001404 11 Dec 2023 08:001405 11 Dec 2023 09:001406 11 Dec 2023 10:001407 11 Dec 2023 11:001408 11 Dec 2023 12:001409 11 Dec 2023 13:001410 11 Dec 2023 14:001411 11 Dec 2023 15:001412 11 Dec 2023 16:00DB Name        Snap Id    Snap Started
------------ --------- ------------------
ORCL              1413 11 Dec 2023 17:001414 11 Dec 2023 18:001415 11 Dec 2023 19:001416 11 Dec 2023 20:001417 11 Dec 2023 21:001418 11 Dec 2023 22:001419 11 Dec 2023 23:001420 12 Dec 2023 00:001421 12 Dec 2023 01:001422 12 Dec 2023 02:001423 12 Dec 2023 03:00Specify the Begin and End Snapshot Ids
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Enter value for begin_snap: 1391
Begin Snapshot Id specified: 1391Enter value for end_snap: 1401
End   Snapshot Id specified: 1401Specify the Directory Name
~~~~~~~~~~~~~~~~~~~~~~~~~~Directory Name                 Directory Path
------------------------------ -------------------------------------------------
DATA_PUMP_DIR                  /u01/app/oracle/admin/ORCL/dpdump/
DBMS_OPTIM_ADMINDIR            /u01/app/oracle/product/19c/dbhome_1/rdbms/admin
DBMS_OPTIM_LOGDIR              /u01/app/oracle/product/19c/dbhome_1/cfgtoollogs
JAVA$JOX$CUJS$DIRECTORY$       /u01/app/oracle/product/19c/dbhome_1/javavm/admin/OPATCH_INST_DIR                /u01/app/oracle/product/19c/dbhome_1/OPatch
OPATCH_LOG_DIR                 /u01/app/oracle/product/19c/dbhome_1/rdbms/log
OPATCH_SCRIPT_DIR              /u01/app/oracle/product/19c/dbhome_1/QOpatch
ORACLE_BASE                    /u01/app/oracle
ORACLE_HOME                    /u01/app/oracle/product/19c/dbhome_1Directory Name                 Directory Path
------------------------------ -------------------------------------------------
ORACLE_OCM_CONFIG_DIR          /u01/app/oracle/product/19c/dbhome_1/ccr/state
ORACLE_OCM_CONFIG_DIR2         /u01/app/oracle/product/19c/dbhome_1/ccr/state
SDO_DIR_ADMIN                  /u01/app/oracle/product/19c/dbhome_1/md/admin
SDO_DIR_WORK
XMLDIR                         /u01/app/oracle/product/19c/dbhome_1/rdbms/xml
XSDDIR                         /u01/app/oracle/product/19c/dbhome_1/rdbms/xml/schemaChoose a Directory Name from the above list (case-sensitive).
<下面输入AWR Dump文件存放的目录,一般选DATA_PUMP_DIR>
Enter value for directory_name: DATA_PUMP_DIR Using the dump directory: DATA_PUMP_DIRSpecify the Name of the Extract Dump File
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The prefix for the default dump file name is awrdat_1391_1401.
To use this name, press <return> to continue, otherwise enter
an alternative.Enter value for file_name: <这里输入回车,使用默认值>Using the dump file prefix: awrdat_1391_1401
|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|  The AWR extract dump file will be located
|  in the following directory/file:
|   /u01/app/oracle/admin/ORCL/dpdump/
|   awrdat_1391_1401.dmp
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|  *** AWR Extract Started ...
|
|  This operation will take a few moments. The
|  progress of the AWR extract operation can be
|  monitored in the following directory/file:
|   /u01/app/oracle/admin/ORCL/dpdump/
|   awrdat_1391_1401.log
|End of AWR Extract

以上一般为用户执行,会生成2个dump文件;然后将这两个文件给到DBA,就可以执行下面的导入和分析了。

导出AWR补充数据

导出AWR Dump后,应马上运行导出AWR补充数据。

也是连接到CDB root运行:

SQL> connect / as sysdba
SQL> @/home/oracle/imadvisor/imadvisor_awr_augment_export.sql********************************************************************************
* This script will create for you an Automatic Workload Repository (AWR)
* augment that will supply additional data required by the Oracle Database
* In-Memory Advisor.  Without this data augment, you cannot use an AWR export
* with the In-Memory Advisor.  (But with it, you can!)
** Note: The Automatic Workload Repository (AWR) augment you are about to create
* can only be used with an AWR export from this local database
* (DBID=1677860020).
** Also note: It is best to capture an AWR augment in the same timeframe
* (preferably after) the corresponding AWR export.
********************************************************************************You may optionally include one the following SQL Tuning Set(s) as part of the
AWR augment.Enter the sqlset_owner and sqlset_name in the prompts below to include a SQL
Tuning Set.Otherwise, press ENTER for both sqlset_owner and sqlset_name if you do not wish
to include any SQL Sets.SQLSET_OWNER                                     SQLSET_NAME
------------------------------------------------ ------------------------------------------------
SYS                                              SYS_AUTO_STS
Enter value for sqlset_owner: <输入回车>
Enter value for sqlset_name: <输入回车>DIRECTORY_NAME                 DIRECTORY_PATH
------------------------------ ---------------------------------------------------------------------
DATA_PUMP_DIR                  /u01/app/oracle/admin/ORCL/dpdump/
DBMS_OPTIM_ADMINDIR            /u01/app/oracle/product/19c/dbhome_1/rdbms/admin
DBMS_OPTIM_LOGDIR              /u01/app/oracle/product/19c/dbhome_1/cfgtoollogs
JAVA$JOX$CUJS$DIRECTORY$       /u01/app/oracle/product/19c/dbhome_1/javavm/admin/
OPATCH_INST_DIR                /u01/app/oracle/product/19c/dbhome_1/OPatch
OPATCH_LOG_DIR                 /u01/app/oracle/product/19c/dbhome_1/rdbms/log
OPATCH_SCRIPT_DIR              /u01/app/oracle/product/19c/dbhome_1/QOpatch
ORACLE_BASE                    /u01/app/oracle
ORACLE_HOME                    /u01/app/oracle/product/19c/dbhome_1
ORACLE_OCM_CONFIG_DIR          /u01/app/oracle/product/19c/dbhome_1/ccr/state
ORACLE_OCM_CONFIG_DIR2         /u01/app/oracle/product/19c/dbhome_1/ccr/state
SDO_DIR_ADMIN                  /u01/app/oracle/product/19c/dbhome_1/md/admin
SDO_DIR_WORK
XMLDIR                         /u01/app/oracle/product/19c/dbhome_1/rdbms/xml
XSDDIR                         /u01/app/oracle/product/19c/dbhome_1/rdbms/xml/schemaPlease enter the Oracle directory object to use for export (default=DATA_PUMP_DIR)?
<输入回车>
Using directory DATA_PUMP_DIR...The default IM Advisor AWR augment dump file name prefix is imadvisor_awr_augment.
Please press <return> to use this name prefix; otherwise, enter an alternative name prefix?
<输入回车>
Using "imadvisor_awr_augment" as the AWR augment dump file name prefix...Setting up the AWR agument staging schema...
No errors.
old 942:   dmp_name := NVL('&&dump_file_name_prefix', :dmp_name_default);
new 942:   dmp_name := NVL('imadvisor_awr_augment', :dmp_name_default);PL/SQL procedure successfully completed.Exporting AWR agument data...
IMADVISOR_AWR_AUGMENT_EXPORT Data Pump status: SUCCESSPL/SQL procedure successfully completed.Dropping the AWR agument staging schema...
Directory path for Data Pump dump and log files:
/u01/app/oracle/admin/ORCL/dpdump/
Data Pump dump file: imadvisor_awr_augment.dmp
Data Pump log file: imadvisor_awr_augment_export.logPL/SQL procedure successfully completed.All done.

数据可以导入到non-CDB,CDB R O O T 或 P D B 。本例导入到 C D B ROOT或PDB。本例导入到CDB ROOTPDB。本例导入到CDBROOT。

导入AWR Dump

SQL> @?/rdbms/admin/awrload
~~~~~~~~~~
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                                   ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Specify the Directory Name
~~~~~~~~~~~~~~~~~~~~~~~~~~Directory Name                 Directory Path
------------------------------ -------------------------------------------------
DATA_PUMP_DIR                  /u01/app/oracle/admin/ORCL2/dpdump/
DBMS_OPTIM_ADMINDIR            /u01/app/oracle/product/19c/dbhome_1/rdbms/admin
DBMS_OPTIM_LOGDIR              /u01/app/oracle/product/19c/dbhome_1/cfgtoollogs
JAVA$JOX$CUJS$DIRECTORY$       /u01/app/oracle/product/19c/dbhome_1/javavm/admin/OPATCH_INST_DIR                /u01/app/oracle/product/19c/dbhome_1/OPatch
OPATCH_LOG_DIR                 /u01/app/oracle/product/19c/dbhome_1/rdbms/log
OPATCH_SCRIPT_DIR              /u01/app/oracle/product/19c/dbhome_1/QOpatch
ORACLE_BASE                    /u01/app/oracle
ORACLE_HOME                    /u01/app/oracle/product/19c/dbhome_1Directory Name                 Directory Path
------------------------------ -------------------------------------------------
ORACLE_OCM_CONFIG_DIR          /u01/app/oracle/product/19c/dbhome_1/ccr/state
ORACLE_OCM_CONFIG_DIR2         /u01/app/oracle/product/19c/dbhome_1/ccr/state
SDO_DIR_ADMIN                  /u01/app/oracle/product/19c/dbhome_1/md/admin
SDO_DIR_WORK
XMLDIR                         /u01/app/oracle/product/19c/dbhome_1/rdbms/xml
XSDDIR                         /u01/app/oracle/product/19c/dbhome_1/rdbms/xml/schemaChoose a Directory Name from the list above (case-sensitive).Enter value for directory_name: DATA_PUMP_DIRUsing the dump directory: DATA_PUMP_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_1391_1401Loading from the file name: awrdat_1391_1401.dmp|
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|  Loading the AWR data from the following
|  directory/file:
|   /u01/app/oracle/admin/ORCL2/dpdump/
|   awrdat_1391_1401.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:
|   /u01/app/oracle/admin/ORCL2/dpdump/
|   awrdat_1391_1401.log
|End of AWR Load

导入AWR 补充数据

SQL> @imadvisor_awr_augment_import.sqlDIRECTORY_NAME                 DIRECTORY_PATH
------------------------------ ---------------------------------------------------------------------
DATA_PUMP_DIR                  /u01/app/oracle/admin/ORCL2/dpdump/
DBMS_OPTIM_ADMINDIR            /u01/app/oracle/product/19c/dbhome_1/rdbms/admin
DBMS_OPTIM_LOGDIR              /u01/app/oracle/product/19c/dbhome_1/cfgtoollogs
JAVA$JOX$CUJS$DIRECTORY$       /u01/app/oracle/product/19c/dbhome_1/javavm/admin/
OPATCH_INST_DIR                /u01/app/oracle/product/19c/dbhome_1/OPatch
OPATCH_LOG_DIR                 /u01/app/oracle/product/19c/dbhome_1/rdbms/log
OPATCH_SCRIPT_DIR              /u01/app/oracle/product/19c/dbhome_1/QOpatch
ORACLE_BASE                    /u01/app/oracle
ORACLE_HOME                    /u01/app/oracle/product/19c/dbhome_1
ORACLE_OCM_CONFIG_DIR          /u01/app/oracle/product/19c/dbhome_1/ccr/state
ORACLE_OCM_CONFIG_DIR2         /u01/app/oracle/product/19c/dbhome_1/ccr/state
SDO_DIR_ADMIN                  /u01/app/oracle/product/19c/dbhome_1/md/admin
SDO_DIR_WORK
XMLDIR                         /u01/app/oracle/product/19c/dbhome_1/rdbms/xml
XSDDIR                         /u01/app/oracle/product/19c/dbhome_1/rdbms/xml/schemaPlease enter the Oracle directory object to use for import (default=DATA_PUMP_DIR)?
DATA_PUMP_DIR
Using directory DATA_PUMP_DIR...The default IM Advisor AWR augment dump file name prefix is imadvisor_awr_augment.
Please press <return> to use this name prefix; otherwise, please enter an alternative name prefix?Using "imadvisor_awr_augment" as the AWR augment dump file name prefix...Gathering information about the AWR agument...
IMADVISOR_AWR_AUGMENT_MASTER Data Pump status: SUCCESSSetting up the AWR agument schema...Importing AWR agument data...
IMADVISOR_AWR_AUGMENT_IMPORT Data Pump status: SUCCESSAll done.

发现一个错别字,提示中的agument应为augument。

运行In-Memory Advisor


SQL> imadvisor_recommendations
SP2-0734: unknown command beginning "imadvisor_..." - rest of line ignored.
SQL> @imadvisor_recommendationsThis script creates and runs an In-Memory Advisor task that analyzes
your workload to determine an optimal In-Memory configuration.This script then generates an HTML recommendation report file in the
current working  directory: imadvisor_<task_name>.htmlThis script also generates a sqlplus DDL script to implement the
recommendations: imadvisor_<task_name>.sqlNOTE: You may specify one of your existing tasks if you wish to optimize for a
different In-Memory size.Using an existing, executed task is faster than a new task since a new task
requires statistics gathering and analysis.But if you wish to analyze a different workload or use a different statistics
capture window or add a SQLSET, you must specify a new task.The following is a list of your existing tasks:TASK_NAME                      DATE_CREATED
------------------------------ -----------------------------
im_advisor_task_20231212034203 2023-DEC-12 03:42:32Default task_name (new task): im_advisor_task_20231212035008
Enter value for task_name:Advisor task name specified: im_advisor_task_20231212035008 (default)New Advisor task will be named: im_advisor_task_20231212035008...By default, the Advisor runs against a live workload on this database.
This database also has imported, augmented AWR workloads.Press ENTER or respond NO to run against a live workload.
Respond YES to run against an augmented AWR workload.Enter value for run_against_augmented_awr: YESThe Advisor can use the following augmented AWR imports:Augmented AWR Import DBID
-------------------------
1677860020Enter value for dbid: 1677860020Analyzing and reporting on an augmented AWR workload with DBID=1677860020...
Enter value for pdb_name: orclpdb1orclpdb1The In-Memory Advisor optimizes the In-Memory configuration for a specific
In-Memory size that you choose.After analysis, the In-Memory Advisor can provide you a list of performance
benefit estimates for a range of In-Memory sizes.  You may then choose the
In-Memory size for which you wish to optimize.If you already know the specific In-Memory size you wish, please enter
the value now.  Format: nnnnnnn[KB|MB|GB|TB]Or press <ENTER> to get performance estimates first.
Enter value for inmemory_size: 10GThe In-Memory Advisor will optimize for this In-Memory size: 10GEnter begin time for report:--    Valid input formats:
--      To specify absolute begin time:
--        [MM/DD[/YY]] HH24:MI[:SS]
--        Examples: 02/23/03 14:30:15
--                  02/23 14:30:15
--                  14:30:15
--                  14:30
--      To specify relative begin time: (start with '-' sign)
--        -[HH24:]MI
--        Examples: -1:15  (SYSDATE - 1 Hr 15 Mins)
--                  -25    (SYSDATE - 25 Mins)Default begin time: 12/10/23 18:00:44
Enter value for begin_time:Report begin time specified:Enter duration in minutes starting from begin time:
(defaults to <latest-snapshot-end-time> - begin_time)Enter value for duration:Report duration specified:Using 2023-DEC-10 18:00:44.000000000 as report begin time
Using 2023-DEC-11 05:00:07.000000000 as report end timeYou may optionally specify a comma separated list of object owner
and name patterns to be considered for In Memory Placement.
Example:GEEK_SUMMARY.%,%.GEEK_%Press ENTER to consider all objects.Enter value for consider_objects_like:Considering all objects for In Memory placement.In-Memory Advisor: Adding statistics...
DECLARE
*
ERROR at line 1:
ORA-20001: No analytics database activity was detected
ORA-06512: at "C##IMADVISOR.DBMS_INMEMORY_ADVISOR_PRVT", line 6961
ORA-06512: at "C##IMADVISOR.DBMS_INMEMORY_ADVISOR_PRVT", line 756
ORA-06512: at "C##IMADVISOR.DBMS_INMEMORY_ADVISOR_PRVT", line 4110
ORA-06512: at "C##IMADVISOR.DBMS_INMEMORY_ADVISOR_PRVT", line 6739
ORA-06512: at "C##IMADVISOR.DBMS_INMEMORY_ADVISOR_PRVT", line 6947
ORA-06512: at "SYS.DBMS_INMEMORY_ADVISOR", line 46
ORA-06512: at line 11Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.20.0.0.0

错误处理

在导入AWR dump时,可能出现错误,原因是目标端的数据库不兼容,并非是源数据库导出数据的问题:

```sql|
begin
*
ERROR at line 1:
ORA-13509: error encountered during updates to a AWR table
ORA-39002: invalid operation
ORA-06512: at "SYS.DBMS_SWRF_INTERNAL", line 5958
ORA-06512: at "SYS.DBMS_SWRF_INTERNAL", line 5996
ORA-06512: at "SYS.DBMS_WORKLOAD_REPOSITORY", line 2539
ORA-06512: at line 4End of AWR Load
## 参考
- [Running Oracle Database In-Memory Advisor Offline](https://blogs.oracle.com/coretec/post/running-oracle-database-in-memory-advisor-of-one-database-on-another)
- [Multitenant : Default Tablespace Clause During PDB Creation in Oracle Database 12c Release 2 (12.2)](https://oracle-base.com/articles/12c/multitenant-default-tablespace-clause-12cr2)
- [Oracle Database In-Memory Advisor](https://xiaoyu.blog.csdn.net/article/details/100048836)

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/218118.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

全能数据分析软件Tableau Desktop 2019 mac功能亮点

Tableau Desktop 2019 mac是一款专业的全能数据分析工具&#xff0c;可以让用户将海量数据导入并记性汇总&#xff0c;并且支持多种数据类型&#xff0c;比如像是编程常用的键值对、哈希MAP、JSON类型数据等&#xff0c;因此用户可以将很多常用数据库文件直接导入Tableau Deskt…

光栅化渲染:优化技巧

我们在前面的章节中介绍的所有技术都是光栅化算法的基础。 不过&#xff0c;我们只是以非常基本的方式实现了这些技术。 GPU 渲染管道和其他基于光栅化的生产渲染器使用相同的概念&#xff0c;但它们使用这些算法的高度优化版本。 展示用于加速算法的所有不同技巧远远超出了介绍…

富时中国a50指数期货:探寻涨跌脉络

富时中国A50指数期货是衡量中国大陆50家最具代表性上市公司的指数。作为衍生品交易市场的重要一环&#xff0c;A50指数期货是投资者关注的焦点之一。其涨跌走势直接反映了中国大陆股市的整体表现和投资者情绪。 A50指数期货简介 富时中国A50指数期货由新加坡交易所&#xff0…

免费且好用的 MySQL 客户端

DBeaver 支持 Mac、Windows、Linux&#xff0c;提供 Eclipse 插件。社区版免费&#xff0c;支持主流的关系型数据库 官网地址&#xff1a;DBeaver Community | Free Universal Database Tool MySQL WorkBench MySQL WorkBench 是官方出品的客户端&#xff0c;支持 Mac、Windo…

AntDB数据库参加ACDU中国行杭州站,分享数据库运维实践与经验

关于ACDU与中国行&#xff1a; ACDU是由墨天轮社区举办的中国数据库联盟的品牌活动之一&#xff0c;在线下汇集数据库领域的行业知名人士&#xff0c;共同探讨数据库前沿技术及其应用&#xff0c;促进行业发展和创新的平台&#xff0c;也为开发者们提供友好交流的机会。 AntD…

SpringCloud微服务(简略笔记二)

Docker 概念 docker和虚拟机的差异 * docker是一个系统进程&#xff1b;虚拟机是在操作系统中的操作系统 * docker体积小&#xff0c;启动速度&#xff0c;性能好&#xff0c;虚拟机体积大&#xff0c;启动速度慢&#xff0c;性能一般 镜像和容器 镜像&#xff08;image&…

使用 Python 实现简单的爬虫框架

爬虫是一种自动获取网页内容的程序&#xff0c;它可以帮助我们从网络上快速收集大量信息。在本文中&#xff0c;我们将学习如何使用 Python 编写一个简单的爬虫框架。 一、请求网页 首先&#xff0c;我们需要请求网页内容。我们可以使用 Python 的 requests 库来发送 HTTP 请…

【STM32F103】ADC 模拟数字转换器

ADC ADC&#xff08;Analog-to-Digital Converter&#xff09;&#xff0c;模拟-数字转换器&#xff0c;也叫模数转换器&#xff0c;可以将连续变化的模拟信号转换为离散的数字信号。 我们可以外接上将采集信号转为模拟信号的模块&#xff0c;如光敏电阻传感器&#xff0c;热…

仓库拣货应用案例

多个订单的光挑选 PTL用于WIP&#xff08;正在工作&#xff09;机架 首先&#xff0c;我们的过程。 制造工厂很大&#xff0c;有大量的制造工具&#xff0c;非常密集&#xff0c;而且大量的高设备可能会阻碍无线电 晶片储存在一个密封的载体中&#xff0c;它们从一台机器运输…

Windows CMD cd命令无法使用,路径无法更改解决方法

故障表现&#xff1a; 1.cmd使用命令cd更改路径后&#xff0c;路径仍然显示为初始路径 解决方法&#xff1a; 1.先更改至指定盘符&#xff0c;再使用cd命令 2.使用cd命令后&#xff0c;再更改至指定盘符

35.@Component, @Controller, @Repository, @Service 有何区别

@Component, @Controller, @Repository, @Service 有何区别 @Component:这将 java 类标记为 bean。它是任何 Spring 管理组件的通用构造型。spring 的组件扫描机制现在可以 将其拾取并将其拉入应用程序环境中。@Controller:这将一个类标记为 Spring Web MVC 控制器。标有它的…

GO EASY 游戏框架 之 GRPC 扩展篇 04

1 Overview 此章节是对第三章的一个补充。同样属于RPC的篇章。是专门为了类似游戏服务这种需要指定RPC服务端具体地址&#xff0c;也就是具体是哪台机器的某应用进程&#xff0c;通信的方式。笔者简单的封装了下保证基本的服务稳定&#xff0c;且具备服务发现的属性即可&#…

[C++进阶]---AVL树模拟实现

目录 1.AVL树的概念2.AVL树模拟实现2.1AVL树节点的定义2.2AVL的插入2.3AVL树的旋转2.3.1左单旋2.3.2右单旋2.3.3右左双旋2.3.3.1旋转情况分析2.3.3.2平衡因子更新分析 2.3.4右左双旋2.3.4.1旋转情况分析2.3.4.2平衡因子更新分析 2.3.5AVL树的验证 3.AVL模拟实现源码4.总结 1.AV…

jetpack compose 学习(2)

jetpack compose 学习(1) 学会了如何创建一个compose项目,并成功run了起来 今天学习run起来的界面配置 找启动界面,当然是先找到界面的配置文件: androidManifest.xml 这个文件,然后通过启动项找到主界面, 第二步 按住ctrl 鼠标指向MainActivity 即可跳转主界面 进入后的界面…

_try_finally原理探究

无论try结构体中是什么代码&#xff0c;都会执行finally里面的代码 局部展开 当try里面没有异常&#xff0c;而是return、continue、break等语句时&#xff0c;就不会走_except_handle3这个函数&#xff0c;而是调用_local_unwind2进行展开 然后调用[ebx esi*4 8] 跟进去就到…

MySQL低版本中:字符串中的数字、英文字符、汉字提取

我们如何提醒一个字段中的汉字和数字呢 高版本指mysql8.0以上 使用sql语句 SELECT REGEXP_REPLACE(column_name, [^\\p{Han}], ) AS chinese_characters FROM table_name;其中 column_name指名称列&#xff0c;table_name是表名 2.低版本使用 需要新建函数 DELIMITER $$DR…

Java调用百度翻译API和调用有道翻译API进行翻译

目录 界面编写 调用百度API 调用有道API 源代码 界面编写 我们首先需要设计出这个翻译程序的GUI界面&#xff0c;我们写一个类继承自JFrame类&#xff0c;用来展示程序的主窗口&#xff0c;设置好窗口的名称和大小&#xff0c;设置在关闭窗口时终止程序&#xff0c;为了界…

高效数组处理的Numpy入门总结

NumPy是Python中一个重要的数学库&#xff0c;它提供了高效的数组操作和数学函数&#xff0c;是数据科学、机器学习、科学计算等领域的重要工具。下面是一个简单的NumPy学习教程&#xff0c;介绍了NumPy的基本用法和常用函数。 安装NumPy 在使用NumPy之前&#xff0c;需要先安…

使用Highcharts创建动态图表

Highcharts是一个功能强大且易于使用的JavaScript图表库&#xff0c;本文记录下创建&#xff0c;使用标题&#xff0c;副标题等功能&#xff1b; 首先&#xff0c;我们需要在HTML页面中引入Highcharts库和相关的样式和脚本文件。请将以下代码添加到页面的头部&#xff1a; HTML…

删除Tencent files

QQ或者TIM卸载后,它还会残留在电脑上.要修改会说需要权限,修改权限又会重新变回去.这时候可以把整个文档放到其它盘,然后就可以删除Tencent files 方法是右键文档 选中属性–位置 然后就可以改掉了