In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
After the http://snowhill.blog.51cto.com/339421/1923591, is built, do the switch over:
1 check the parameter fal_server,fal_client,log_archive_dest_2,log_file_name_convert,data_file_name_convert
Standby_file_management
Source:
Fal_server=standby
Fal_cleint=db
Alter system set db_file_name_convert='/data','+data' scope=spfile;alter system set log_file_name_convert='/data','+data' scope=spfile
Standby:
Fal_server=db
Fal_client=standby
Standby_file_management=auto
2 rac needs to be closed to an instance before switching
3 check whether there is gap
4 switching:
Source:
SQL > alter database commit to switchover to standby with session shutdown
After switching here, the source end will automatically shutdown abort.
-- standby
SQL > select name,open_mode,DATABASE_ROLE,PROTECTION_MODE,switchover_status from v$database NAME OPEN_MODE DATABASE_ROLE PROTECTION_MODE SWITCHOVER_STATUS--DB READ ONLY WITH APPLY PHYSICAL STANDBY MAXIMUM AVAILABILITY TO PRIMARYSQL > alter system set log_archive_dest_2= "service=db lgwr sync affirm valid_for= (all_logfiles All_roles) db_unique_name=db "scope=both SQL > alter system set log_archive_dest_state_2=enable;SQL > alter database commit to switchover to primary with session shutdown
-- Source
SQL > startup mountSQL > alter system set log_archive_dest_state_2=defer SQL > select name, LOG_MODE, OPEN_MODE, database_role, SWITCHOVER_STATUS Db_unique_name from v$databaseNAME LOG_MODE OPEN_MODE DATABASE_ROLE SWITCHOVER_STATUS DB_UNIQUE_NAME -- DB ARCHIVELOG MOUNTED PHYSICAL STANDBY RECOVERY NEEDED dbSQL > alter database recover managed standby database cancel SQL > alter database open;SQL > alter database recover managed standby database using current logfile disconnect;SQL > select name, LOG_MODE, OPEN_MODE, database_role, SWITCHOVER_STATUS, db_unique_name from v$database NAME LOG_MODE OPEN_MODE DATABASE_ROLE SWITCHOVER_STATUS DB_UNIQUE_NAME-- -DB ARCHIVELOG READ ONLY WITH APPLY PHYSICAL STANDBY TO PRIMARY db
-- standby
SQL > alter system set log_archive_dest_2= "service=db lgwr sync affirm valid_for= (all_logfiles,all_roles) db_unique_name=db" scope=both;SQL > alter system set log_archive_dest_state_2=enable scope=both
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.