Oracle 11g Database Replay 實驗
vi dbply.sql
connect client_player/oracle_123
declare n number;
begin
for i in 1..100000 loop
select count(1) into n from t1 where object_id=1;
end loop;
end;
/
(4)使用sys使用者終止捕獲並處理捕獲結果
exec dbms_workload_capture.finish_capture;
exec dbms_workload_replay.process_capture('DBPLY_DIR');
另外開啟一個視窗,進入DBPLY_DIR會看到捕獲到的負載被解析成各種檔案
cd /home/oracle/dbply_dir
total 116
drwxr-xr-x 12 oracle dba 4096 Jul 25 07:36 inst1
-rw-r--r-- 1 oracle dba 3648 Jul 25 07:42 wcr_calibrate.xml
-rw-r----- 1 oracle dba 12288 Jul 25 07:42 wcr_conn_data.extb
-rw-r--r-- 1 oracle dba 36222 Jul 25 07:42 wcr_cr.html
-rw-r--r-- 1 oracle dba 17366 Jul 25 07:42 wcr_cr.text
-rw-r--r-- 1 oracle dba 173 Jul 25 07:42 wcr_fcapture.wmd
-rw-r--r-- 1 oracle dba 532 Jul 25 07:42 wcr_login.pp
-rw-r--r-- 1 oracle dba 35 Jul 25 07:42 wcr_process.wmd
-rw-r--r-- 1 oracle dba 97 Jul 25 07:36 wcr_scapture.wmd
-rw-r----- 1 oracle dba 12288 Jul 25 07:42 wcr_scn_order.extb
-rw-r----- 1 oracle dba 12288 Jul 25 07:42 wcr_seq_data.extb
Replay finished (07:52:24)
(6) 檢索重放報告,需要指定ID號
ID CAPTURE_ID DIRECTORY START_TIM END_TIME
---------- ---------- ------------------------------ --------- ---------
13 89 DBPLY_DIR 25-JUL-15 25-JUL-15
12 81 DB_REPLAY 24-JUL-15 24-JUL-15
set long 100000
select dbms_workload_replay.report(13,'TEXT') from dual;
Replay Statistics
---------------------------------------------------------------
| Statistic | Replay | Capture |
---------------------------------------------------------------
| DB Time | 195.004 seconds | 199.362 seconds |
---------------------------------------------------------------
| Average Active Sessions | .66 | .67 |
Replay finished (08:07:32)
ID CAPTURE_ID DIRECTORY START_TIM END_TIME
---------- ---------- ------------------------------ --------- ---------
15 89 DBPLY_DIR 25-JUL-15 25-JUL-15
13 89 DBPLY_DIR 25-JUL-15 25-JUL-15
12 81 DB_REPLAY 24-JUL-15 24-JUL-15
set long 100000
Replay Statistics
---------------------------------------------------------------
| Statistic | Replay | Capture |
---------------------------------------------------------------
| DB Time | 1.362 seconds | 199.362 seconds |
---------------------------------------------------------------
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29047826/viewspace-1751582/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle Database ReplayOracleDatabase
- oracle rat database replayOracleDatabase
- 11g Database Replay使用詳解Database
- Oracle 資料庫重放(Database Replay)功能演示Oracle資料庫Database
- Oracle database 11g rac損壞ocr和votedisk恢復實驗OracleDatabase
- database replay基礎學習Database
- Oracle 11G Duplicate DatabaseOracleDatabase
- oracle實驗記錄 手工 duplicate database(1)OracleDatabase
- oracle實驗記錄Rman duplicate database(1)OracleDatabase
- oracle實驗記錄Rman duplicate database 2OracleDatabase
- Oracle Database 11g Launch WebcastOracleDatabaseWebAST
- 資料庫負荷重放(Database replay)資料庫Database
- oracle實驗記錄 (oracle 10G rman transport database)OracleDatabase
- Oracle實驗環境搭建(windows + oracle 11g)OracleWindows
- Oracle DataGuard 11g 雙機實驗Oracle
- Oracle 11g Active Dataguard Switchover實驗Oracle
- Oracle 10g FLASHBACK DATABASE 實驗記錄Oracle 10gDatabase
- oracle實驗記錄 (手動 duplicate database(3))OracleDatabase
- Oracle 11g Rman Active database duplicateOracleDatabase
- Oracle Database 11g索引技術OracleDatabase索引
- Cursor Sharing in Oracle Database 11gOracleDatabase
- [Oracle] oracle 11g database install(linux)OracleDatabaseLinux
- oracle 11g Oracle Database Vault 的配置方法OracleDatabase
- ORACLE實驗(move表空間和database link)OracleDatabase
- oracle實驗記錄(手動dupliacate database(2))OracleDatabase
- Oracle 11g Database靜默安裝OracleDatabase
- 執行database replay進行升級測試Database
- Oracle 11g Data Guard 使用 duplicate from active database 建立 standby databaseOracleDatabase
- Oracle 11g Data Guard 使用duplicate from active database 建立 standby databaseOracleDatabase
- Oracle replayc測試Oracle
- Partitioning Enhancements in Oracle Database 11g Release 1OracleDatabase
- Automatic SQL Tuning in Oracle Database 11gSQLOracleDatabase
- Oracle Database 11g閃回技術flashbackOracleDatabase
- Oracle Database 11g Release 2 RAC On LinuxOracleDatabaseLinux
- oracle 11g ASM 磁碟組線上擴容實驗:OracleASM
- Oracle 11g解除安裝grid和databaseOracleDatabase
- Oracle 11g Data Guard 使用duplicate from active databaseOracleDatabase
- Oracle Database 11G 效能優化工具概覽OracleDatabase優化