ORA-16649: possible failover to another database prevents this database from bei
ORA-16649: possible failover to another database prevents this database from being opened
SYS@oradg11g > startup force ORACLE instance started. Total System Global Area 208769024 bytes Fixed Size 2226936 bytes Variable Size 167773448 bytes Database Buffers 33554432 bytes Redo Buffers 5214208 bytes Database mounted. ORA-16649: possible failover to another database prevents this database from being opened SYS@oradg11g > col VALUE format a100 SYS@oradg11g > select database_role from v$database; DATABASE_ROLE ---------------- PRIMARY SYS@oradg11g > alter database open; alter database open * ERROR at line 1: ORA-16649: possible failover to another database prevents this database from being opened
解決:
[root@rhel6lhr ~]# oerr ora 16649 16649, 0000, "possible failover to another database prevents this database from being opened" // *Cause: An attempt to open the primary database was made either after // a failover occurred, or when it was likely to have occurred as // the result of the primary being isolated from the fast-start // failover target standby database and from the fast-start failover // observer. // *Action: Check if a failover did occur. If fast-start failover is enabled, // and a failover did not occur, ensure that connectivity exists // between the primary database and either the observer or the // target standby database. Then, try opening the database again.
原因:原備庫執行了failover操作了。
解決方法一: 在dgmgrl中執行reinstate將原主庫置為新備庫:
REINSTATE DATABASE oradg11g;
解決方法二:修改dg_broker_start為false,這樣重啟資料庫即可,此時原主庫依然是主庫的角色:
alter system set dg_broker_start=false;
示例:
SYS@oradg11g > show parameter broke NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ dg_broker_config_file1 string /u01/app/oracle/product/11.2.0 /dbhome_1/dbs/dr1oradg11g.dat dg_broker_config_file2 string /u01/app/oracle/product/11.2.0 /dbhome_1/dbs/dr2oradg11g.dat dg_broker_start boolean TRUE SYS@oradg11g > alter system set dg_broker_start=false; System altered. SYS@oradg11g > set line 1000 SYS@oradg11g > col name format a25 SYS@oradg11g > col VALUE format a100 SYS@oradg11g > SELECT a.NAME, 2 a.VALUE 3 FROM v$parameter a 4 WHERE a.name in ('dg_broker_start','db_name','db_unique_name','log_archive_config','log_archive_dest_1','log_archive_dest_2','log_archive_dest_state_1','log_archive_dest_state_2','log_archive_max_processes','remote_login_passwordfile','db_file_name_convert','log_file_name_convert','standby_file_management','fal_server','fal_client'); NAME VALUE ------------------------- ---------------------------------------------------------------------------------------------------- db_file_name_convert oradgphy, oradg11g log_file_name_convert oradgphy, oradg11g log_archive_dest_1 LOCATION=USE_DB_RECOVERY_FILE_DEST db_unique_name=oradg11g valid_for=(ALL_LOGFILES,ALL_ROLES) log_archive_dest_2 log_archive_dest_state_1 ENABLE log_archive_dest_state_2 ENABLE fal_client tns_oradg11g fal_server tns_oradgphy log_archive_config dg_config=(oradg11g,oradgphy) log_archive_max_processes 4 standby_file_management AUTO remote_login_passwordfile EXCLUSIVE db_name oradg11g db_unique_name oradg11g dg_broker_start FALSE 15 rows selected. SYS@oradg11g > SYS@oradg11g > SYS@oradg11g > startup force ORACLE instance started. Total System Global Area 208769024 bytes Fixed Size 2226936 bytes Variable Size 167773448 bytes Database Buffers 33554432 bytes Redo Buffers 5214208 bytes Database mounted. Database opened. SYS@oradg11g > select database_role from v$database; DATABASE_ROLE ---------------- PRIMARY SYS@oradg11g >
About Me
........................................................................................................................ ● 本文作者:小麥苗,部分內容整理自網路,若有侵權請聯絡小麥苗刪除 ● 本文在itpub、部落格園、CSDN和個人微 信公眾號( xiaomaimiaolhr )上有同步更新 ● 本文itpub地址: http://blog.itpub.net/26736162 ● 本文部落格園地址: http://www.cnblogs.com/lhrbest ● 本文CSDN地址: https://blog.csdn.net/lihuarongaini ● 本文pdf版、個人簡介及小麥苗雲盤地址: http://blog.itpub.net/26736162/viewspace-1624453/ ● 資料庫筆試面試題庫及解答: http://blog.itpub.net/26736162/viewspace-2134706/ ● DBA寶典今日頭條號地址: ........................................................................................................................ ● QQ群號: 230161599 (滿) 、618766405 ● 微 信群:可加我微 信,我拉大家進群,非誠勿擾 ● 聯絡我請加QQ好友 ( 646634621 ) ,註明新增緣由 ● 於 2019-07-01 06:00 ~ 2019-07-31 24:00 在西安完成 ● 最新修改時間:2019-07-01 06:00 ~ 2019-07-31 24:00 ● 文章內容來源於小麥苗的學習筆記,部分整理自網路,若有侵權或不當之處還請諒解 ● 版權所有,歡迎分享本文,轉載請保留出處 ........................................................................................................................ ● 小麥苗的微店 : ● 小麥苗出版的資料庫類叢書 : http://blog.itpub.net/26736162/viewspace-2142121/ ● 小麥苗OCP、OCM、高可用網路班 : http://blog.itpub.net/26736162/viewspace-2148098/ ● 小麥苗騰訊課堂主頁 : https://lhr.ke.qq.com/ ........................................................................................................................ 使用 微 信客戶端 掃描下面的二維碼來關注小麥苗的微 信公眾號( xiaomaimiaolhr )及QQ群(DBA寶典)、新增小麥苗微 信, 學習最實用的資料庫技術。
........................................................................................................................ |
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2651937/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- How to move ASM database files from one diskgroup to anotherASMDatabase
- How to Move or Copy a Tablespace to Another Database (61)Database
- ARCH: Possible network disconnect with primary databaseDatabase
- Performing a Failover to a Physical Standby DatabaseORMAIDatabase
- The database owner SID recorded in the master database differs from the database owner SID recorded in database 'DB_NAME'DatabaseAST
- Duplicate Database from ASM to Non- ASM Database Using RMANDatabaseASM
- [轉]How to release space from databaseDatabase
- Performing a Switchover to a Physical Standby Database and failoverORMDatabaseAI
- Manually Backup - Restore or Clone a Database to Another Node [ID 562556.1]RESTDatabase
- 11g rman新特性 duplicate target database for standby from active databaseDatabase
- Oracle 11g Data Guard 使用 duplicate from active database 建立 standby databaseOracleDatabase
- Oracle 11g Data Guard 使用duplicate from active database 建立 standby databaseOracleDatabase
- Connections could not be acquired from the underlying databaseUIDatabase
- Unload data to a flat file from Oracle databaseOracleDatabase
- How to restore and recover a database from an RMAN backup_881395.1RESTDatabase
- Upgrade Oracle Database from 10.2.0.1 to 11.2.0.4OracleDatabase
- Oracle11g RMAN Duplicate from Active DatabaseOracleDatabase
- Oracle database 升級(文件)to 10.2.0.4 from 10.2.0.1OracleDatabase
- Migrate database from single instance to Oracle RACDatabaseOracle
- RMAN duplicate from active database 複製資料庫Database資料庫
- How to release space from database( in other words: resize datafile ) (zt)Database
- How to release space from database( in other words: resize datafile ) 【zt】Database
- HowTo Restore RMAN Disk backups of RAC Database to Single Instance On Another NoRESTDatabase
- Oracle 11g Data Guard 使用duplicate from active databaseOracleDatabase
- 搭建11g data guard(duplicate from active database方式)Database
- RMAN Duplicate Database From RAC ASM To RAC ASM [ID 461479.1]DatabaseASM
- Duplicate database from non ASM to ASM to a different host [ID 382669.1]DatabaseASM
- standby database to primary database.Database
- Converting Oracle Database from Linux to Windows using RMANOracleDatabaseLinuxWindows
- Converting Oracle Database from Windows to Linux using RMANOracleDatabaseWindowsLinux
- Creating a Physical Standby using RMAN DUPLICATE FROM ACTIVE DATABASEDatabase
- Upgrading from Oracle Database 10g to 11gOracleDatabase
- 使用oracle 11g rman新特性 duplicate target database for standby from active database 建立物理dataguard並開啟RealOracleDatabase
- Oracle Database Cloud - Database as a Service Quick StartOracleDatabaseCloudUI
- Create RAC Standby Database for RAC Primary DatabaseDatabase
- Types of Oracle Database Users : Database Users (6)OracleDatabase
- DUPLICATE (Backup based) DATABASE from non ASM to ASM to different host_382669.1DatabaseASM
- Guide to Database Migration from Microsoft SQL Server using MySQL WorkbenchGUIIDEDatabaseROSServerMySql