Use Database Replay Feature to Help With Upgrade From 10.2.0.4 to 11g_748895.1
How to Use Database Replay Feature to Help With The Upgrade From 10.2.0.4 to 11g (文件 ID 748895.1)
In this Document
Applies to:Oracle Database - Enterprise Edition - Version 10.2.0.4 and laterInformation in this document applies to any platform. ***Checked for relevance on 25-Jun-2012*** Goal
The purpose behind creating this article is to give a detailed information about using the Database Replay feature before upgrading from 10.2.0.4 to 11g, supported by a life example.
NOTE:
The database capture functionality was introduced with 10.2.0.4. However, patches are available for some earlier versions. Please refer to: Using Real Application Testing Functionality in Earlier Releases (Doc ID 560977.1) Note also that Database Capture and Replay is part of the Real Application Testing (RAT) option which needs a separate license. SolutionSteps for Database Replay
BEGIN
DBMS_WORKLOAD_CAPTURE.ADD_FILTER ( fname => 'user_scott', fattribute => 'USER', fvalue => 'SCOTT'); END;
CREATE OR REPLACE DIRECTORY db_replay_dir AS '/u04/oraout/test/db-replay-capture';
BEGIN
DBMS_WORKLOAD_CAPTURE.start_capture ( name => 'capture_testing',dir=>'DB_REPLAY_DIR', duration => NULL ); END;
Note: In 10.2.0.4 make sure that the PRE_11G_ENABLE_CAPTURE parameter should be set to true otherwise if you try to use the capture feature you will get the following error;
ORA-15591: cannot start capture because parameter "PRE_11G_ENABLE_CAPTURE" is not enabled. You can use the following if it is set to FALSE. SQL> alter system set pre_11g_enable_capture=true;
BEGIN
DBMS_WORKLOAD_CAPTURE.finish_capture; END;
exec DBMS_WORKLOAD_REPLAY.process_capture('DB_REPLAY_DIR');
BEGIN
DBMS_WORKLOAD_REPLAY.initialize_replay ( replay_name => 'TEST_REPLAY', replay_dir => 'DB_REPLAY_DIR'); END;
exec DBMS_WORKLOAD_REPLAY.prepare_replay(synchronization => TRUE)
$ wrc mode=calibrate replaydir=/u03/oradata/test/db-replay-capture
$ wrc mode=replay replaydir=/u03/oradata/test/db-replay-capture Workload Replay Client: Release 11.1.0.6.0 - Production on Wed Dec 26 00:31:52 2007 Copyright (c) 1982, 2007, Oracle. All rights reserved. Wait for the replay to start (00:31:52)
BEGIN
DBMS_WORKLOAD_REPLAY.start_replay; END; / . . . $ wrc mode=replay replaydir=/u03/oradata/test/db-replay-capture Workload Replay Client: Release 11.1.0.6.0 - Production on Wed Dec 26 00:31:52 2007 Copyright (c) 1982, 2007, Oracle. All rights reserved. Wait for the replay to start (00:31:52) Replay started (00:33:32) Replay finished (00:42:52)
SQL> select * from v$version;
BANNER ---------------------------------------------------------------- Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi PL/SQL Release 10.2.0.4.0 - Production CORE 10.2.0.4.0 Production TNS for Solaris: Version 10.2.0.4.0 - Production NLSRTL Version 10.2.0.4.0 - Production SQL> BEGIN DBMS_WORKLOAD_CAPTURE.ADD_FILTER ( fname => 'user_scott', fattribute => 'USER', fvalue => 'SCOTT'); END; / 2 3 4 5 6 7 PL/SQL procedure successfully completed. SQL> CREATE OR REPLACE DIRECTORY db_replay_dir AS '/emea/bde/64bit/app/oracle/product/10.2.0/db_replay_dir'; 2 Directory created. SQL> BEGIN DBMS_WORKLOAD_CAPTURE.start_capture ( name => 'capture_testing',dir=>'DB_REPLAY_DIR', duration => NULL ); END; / 2 3 4 5 6 BEGIN * ERROR at line 1: ORA-15591: cannot start capture because parameter "PRE_11G_ENABLE_CAPTURE" is not enabled ORA-06512: at "SYS.DBMS_WORKLOAD_CAPTURE", line 799 ORA-06512: at line 2 SQL> SQL> show parameter pre_11g NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ pre_11g_enable_capture boolean FALSE SQL> alter system set pre_11g_enable_capture=true; System altered. SQL> BEGIN DBMS_WORKLOAD_CAPTURE.start_capture ( name => 'capture_testing',dir=>'DB_REPLAY_DIR', duration => NULL ); END; / 2 3 4 5 6 PL/SQL procedure successfully completed. SQL> BEGIN DBMS_WORKLOAD_CAPTURE.finish_capture; END; / 2 3 4 PL/SQL procedure successfully completed. SQL>exit /*-----------------------------------------------------------------*/ /*Then connecting the the 11.1.0.6 database located in the same box*/ /*-----------------------------------------------------------------*/ SQL> select * from v$version; BANNER -------------------------------------------------------------------------------- Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production PL/SQL Release 11.1.0.6.0 - Production CORE 11.1.0.6.0 Production TNS for Solaris: Version 11.1.0.6.0 - Production NLSRTL Version 11.1.0.6.0 - Production SQL> CREATE OR REPLACE DIRECTORY db_replay_dir AS '/emea/bde/64bit/app/oracle/product/10.2.0/db_replay_dir'; 2 Directory created. SQL> exec DBMS_WORKLOAD_REPLAY.process_capture('DB_REPLAY_DIR'); PL/SQL procedure successfully completed. SQL> BEGIN DBMS_WORKLOAD_REPLAY.initialize_replay ( replay_name => 'TEST_REPLAY', replay_dir => 'DB_REPLAY_DIR'); END; / 2 3 4 5 6 PL/SQL procedure successfully completed. SQL> exec DBMS_WORKLOAD_REPLAY.prepare_replay(synchronization => TRUE); PL/SQL procedure successfully completed. SQL> BEGIN DBMS_WORKLOAD_REPLAY.start_replay; END; / 2 3 4 BEGIN * ERROR at line 1: ORA-20223: No replay clients have connected yet! Please issue START_REPLAY() after one or more WRC replay clients have been started! ORA-06512: at "SYS.DBMS_WORKLOAD_REPLAY", line 1469 ORA-06512: at line 2 SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options [rmtdcsol3]/emea/bde/64bit/app/oracle/product/10.2.0/db_replay_dir> wrc replaydir=/emea/bde/64bit/app/oracle/product/10.2.0/db_replay_dir mode=calibrate Workload Replay Client: Release 11.1.0.6.0 - Production on Tue Nov 11 06:58:52 2008 Copyright (c) 1982, 2007, Oracle. All rights reserved. Report for Workload in: /emea/bde/64bit/app/oracle/product/10.2.0/db_replay_dir ----------------------- Recommendation: Consider using at least 1 clients divided among 1 CPU(s). Workload Characteristics: - max concurrency: 1 sessions - total number of sessions: 2 Assumptions: - 1 client process per 50 concurrent sessions - 4 client process per CPU - think time scale = 100 - connect time scale = 100 - synchronization = TRUE [rmtdcsol3]/emea/bde/64bit/app/oracle/product/10.2.0/db_replay_dir> wrc replaydir=/emea/bde/64bit/app/oracle/product/10.2.0/db_replay_dir Workload Replay Client: Release 11.1.0.6.0 - Production on Tue Nov 11 07:00:57 2008 Copyright (c) 1982, 2007, Oracle. All rights reserved. Wait for the replay to start (07:00:57) Replay started (07:04:16) Replay finished (07:09:22) SQL> BEGIN DBMS_WORKLOAD_REPLAY.start_replay; END; / PL/SQL procedure successfully completed. SQL> select name,status from dba_workload_replays; NAME -------------------------------------------------------------------------------- STATUS ---------------------------------------- TEST_REPLAY COMPLETED
ReferencesNOTE:445116.1 - Using Workload Capture and Replay in 11GNOTE:463263.1 - Database Capture And Replay Common Errors And Reasons NOTE:560977.1 - Using Real Application Testing Functionality in Earlier Releases |
![]() |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1332141/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle database 升級(文件)to 10.2.0.4 from 10.2.0.1OracleDatabase
- use database 切換提示You can turn off this feature to get a quicker startupDatabaseUI
- Efficient DevSecOps Workflows with a Little Help from AIdevAI
- The database owner SID recorded in the master database differs from the database owner SID recorded in database 'DB_NAME'DatabaseAST
- FILESTREAM feature can't be enabled if you use cluster shared volumes
- ORA-16649: possible failover to another database prevents this database from beiAIDatabase
- Oracle案例04——ORA-39700: database must be opened with UPGRADE optionOracleDatabase
- 2018-06-13 Use rpsblast to search Cdd databaseASTDatabase
- Converting Oracle Database from Linux to Windows using RMANOracleDatabaseLinuxWindows
- ORACLE-1Z0-060題庫(Upgrade to Oracle Database 12c)OracleDatabase
- Record-and-Replay 可維護性和 Replay 性
- Try to run this command from the system terminal. Make sure that you use the correct version of ‘...
- helm upgrade
- 11.2.0.4 upgrade to 19.3.0.0
- 2.3.3.3 Application UpgradeAPP
- Oracle 19c透過recover standby database from service修復GAP案例OracleDatabase
- 2017 Shenyang onsite replay L - Tree
- MySQL 的 help 命令MySql
- install python help docsPython
- python如何退出helpPython
- upgrade 10.2.0.5 to 11.2.0.4 on linuxLinux
- 重啟docker服務後,容器啟動報錯:Error response from daemon: id already in useDockerError
- 001.03 自建 Python 庫 HelpPython
- 前端 help 助手函式前端函式
- Smart Value Help 總結
- PostgreSQL DBA(91) - PG upgradeSQL
- 2.3.3.3.1 How an Application Upgrade WorksAPP
- 強化學習(十一) Prioritized Replay DQN強化學習Zed
- 錄音軟體:Applian Replay Music for macAPPMac
- 【轉載】Kano Model — Ways to use it and NOT use it
- help.hybris.com和help.sap.com網站的搜尋實現網站
- Feature homophily metric
- Cisco ACI APIC upgrade downgrade pathAPI
- 視訊重播轉換器:Replay Converter MacMac
- nginx useNginx
- 7.92 FEATURE_VALUE
- 7.91 FEATURE_SET
- 7.90 FEATURE_ID
- 7.89 FEATURE_DETAILSAI