In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces "how to solve the problem of dg main library creation file backup database not synchronized in Oracle", in the daily operation, I believe that many people have doubts about how to solve the problem of Oracle main library creation file preparation database is not synchronized. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful for everyone to answer the "how to solve the problem of file backup database creation of dg main library in Oracle". Next, please follow the editor to study!
Environment
Standby_file_management parameter of slave library is MANUAL
The application of standby database failed when the main library created the data file.
Main library
SQL > create tablespace test datafile'+ DATA/dgpri/datafile/test01.dbf' size 50m
Standby database to open real-time application
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION
View the log
Archived Log entry 19 added for thread 1 sequence 30 rlc 1015097842 ID 0x3b7defac dest 2:RFS [6]: No standby redo logfiles available for thread 1 RFS [6]: Opened log for thread 1 sequence 31 dbid 998109615 branch 1015097842Thu Aug 01 01:20:03 2019Media Recovery Log / u01/app/oracle/product/11.2.0/dbhome_1/dbs/arch2_30_1015097842.dbfFile # 6 added to control file as' UNNAMED00006' becausethe parameter STANDBY_FILE_MANAGEMENT is set to MANUALThe file should be manually created to continue.Errors with log / u01/app / oracle/product/11.2.0/dbhome_1/dbs/arch2_30_1015097842.dbfMRP0: Background Media Recovery terminated with error 1274Errors in file/ u01/app/oracle/diag/rdbms/dgphy/dgphy/trace/dgphy_pr00_74382.trc:ORA-01274: cannot add datafile'+ DATA/dgpri/datafile/test01.dbf'-file could not be created....Managed Standby Recovery starting Real Time ApplyThu Aug 01 01:22:10 2019Errors in file/ u01/app/oracle/diag/rdbms/dgphy/dgphy/ Trace/dgphy_dbw0_74012.trc:ORA-01186: file 6 failed verification testsORA-01157: cannot identify/lock data file 6-see DBWR trace fileORA-01111: name for data file 6 is unknown-rename to correct fileORA-01110: data file 6:'/ u01/app/oracle/product/11.2.0/dbhome_1/dbs/UNNAMED00006'File 6 not verified due to error ORA-01157MRP0: Background Media Recovery terminated with error 1111Errors in file / u01 Pr00_82248.trc:ORA-01111: name for data file 6 is unknown-rename to correct fileORA-01110: data file 6:'/ u01/app/oracle/product/11.2.0/dbhome_1/dbs/UNNAMED00006'ORA-01157: cannot identify/lock data file 6-see DBWR trace fileORA-01111: name for data file 6 is unknown-rename to correct fileORA-01110: data file 6:'/ u01/app/oracle/product/11.2.0/dbhome_1/dbs/UNNAMED00006'Managed Standby Recovery not using Real Time Apply
At this time, the reserve library will be executed.
SQL > alter database create datafile'/ u01ActionAccording to an oracleproduct 11.2.0anddbhomeowners 1anddbsandUniNAMED006' as'+ DATA/dgphy/datafile/test01.dbf';Database altered.
Re-open the real-time application
SQL > ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;Database altered.
View the log
ALTER SYSTEM SET standby_file_management='MANUAL' SCOPE=BOTH Alter database create datafile'/ u01 Thu Aug as'+ DATA/dgphy/datafile/test01.dbf'Completed: oracleproduct11.2.0 / u01 2019ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSIONAttempt to start background Managed Standby Recovery process Thu Aug 01 01:23:04 2019MRP0 started with pid=24 OS id=82426 MRP0: Background Managed Standby Recovery process started (dgphy) started logmerger processThu Aug 01 01:23:10 2019Managed Standby Recovery starting Real Time ApplyParallel Media Recovery started with 2 slavesWaiting for all non-current ORLs to be archived...All non-current ORLs have been archived.Thu Aug 01 01:23:10 2019Archiver process freed from errors. No longer stoppedMedia Recovery Log / u01/app/oracle/product/11.2.0/dbhome_1/dbs/arch2_30_1015097842.dbfCompleted: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSIONMedia Recovery Log / u01/app/oracle/product/11.2.0/dbhome_1/dbs/arch2_31_1015097842.dbfMedia Recovery Waiting for thread 1 sequence 32 (in transit)
At this time, the real-time application has been completed successfully.
View the process
SQL >! Ps-ef | grep mrporacle 74365 1 0 00:43? 00:00:00 ora_mrp0_dgphyoracle 81797 80300 0 01:19 pts/14 00:00:00 / bin/bash-c ps-ef | grep mrporacle 81799 81797 0 01:19 pts/14 00:00:00 grep mrp
View data files
SQL > select name from v$datafile NAME----+DATA/dgphy/datafile/system.277.1015099429+DATA/dgphy/datafile/sysaux.278.1015099475+DATA/dgphy/datafile/undotbs1.280.1015099527+DATA/dgphy/datafile/users.281 .1015099533 + DATA/dgphy/datafile/example.279.1015099511+DATA/dgphy/datafile/test01.dbf6 rows selected.
Found that the problem had been solved, and finally
Alter system set standby_file_management='AUTO'; at this point, on "how to solve the Oracle dg main library creation file preparation library is not synchronized" study is over, I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.