Would like to get the SCN of the source database when the post is stopped, either by stop post or flush o.sid.
Can be used when resyncing or recovering a target database to a specific SCN.
Normally stopping post does not give the scn where post was stopped. When debug is set on post the scn for the last commit is displayed in the opo log.
setting debug on the post
sp_ctrl> set param SP_OPO_DEBUG_FLAG 0x0f0021ff
turning off debug
sp_ctrl> reset param SP_OPO_DEBUG_FLAG
when set the debug, opo log will show the scn for the last commit. In this case search the opo log for the queue in question from the botton and the first instance of ODR_COMMIT will show the scn in this case the scn is 463156979. If multiple queues are present then each queue will have a different scn for the last commit.
opo 2012-09-17 22:24:13.737637 1656 3 s:2 ValidateOdrColumnData...
opo 2012-09-17 22:24:13.737727 1656 3 s:2 cur_tot=344
opo 2012-09-17 22:24:13.737827 1656 3 s:2 host-sid QUE1-stock
opo 2012-09-17 22:24:13.737917 1656 3 s:2 odr_magic 0x4f445235
opo 2012-09-17 22:24:13.738004 1656 3 s:2 odr_op ODR_COMMIT (6)
opo 2012-09-17 22:24:13.738093 1656 3 s:2 odr_trans 9(4).385259-2(2385)
opo 2012-09-17 22:24:13.738207 1656 3 s:2 odr_time 09/17/12 22:24:09 (794269449)
opo 2012-09-17 22:24:13.738293 1656 3 s:2 odr_sid stock
opo 2012-09-17 22:24:13.738376 1656 3 s:2 odr_seq#/offset 13498/11332180
opo 2012-09-17 22:24:13.738460 1656 3 s:2 odr_scn 463156979
opo 2012-09-17 22:24:13.738543 1656 3 s:2 odr_thread 0
opo 2012-09-17 22:24:13.738623 1656 3 s:2 odr_flags 0x40000
opo 2012-09-17 22:24:13.738736 1656 3 s:2 odr_marker 0
opo 2012-09-17 22:24:13.738815 1656 3 s:2 odr_actid 68
opo 2012-09-17 22:24:13.738896 1656 3 s:2 odr_obj 0
opo 2012-09-17 22:24:13.738977 1656 3 s:2 odr_oname
opo 2012-09-17 22:24:13.739058 1656 3 s:2 odr_nrow 0
opo 2012-09-17 22:24:13.739140 1656 3 s:2 odr_datasize 0
opo 2012-09-17 22:24:13.739221 1656 3 s:2 odr_forward 4
opo 2012-09-17 22:24:13.739307 1656 3 s:2 PreliminaryMsgChecking(2,100518df8,4032)
opo 2012-09-17 22:24:13.739400 1656 3 s:2 CreateSQL: conn 1004bf5f0 session 2 lptr 1004b1da0
opo 2012-09-17 22:24:13.739487 1656 3 s:2 SetCurCursor() - cur_cursor=0x1005181c0