alter database recover to logical standby xxx 很長時間,為什麼

tolywang發表於2010-11-07
SQL> alter  database recover to logical standby  mxdell2 ;   



設定的引數如下:  由於不準備進行primary 和logical standby的切換,僅僅是把logical standby當作查詢server而已,所以沒有設定log_archive_dest_3  .   




primary db :  


mxdell.__db_cache_size=452984832
mxdell.__java_pool_size=16777216
mxdell.__large_pool_size=16777216
mxdell.__shared_pool_size=704643072
mxdell.__streams_pool_size=0
*.archive_lag_target=600
*.audit_file_dest='/u01/product/admin/mxdell/adump'
*.background_dump_dest='/u01/product/admin/mxdell/bdump'
*.compatible='10.2.0.3.0'
*.control_files='/u01/product/oradata/mxdell/control01.ctl','/u01/product/oradata/mxdell/control02.ctl','/data1/mxdell/control03.ctl'
*.core_dump_dest='/u01/product/admin/mxdell/cdump'
*.db_block_size=16384
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_files=500
*.db_name='mxdell'
*.db_unique_name='mxdell'
*.db_recovery_file_dest='/u01/product/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=mxdellXDB)'
*.event='1652 trace name errorstack'
*.job_queue_processes=36
*.log_archive_config='DG_CONFIG=(mxdell,standby)'
*.log_archive_dest_1='LOCATION=/data1/mxdell/arch valid_for=(ALL_LOGFILES,ALL_ROLES) db_unique_name=mxdell'
*.log_archive_dest_2='service=standby  LGWR  ASYNC valid_for=(ONLINE_LOGFILES,PRIMARY_ROLE)  db_unique_name=standby'

*.log_archive_dest_state_1=enable
*.log_archive_dest_state_2=enable


*.log_archive_format='%t_%s_%r.arc'
*.log_archive_max_processes=30
*.open_cursors=1000
*.pga_aggregate_target=402653184
*.processes=1000
*.remote_login_passwordfile='EXCLUSIVE'
*.sessions=555
*.sga_max_size=2684354560
*.sga_target=1207959552
*.standby_file_management='AUTO'
*.timed_statistics=FALSE
*.undo_management='AUTO'
*.undo_retention=3600
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/u01/product/admin/mxdell/udump'












standby db:  



mxdell.__db_cache_size=855638016
mxdell.__java_pool_size=16777216
mxdell.__large_pool_size=16777216
mxdell.__shared_pool_size=301989888
mxdell.__streams_pool_size=0
*.audit_file_dest='/u01/product/admin/mxdell/adump'
*.background_dump_dest='/u01/product/admin/mxdell/bdump'
*.compatible='10.2.0.3.0'
*.control_files='/u01/product/oradata/mxdell/control01.ctl','/u01/product/oradata/mxdell/control02.ctl','/data1/mxdell/control03.ctl'
*.core_dump_dest='/u01/product/admin/mxdell/cdump'
*.db_block_size=16384
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_file_name_convert='/data1/mxdell','/data1/mxdell'
*.db_files=500
*.db_name='mxdell'
*.db_unique_name='standby'
*.log_archive_config='DG_CONFIG=(mxdell,standby)'
*.db_recovery_file_dest='/u01/product/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.dispatchers='(PROTOCOL=TCP) (SERVICE=mxdellXDB)'
*.job_queue_processes=10
*.log_archive_dest_1='LOCATION=/data1/mxdell/arch valid_for=(ALL_LOGFILES,ALL_ROLES) db_unique_name=standby'
*.log_archive_dest_2='service=mxdell  LGWR  ASYNC  valid_for=(ONLINE_LOGFILES,PRIMARY_ROLE) db_unique_name=mxdell'
*.LOG_ARCHIVE_DEST_STATE_1=ENABLE
*.LOG_ARCHIVE_DEST_STATE_2=ENABLE
*.FAL_SERVER=mxdell
*.FAL_CLIENT=standby

*.log_archive_format='%t_%s_%r.arc'
*.log_file_name_convert='/data1/mxdell','/data1/mxdell'
*.open_cursors=1000
*.pga_aggregate_target=402653184
*.processes=500
*.remote_login_passwordfile='EXCLUSIVE'
*.sessions=555
*.sga_target=1207959552
*.standby_file_management='AUTO'
*.timed_statistics=FALSE
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/u01/product/admin/mxdell/udump'






建立的物理standby名稱和primary db名稱一樣, 然後執行
SQL> alter database recover managed standby database cancel ;
SQL> alter  database recover to logical standby  mxdell2 ;   
一直沒有動,又不報錯,不知道怎麼回事 ?

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-677668/,如需轉載,請註明出處,否則將追究法律責任。

相關文章