In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Oracle dg is my own test environment, because the ip is occupied, so I need to change the ip, after changing the ip encountered the following problems, now record.
After changing the ip, I still do the normal master / slave switchover. Due to my carelessness, I did not query the master / slave switchover_status before the switch. I switched directly and found the following error:
Switchover on the host
Randomly queried the following switchover status of master and slave and found:
Lord:
Standby:
In the middle, I thought that there was a problem with the master database, so I restarted the master database. Later, it was found that the listening status of the master and slave libraries was not running:
It is found that the host address is the address before the change, then change the host address, restart listening, reconfigure the tns file, restart the main database and query again:
Display the not allow ed status, view the official website documents and display:
NOT ALLOWED-Either this is a standby database and the primary database has not been switched first, or this is a primary database and there are no standby databases.
SESSIONS ACTIVE-Indicates that there are active SQL sessions attached to the primary or standby database that need to be disconnected before the switchover operation is permitted.
This may be because when I restart the main library, some of the logs in the database backup database are not applied. Execute recover managed in the repository
Query again in the main database:
It has become to standby, and then you can switch between the master and the slave normally.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.