Real Application Test(RAT)
利用RAT,可以將Primary上的工作負載,在Standby上進行“回放”。這在做變更測試時非常有用,因為免去了主庫上的變更。
1)分別啟動主備上的dbconsole,如果沒有配置,則用如下方法配置dbconsole。
2)在Standby上,將物理備用轉為快照備用(mount模式下取消DG,轉為快照備用,然後就可以open開啟資料庫了)
參考:http://blog.itpub.net/22621861/viewspace-1380091/
3)在Primary,登入dbcontrol,進入Software and Support->Real Application Testing->Database Replay->Capture Workload……
4)停止捕獲
5)將捕獲目錄傳到Standby伺服器上
6)在Standby上,預處理(Preprocess)
7)在Standby建立還原點,這是為了能在Standby上多次replay工作負載
8)開始Replay,其中會要求建立客戶端連線到資料庫。使用Oracle提供的wrc工具作為客戶端。
9)完成後可以做測試,如果需要倒回還原點,
10)結束測試後,刪除還原點
11)將快照備用轉為物理備用
1)分別啟動主備上的dbconsole,如果沒有配置,則用如下方法配置dbconsole。
點選(此處)摺疊或開啟
- emca -config dbcontrol db -repos recreate
參考:http://blog.itpub.net/22621861/viewspace-1380091/
點選(此處)摺疊或開啟
- alter database recover managed standby database cancel;
-
alter database convert to snapshot standby;
4)停止捕獲
5)將捕獲目錄傳到Standby伺服器上
6)在Standby上,預處理(Preprocess)
7)在Standby建立還原點,這是為了能在Standby上多次replay工作負載
點選(此處)摺疊或開啟
- create restore point beforereplay guarantee flashback database;
- shutdown immediate
- startup
點選(此處)摺疊或開啟
-
wrc mode=calibrate REPLAYDIR=/oradata/rat
- wrc REPLAYDIR=/oradata/rat userid=hk password=hk
點選(此處)摺疊或開啟
-
shutdown immediate
-
startup mount
-
flashback database to restore point beforereplay;
- alter database open resetlogs;
點選(此處)摺疊或開啟
- drop restore point beforereplay;
點選(此處)摺疊或開啟
- shutdown immediate
- startup mount
- alter database convert to physical standby;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22621861/viewspace-1384212/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RAT(Oracle Real Application Testing)時ORA 600報錯處理OracleAPP
- 【RAT】Oracle Real Application Testing(真用應用測試)介紹OracleAPP
- Split Brain in Oracle Clusterware and Real Application ClusterAIOracleAPP
- Feed The Rat Privacy Policy
- RAT ORA-15507: cannot start workload replay on instance 1
- test
- Joe Harris is a real problem with this team
- test_NO
- Unit test
- 【Android Test】糟心的“Empty test suite ”異常AndroidUI
- Metaphor-A real life Stagefright exploit
- AB test 中的AA test有什麼作用?
- test easyui with nodejsUINodeJS
- Test Oracle triggerOracle
- test123
- test日記
- test2024.3.21
- Shell test 命令
- test6
- test4
- test2
- Test12
- WPF test GPUGPU
- 1-test
- test3
- test004
- test1
- Numerical test reports
- gstreamer-test
- 小小test整理
- Lecture 05 Real-time Environment MappingAPP
- Lecture 12 Real-time Ray Tracing
- CC P5 Be the real owner of yourself
- web_applicationWebAPP
- 2.3.3.4 Application PatchAPP
- 2.3.3.3 Application UpgradeAPP
- 2.3.3.2 Application InstallationAPP
- 2.3.3 Application MaintenanceAPPAINaN
- 2.3.1.4 Application SeedAPP