trap State of RMAN backup log file.
Database: 10.2.0.2 enterprize editionOperating system: SUN solaris 5.10
We will perform backups RMAN, level 0 weekend and incremental backups of level 2 and level 1 week. We will continually monitor the log through a HPOV tool file. This tool will send errors in the log file to the HPSMH ticket management tool.
Now my concern is that we get several alerts every time that a channel failure and the canal failed is running with the other channel. Now, we want to check the overall backup status, if it is successful or not by checking the newspaper at a time.
Please give me any suggestion to overcome this obstacle. We execute the RMAN backup with shell scripts and output will be appended to the log file.
TIA
The RMAN return code is returned by the RMAN executable: http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmtroub.htm#i1006541.
Tags: Database
Similar Questions
-
Log of RMAN backup of files looking for bad archived newspapers
I have an RMAN backup, which is a database called EBIZ01PD. The backup is a failure because he's trying to find the archived logs that belong to a different db named EBIZRED that is located on a different server. I'm new with RMAN and any help would be great.
[run {}
allocate channels ch1 type 'sbt_tape '.
PARMS = "BLKSIZE = 262144, ENV = (CV_mmsApiVsn = 2, CV_channelPar = ch1, ThreadCommandLine = BACKUP jm - 45 - a 2:233 - cl 43 - ins 40 - 22-j 17828 - jt 17828:4:1 - ball 1 - bap 0 - rap 0 - SPC 0 - VMR 0 - ms 1 - newspapers - cn nvciEBIZDB - Instance001 - vm nvciebizdb.nvci.org vm)" "
TRACE 0.
setLimit channel ch1 maxopenfiles 8;
SQL 'alter system archive log current;
backup
filesperset = 32
diskratio = 0 (archivelog all delete input);
}
"exit";
]
RMAN Log:]
Recovery Manager: Release 10.2.0.4.0 - Production Thu Jan 22 04:00:49 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
RMAN >
connected to the recovery catalog database
RMAN >
connected to target database: EBIZ01PD (DBID = 1694328251)
RMAN > 2 > 3 > 4 > 5 > 6 > 7 > 8 > 9 > 10 >
allocated channel: ch1
channel ch1: sid = 778 devtype = SBT_TAPE
channel ch1: CommVault Systems for Oracle: Version 7.0.0 (BUILD76)
from full resynchronization of the recovery catalog
full complete Resync
from full resynchronization of the recovery catalog
full complete Resync
from full resynchronization of the recovery catalog
full complete Resync
SQL statement: alter system archive log current
from full resynchronization of the recovery catalog
full complete Resync
From backup 22 January 09
Current archived log
from full resynchronization of the recovery catalog
full complete Resync
archived journal D:\ORACLE\ORAARC\EBIZRED\ARC00054_0674426118.001 not found or at odds with catalog
try another file archivelog thread 1, sequence 54
output channel: ch1
RMAN-00571: ===========================================================
RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
RMAN-00571: ===========================================================
RMAN-03002: failure of the backup command to 2009-01-22 04:16:23
RMAN-06059: journal archived expected not found, lost of archived newspaper compromised recoverability
ORA-19625: error identification of file E:\ORACLE\ORAARC\EBIZRED\ARC00054_0674426118.001
ORA-27041: could not open the file
04002 - OSD: could not open the file
S/O-error: (OS 3) the system cannot find the path specified.
RMAN >
Complete recovery manager.Hi Chris,
Could do aand retry the backup.
Can you post setting destination arch for EBIZ01PD?
The dbid for the EBIZ01PD and the EBIZRED would also be intresting.
Do you use a recovery catalog?
Kind regards
Tycho -
Creating a new controlfile with RMAN backup data files
Hello
I use oracle 10g (10.2.0.1) in RHEL5 server. I am trying to restore a RMAN backup from one server to another server again with the new name of the comic. I took on the RMAN backup spfile and created her pfile and edited the file pfile with new dbname and directory structure and launched the db in nomount with new pfile. Today I restored the backup controfile RMAN has tried to put the database in State of Mount. But it failed due to the error below
RMAN-03002: failure of alter db command at 21:44:56 05/11/2012
ORA-01103: name "ORADB" in the control of the database file is not 'DEVDB '.
So I stop the database and started the db in nomount with new pfile and tried to create the controlfile with new db name, but he didn't like it is looking for the data files.
ORA-01503: CREATE CONTROLFILE failed
ORA-01565: error in file identification
' / u01/app/oracle/oradata/DEVDB/datafile/o1_mf_system_80jq0kfw_.dbf'
ORA-27037: unable to get file status
Linux error: 2: no such file or directory
Additional information: 3
All my data files in my RMAN backup. How to get the data files of RMAN backup in the above scenario?
Kind regards
007restaurer restore as ORADB, then rename the database with DBNEWID
http://docs.Oracle.com/CD/B19306_01/server.102/b14215/dbnewid.htmor use duplicate instead of restore
-
impossible to the arhcive by rman backup log.
Hello
Oracle Version: 10.2.0.2
Operating system: linux
I was unable to save the logs to archive by rman. Here, I changed the archive log destinatin also but still I get the error
Published by: SIDDABATHUNI on December 4, 2009 02:59RMAN> backup database plus archivelog; Starting backup at 04-DEC-09 current log archived using channel ORA_DISK_1 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of backup plus archivelog command at 12/04/2009 16:23:18 RMAN-06059: expected archived log not found, lost of archived log compromises recoverability ORA-19625: error identifying file /u01/app/oracle/flash_recovery_area/VSMIG/archivelog/2009_09_10/o1_mf_1_3_5bkc1o5q_.arc ORA-27037: unable to obtain file status Linux Error: 2: No such file or directory Additional information: 3
RMAN > delete all. expired archivelog
-
switch after the hot backup log file
Hello world
Why should we change log file after the end of the backup command that is to say, after the end of the backup hot?
Why we should take a backup control files to database level, but not through operating system level that is to say, order cp?Why we should take a backup control files to database level, but not through operating system level that is to say, order cp?
If you're doing a cold backup, this is where you use cp.
But when the database is in place, controlfile is used and it is continuing to change the oracle process. Now the question is how to get the consistent image of the controlfile, here's where you their support at the database level (for example backup controlfile). When you do that level database, a snapshot file is created time and she is saved.
HTH
-
HII I am working on oracle 10g 10.2.0.4.0 on solaris 10 have an asm and rac configuration (2 node rac).
I only have a single control file--+DATA_DG1/ftssdb/controlfile/current.270.664476369
I'm back up these files to control with rman
CONFIGURE CONTROLFILE AUTOBACKUP ON;
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT for DEVICE TYPE DISK TO ' / backup/rman_node1/%F';
c 31850833-20100909-00 is one supported by piece of control file.
now, suddenly, a system of administration deleted this file control... How can I recover my database using rman backup?RMAN > SET 3386862614 DBID
RMAN > RUN {
RESTORE AUTOMATIC BACKUP CONTROLFILE;
}
or
RMAN > SET 3386862614 DBID
RMAN > RUN {
CONTROLFILE AUTOBACKUP FORMAT SET
FOR DEVICE TYPE DISK TO ' / backup/rman_node1/%F';
RESTORE AUTOMATIC BACKUP CONTROLFILE;
}check out the link:
http://arjudba.blogspot.com/2008/05/How-to-restore-controlfile-from-backup.htmlPublished by: rajeysh on Sep 9, 2010 16:37
-
extract the rman backup data file
Hello
I want to search when logical corruption occurs in my database, so I want to extract my rman backup and test a file with db_verify.
But I don't want to recover the database. How to extract a file without recovery and destroing database work?
thnx
PodkovYou must perform the RESTORE in an auxiliary instance - preferably on another server.
Note: If you do it on the same server, make sure that
a. you do not connect to the same database instance
b. you set NEWNAME so that the data file is extracted to a different location -
RMAN backup not producing do not backup the files/size
Hi Experts.
I have a shell script at the request of backup the database every day. Every day, it works well, but he was hanged, so we have erased its PID and run the script manually but it doesn't produce any file backup now. I see no error in the backup log file.
Could you please say what could be the reason of it?
Thank you
-RAJ
If you see the SID of the RMAN session session $ v, check the output of the use of v$ rman_output
Select exit
v $ RMAN_OUTPUT
where sid =<> -
Cleaner thread prematurely deleting log file
Dear community,
I´d to display a stack trace. It seems that the thread cleaner had removed a log file that was still needed.
We run I 4.0.71, Solaris 10, x 86, Java HotSpot 64 bit, ZFS 1.6u20.
Database environment had to be closed with this exception:
com.sleepycat.je.EnvironmentFailureException: (I 4.0.71) environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (I 4.0.71) / klikit/database 0x2c3/0x564bb4 parent IN fetchTarget 29622582 = TO class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2dd/0x38ae2f parent.getDirty () = true status = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed.
The root cause was:
Due to: java.io.FileNotFoundException: /klikit/database/000002c3.jdb (no such file or directory)
Here's the complete stack trace:
[#: 2011-02 - 02T 03: 53:14.179 + 0100 |] SEVERE | Sun - AppServer2.1: javax. Enterprise.System.Container.Web|_ThreadID=17;_ThreadName=httpWorkerThread-80-1;_RequestID=df4c9c76-F069-4098-BE75-566b9f216008;|StandardWrapperValve[Dispatcher]: PWC1406: Servlet.service () for dispatcher servlet threw the exception
org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getSportResultsForAssociation' in class lu.luggel.web.model.ContentManager threw the lu.kpmg.core.db.store.StoreException exception: com.sleepycat.je.EnvironmentFailureException: (I 4.0.71) environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (I 4.0.71) / klikit/database 0x2c3/0x564bb4 parent IN fetchTarget 29622582 = TO class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2dd/0x38ae2f parent.getDirty () = true status = 0 LOG_FILE_NOT_FOUND: log file missing log is probably invalid. Environment is not valid and must be closed. to municipality/sportResults/sportResultsForAssociation.html[line 3, column 27]
at org.apache.velocity.runtime.parser.node.ASTMethod.handleInvocationException(ASTMethod.java:337)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:284)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252)
at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493)
at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71)
at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.runtime.directive.Parse.render(Parse.java:260)
at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.Template.merge(Template.java:328)
at org.apache.velocity.Template.merge(Template.java:235)
at org.springframework.web.servlet.view.velocity.VelocityLayoutView.renderScreenContent(VelocityLayoutView.java:180)
at org.springframework.web.servlet.view.velocity.VelocityLayoutView.doRender(VelocityLayoutView.java:150)
at org.springframework.web.servlet.view.velocity.VelocityView.renderMergedTemplateModel(VelocityView.java:291)
at org.springframework.web.servlet.view.AbstractTemplateView.renderMergedOutputModel(AbstractTemplateView.java:167)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:333)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at com.sun.appserv.web.cache.filter.CachingFilter.doFilter(CachingFilter.java:291)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:246)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:214)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:313)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597)
at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264)
at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:117)
Caused by: lu.kpmg.core.db.store.StoreException: com.sleepycat.je.EnvironmentFailureException: (I 4.0.71) environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (I 4.0.71) / klikit/database 0x2c3/0x564bb4 parent IN fetchTarget 29622582 = TO class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2dd/0x38ae2f parent.getDirty () = true status = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed.
at lu.kpmg.core.db.store.Store.execute(Store.java:230)
at lu.kpmg.core.db.store.RecordManager.forEach(RecordManager.java:164)
at lu.kpmg.core.db.store.RecordManager.queryRange(RecordManager.java:158)
at lu.kpmg.core.db.store.RecordManager.queryAll(RecordManager.java:147)
at lu.luggel.web.model.ContentManager.getSportResultsForAssociation(ContentManager.java:436)
at sun.reflect.GeneratedMethodAccessor160.invoke (unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
to org.apache.velocity.util.introspection.UberspectImpl$ VelMethodImpl.doInvoke (UberspectImpl.java:389)
to org.apache.velocity.util.introspection.UberspectImpl$ VelMethodImpl.invoke (UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
... more than 58
Caused by: com.sleepycat.je.EnvironmentFailureException: (I 4.0.71) environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (I 4.0.71) / klikit/database 0x2c3/0x564bb4 parent IN fetchTarget 29622582 = TO class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2dd/0x38ae2f parent.getDirty () = true status = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed.
at com.sleepycat.je.EnvironmentFailureException.wrapSelf(EnvironmentFailureException.java:197)
at com.sleepycat.je.dbi.EnvironmentImpl.checkIfInvalid(EnvironmentImpl.java:1392)
at com.sleepycat.je.dbi.CursorImpl.checkEnv(CursorImpl.java:2813)
at com.sleepycat.je.Cursor.checkEnv(Cursor.java:2846)
at com.sleepycat.je.Cursor.close(Cursor.java:439)
at lu.kpmg.core.db.store.Store.execute(Store.java:226)
... more than 68
Caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (I 4.0.71) / klikit/database 0x2c3/0x564bb4 parent IN fetchTarget 29622582 = TO class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2dd/0x38ae2f parent.getDirty () = true status = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed.
at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1241)
at com.sleepycat.je.tree.BIN.fetchTarget(BIN.java:1300)
at com.sleepycat.je.dbi.CursorImpl.fetchCurrent(CursorImpl.java:2362)
at com.sleepycat.je.dbi.CursorImpl.fetchCurrent(CursorImpl.java:2389)
at com.sleepycat.je.dbi.CursorImpl.getCurrentAlreadyLatched(CursorImpl.java:1410)
at com.sleepycat.je.Cursor.searchInternal(Cursor.java:2174)
at com.sleepycat.je.Cursor.searchAllowPhantoms(Cursor.java:2058)
at com.sleepycat.je.Cursor.search(Cursor.java:1926)
at com.sleepycat.je.SecondaryCursor.search(SecondaryCursor.java:1364)
at com.sleepycat.je.SecondaryCursor.getSearchKeyRange(SecondaryCursor.java:1176)
at lu.kpmg.core.db.store.Store.execute(Store.java:197)
... more than 68
Due to: java.io.FileNotFoundException: /klikit/database/000002c3.jdb (no such file or directory)
at java.io.RandomAccessFile.open (Native Method)
in java.io.RandomAccessFile. < init > (RandomAccessFile.java:212)
in java.io.RandomAccessFile. < init > (RandomAccessFile.java:98)
to com.sleepycat.je.log.FileManager$ 1. < init > (FileManager.java:992)
at com.sleepycat.je.log.FileManager.openFileHandle(FileManager.java:991)
at com.sleepycat.je.log.FileManager.getFileHandle(FileManager.java:887)
at com.sleepycat.je.log.LogManager.getLogSource(LogManager.java:1073)
at com.sleepycat.je.log.LogManager.getLogEntry(LogManager.java:779)
at com.sleepycat.je.log.LogManager.getLogEntryAllowInvisibleAtRecovery(LogManager.java:743)
at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1225)
... more than 78
The exception has occurred several times a day. The root cause was always about the file missing '000002c3.jdb '.
When we run the DBVerify tool on this basis, it will fail with the following exception:
Tree for key verification
Encountered error (continuous):
com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (EJ 4.1.7) d:\transfer\database_FileNotFound 0x2c3/0x4d677e parent IN fetchTarget = 29622782 class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2de/0x8ccc00 parent.getDirty () = State false = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed.
Key 592d83a084 Y-\83\a0\84 error
Error data 5a4e3398 ZN3\98
Encountered error (continuous):
com.sleepycat.je.EnvironmentFailureException: (EJ 4.1.7) environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (EJ 4.1.7) d:\transfer\database_FileNotFound 0x2c3/0x4d677e parent IN fetchTarget = 29622782 class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2de/0x8ccc00 parent.getDirty () = State false = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed. 0x2de/0x78b409 parent IN fetchTarget 29622782 = TO class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2de/0x8ccc00 parent.getDirty = false = 0 State)
Key 592d83a084 Y-\83\a0\84 error
Error data 5a4e341f ZN4\1f
Encountered error (continuous):
com.sleepycat.je.EnvironmentFailureException: (EJ 4.1.7) environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (EJ 4.1.7) d:\transfer\database_FileNotFound 0x2c3/0x4d677e parent IN fetchTarget = 29622782 class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2de/0x8ccc00 parent.getDirty () = State false = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed. 0x2de/0x7a568e parent IN fetchTarget 29622781 = TO class = com.sleepycat.je.tree.DIN lastFullVersion = 0x2de/0x8cce1a parent.getDirty = false = 0 State)
Key 592d87a06842fed4e17b2afa Y-\87\a0hB\fe\d4\e1 error {* \fa}
UNKNOWN error data
Encountered error (continuous):
com.sleepycat.je.EnvironmentFailureException: (EJ 4.1.7) environment must be closed, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment because of the previous exception: (EJ 4.1.7) d:\transfer\database_FileNotFound 0x2c3/0x4d677e parent IN fetchTarget = 29622782 class = com.sleepycat.je.tree.DBIN lastFullVersion = 0x2de/0x8ccc00 parent.getDirty () = State false = 0 LOG_FILE_NOT_FOUND: log file missing, log is probably invalid. Environment is not valid and must be closed. 0x2de/0x79dae8 parent IN fetchTarget 16651289 = TO class = com.sleepycat.je.tree.BIN lastFullVersion = 0x2de/0x91e179 parent.getDirty = false = 0 State)
Key 592d88a06842fed362b24baa Y-\88\a0hB\fe\d3b\b2K\aa error
UNKNOWN error data
Encountered error (continuous):
...
...
com.sleepycat.je.EnvironmentFailureException: (EJ 4.1.7) environment must be clo
SED, caused by: com.sleepycat.je.EnvironmentFailureException: invalid environment
d because of the previous exception: (EJ 4.1.7) d:\transfer\database_FileNotFound, fe
0x2c3/0x4d677e parent IN tchTarget = 29622782 IN class = com.sleepycat.je.tree.DB
IN lastFullVersion = 0x2de/0x8ccc00 parent.getDirty = false state () = 0 LOG_FILE_NOT_F
ROUND: Log file missing, log is probably invalid. Environment is not valid and should b
e closed.
at com.sleepycat.je.EnvironmentFailureException.wrapSelf(EnvironmentFailureException.java:196)
at com.sleepycat.je.dbi.EnvironmentImpl.checkIfInvalid(EnvironmentImpl.java:1439)
at com.sleepycat.je.Database.checkEnv(Database.java:1778)
at com.sleepycat.je.Database.closeInternal(Database.java:377)
at com.sleepycat.je.Database.close(Database.java:314)
at com.sleepycat.je.util.DbVerify.verify(DbVerify.java:293)
at com.sleepycat.je.util.DbVerify.main(DbVerify.java:98)
Caused by: com.sleepycat.je.EnvironmentFailureException: invalid OCI environment
ause of previous exception: (EJ 4.1.7) d:\transfer\database_FileNotFound fetchTa
0x2c3/0x4d677e parent IN rget = 29622782 IN the class = com.sleepycat.je.tree.DBIN
stFullVersion = 0x2de/0x8ccc00 parent.getDirty () = false = 0 LOG_FILE_NOT_FOUND State:
Save the missing file, log is probably invalid. The environment is not valid and must be clo
SED.
at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1337)
at com.sleepycat.je.tree.BIN.fetchTarget(BIN.java:1367)
at com.sleepycat.je.dbi.CursorImpl.fetchCurrent(CursorImpl.java:2499)
at com.sleepycat.je.dbi.CursorImpl.fetchCurrent(CursorImpl.java:2526)
at com.sleepycat.je.dbi.CursorImpl.getCurrentAlreadyLatched(CursorImpl.java:1545)
at com.sleepycat.je.dbi.CursorImpl.getNextWithKeyChangeStatus(CursorImpl.java:1692)
at com.sleepycat.je.dbi.CursorImpl.getNext(CursorImpl.java:1617)
at com.sleepycat.je.dbi.DatabaseImpl.walkDatabaseTree(DatabaseImpl.java:1473)
at com.sleepycat.je.dbi.DatabaseImpl.verify(DatabaseImpl.java:1420)
at com.sleepycat.je.util.DbVerify.verifyOneDbImpl(DbVerify.java:366)
at com.sleepycat.je.util.DbVerify.verify(DbVerify.java:285)
... 1 more
Due to: java.io.FileNotFoundException: d:\transfer\database_FileNotFound\000002c3.jdb (the system cannot find the file specified)
at java.io.RandomAccessFile.open (Native Method)
in java.io.RandomAccessFile. < init >(Unknown Source)
in java.io.RandomAccessFile. < init >(Unknown Source)
to com.sleepycat.je.log.FileManager$ 1. < init > (FileManager.java:995)
at com.sleepycat.je.log.FileManager.openFileHandle(FileManager.java:994)
at com.sleepycat.je.log.FileManager.getFileHandle(FileManager.java:890)
at com.sleepycat.je.log.LogManager.getLogSource(LogManager.java:1074)
at com.sleepycat.je.log.LogManager.getLogEntry(LogManager.java:778)
at com.sleepycat.je.log.LogManager.getLogEntryAllowInvisibleAtRecovery(LogManager.java:742)
at com.sleepycat.je.tree.IN.fetchTarget(IN.java:1320)
... 11 more
Exit code = false
It seems that the cleaner thread had deleted the file "000002c3.jdb", while he was still necessary.
As the database is running with the parameter "je.cleaner.expunge = false", the file was kept as "000002c3.del".
So we renamed this file in "000002c3.jdb".
On this database running the successful dbVerify tool (exit code = true).
The "FileNotFoundException" mentioned previously also not moved no more.
There is another piece of information that may be useful.
The database with the file missing the dbverify tool was not a record with "error key 592d83a084".
Before having the 'FileNotFoundException' we found a record in the database that has a damaged secondary index. We found that
the 592d83a084 key points on this issue.
Deletion or update of this record fails with the following exception:
Caused by: com.sleepycat.je.SecondaryIntegrityException: (I 4.0.71) secondary is corrupt: the primary record contains a key that is not present in the secondary cycle
at com.sleepycat.je.SecondaryDatabase.deleteKey(SecondaryDatabase.java:937)
at com.sleepycat.je.SecondaryDatabase.updateSecondary(SecondaryDatabase.java:900)
at com.sleepycat.je.SecondaryTrigger.databaseUpdated(SecondaryTrigger.java:42)
at com.sleepycat.je.Database.notifyTriggers(Database.java:2004)
at com.sleepycat.je.Cursor.putNotify(Cursor.java:1692)
at com.sleepycat.je.Cursor.putInternal(Cursor.java:1616)
at com.sleepycat.je.Database.putInternal(Database.java:1178)
at com.sleepycat.je.Database.put(Database.java:1050)
at lu.kpmg.core.db.store.Store.store(Store.java:325)
... more than 51
I hope this helps to discover the root cause of the problem and do I even better.
Holger
-
Here's my question after tons of research and test without have the right solutions.
Target:
(1) I have a 12.1.0.2 database unique main enterprise 'testdb' as database instance running on the server "node1".
(2) I created physical standby database "stbydb" on the server "node2".
(3) DataGuard running on the mode of MaxAvailability (SYNC) with roll forward in real time 12 default c apply.
(4) primary database has 3 groups of one-man redo. (/oraredo/testdb/redo01.log redo02.log redo03.log)
(5) I've created 4 standby redo logfiles (/oraredo/testdb/stby01.log stby02.log stby03.log stby04.log)
(6) I do RMAN backup (database and archivelog) on the site of relief only.
(7) I want to use this backup for full restore of the database on the primary database.
He is a DR test to simulate the scenario that has lost every primary & Eve total servers.
Here is how to save, on the database pending:
(1) performance 'alter database recover managed standby database Cancel' to ensure that compatible data files
(2) RMAN > backup database;
(3) RMAN > backup archivelog all;
I got elements of backup and copied to primary db Server something like:
/Home/Oracle/backupset/o1_mf_nnndf_TAG20151002T133329_c0xq099p_.BKP (data files)
/Home/Oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.BKP (spfile & controlfile)
/Home/Oracle/backupset/o1_mf_annnn_TAG20151002T133357_c0xq15xf_.BKP (archivelogs)
So here's how to restore, on the main site:
I clean all the files (data files, controlfiles oder all gone).
(1) restore spfile from pfile
RMAN > startup nomount
RMAN > restore spfile from pfile ' / home/oracle/pfile.txt' to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';
(2) modify pfile to convert to db primary content. pFile shows below
*.audit_file_dest='/opt/Oracle/DB/admin/testdb/adump '
* .audit_trail = "db".
* full = '12.1.0.2.0'
*.control_files='/oradata/testdb/control01.ctl','/orafra/testdb/control02.ctl'
* .db_block_size = 8192
* .db_domain = "
*.db_file_name_convert='/testdb/','/testdb /'
* .db_name = "testdb".
* .db_recovery_file_dest ='/ orafra'
* .db_recovery_file_dest_size = 10737418240
* .db_unique_name = "testdb".
*.diagnostic_dest='/opt/Oracle/DB '
* .fal_server = "stbydb".
* .log_archive_config = 'dg_config = (testdb, stbydb)'
* .log_archive_dest_2 = "service = stbydb SYNC valid_for = (ONLINE_LOGFILE, PRIMARY_ROLE) db_unique_name = stbydb'"
* .log_archive_dest_state_2 = 'ENABLE '.
*.log_file_name_convert='/testdb/','/testdb /'
* .memory_target = 1800 m
* .open_cursors = 300
* runoff = 300
* .remote_login_passwordfile = "EXCLUSIVE."
* .standby_file_management = "AUTO".
* .undo_tablespace = "UNDOTBS1.
(3) restart db with updated file pfile
SQLPLUS > create spfile from pfile='/home/oracle/pfile.txt'
SQLPLUS > the judgment
SQLPLUS > startup nomount
(4) restore controlfile
RMAN > restore primary controlfile to ' / home/oracle/backupset/o1_mf_ncsnf_TAG20151002T133329_c0xq0sgz_.bkp';
RMAN > change the editing of the database
(5) all elements of backup catalog
RMAN > catalog starts by ' / home/oracle/backupset / '.
(6) restore and recover the database
RMAN > restore database;
RMAN > recover database until the SNA XXXXXX; (this YVERT is the maximum in archivelog backups that extends beyond the scn of the backup of the data file)
(7) open resetlogs
RMAN > alter database open resetlogs;
Everything seems perfect, except one of the file log roll forward pending is not generated
SQL > select * from v$ standby_log;
ERROR:
ORA-00308: cannot open archived log ' / oraredo/testdb/stby01.log'
ORA-27037: unable to get file status
Linux-x86_64 error: 2: no such file or directory
Additional information: 3
no selected line
I intended to use the same backup to restore primary basic & helps record traffic and the downtime between them in the world of real output.
So I have exactly the same steps (except STANDBY restore CONTROLFILE and not recover after database restore) to restore the database pending.
And I got the same missing log file.
The problem is:
(1) complete alert.log filled with this error, not the concern here
(2) now repeat it in real time apply won't work since the Party shall LGWR shows always "WAITING_FOR_LOG."
(3) I can't delete and re-create this log file
Then I tried several and found:
The missing standby logfile was still 'ACTIVE' at present RMAN backup was made.
For example, on db standby, under Group #4 (stby01.log) would be lost after the restoration.
SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;
GROUP # SEQUENCE # USED STATUS
---------- ---------- ---------- ----------
4 19 ACTIVE 133632
5 0 0 UNASSIGNED
6 0 0 not ASSIGNED
7 0 0 UNASSIGNED
So until I take the backup, I tried on the primary database:
SQL > alter system set log_archive_dest_state_2 = delay;
This was the Group of standby_log side Eve #4 was released:
SQL > select GROUP #, SEQUENCE #, USE (s), the STATUS from v$ standby_log;
GROUP # SEQUENCE # USED STATUS
---------- ---------- ---------- ----------
4 0 0 UNASSIGNED
5 0 0 UNASSIGNED
6 0 0 not ASSIGNED
7 0 0 UNASSIGNED
Then, the backup has been restored correctly without missing standby logfile.
However, to change this primary database means break DataGuard protection when you perform the backup. It's not accept on the production environment.
Finally, my real questions come:
(1) what I do may not do on parameter change?
(2) I know I can re-create the control file to redo before delete and then recreate after. Is there any simple/fast to avoid the standby logfile lost or recreate the lost one?
I understand that there are a number of ways to circumvent this. Something to keep a copy of the log file waiting restoration progress and copy up one missing, etc, etc...
And yes I always have done no real-time applies "to the aid of archived logfile" but is also not accept mode of protection of production.
I just want proof that the design (which is displayed in a few oracle doc Doc ID 602299.1 is one of those) that backs up data backup works effectively and can be used to restore the two site. And it may be without spending more time to resume backups or put the load on the primary database to create the database before.
Your idea is very much appreciated.
Thank you!
Hello
1--> when I take via RMAN backup, RMAN does not redo log (ORL or SRL) file, so we cannot expect ORLs or SRL would be restored.
2nd--> when we opened the ORL database should be deleted and created
3rd--> Expecting, SRL should not be an issue.we should be able to do away with the fall.
DR sys@cdb01 SQL > select THREAD #, SEQUENCE #, GROUP #, STATUS from v$ standby_log;
THREAD # SEQUENCE # GROUP # STATUS
---------- ---------- ---------- ----------
1 233 4 ACTIVE
1 238 5 ACTIVE
DR sys@cdb01 SQL > select * from v$ logfile;
GROUP # STATUS TYPE MEMBER IS_ CON_ID
---------- ------- ------- ------------------------------ --- ----------
3 /u03/cdb01/cdb01/redo03.log no. 0 online
/U03/cdb01/cdb01/redo02.log no. 0 2 online
1 /u03/cdb01/cdb01/redo01.log no. 0 online
4 /u03/cdb01/cdb01/stdredo01.log WATCH No. 0
/U03/cdb01/cdb01/stdredo02.log EVE 5 No. 0
DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log
method: cannot access the /u03/cdb01/cdb01/stdredo01.log: no such file or directory
DR sys@cdb01 SQL >! ls - ltr /u03/cdb01/cdb01/stdredo02.log
-rw - r-. 1 oracle oinstall 52429312 17 Oct 15:32 /u03/cdb01/cdb01/stdredo02.log
DR sys@cdb01 SQL > alter database force claire logfile 4;
change the database group claire logfile 4
*
ERROR on line 1:
ORA-01156: recovery or current flashback may need access to files
DR sys@cdb01 SQL > alter database recover managed standby database cancel;
Database altered.
DR sys@cdb01 SQL > change the database group claire logfile 4;
Database altered.
DR sys@cdb01 SQL > ! ls - ltr /u03/cdb01/cdb01/stdredo01.log
-rw - r-. 1 oracle oinstall 52429312 17 Oct 15:33 /u03/cdb01/cdb01/stdredo01.log
DR sys@cdb01 SQL >
If you do, you can recreate the controlfile without waiting for redo log entry...
If you still think it's something is not acceptable, you must have SR with support to analyze why he does not abandon SRL when controlfile_type is "underway".
Thank you
-
Synchronization log during backup RMAN of archive file
Hello
I have a small question. I hope someone can answer.
Our database (cluster) needs an answer less than 0.5 seconds. Most of the time it works, except when running the RMAN backup.
During the week we run only once a full backup, each day of the week an incremental backup, each time a backup controlfile and every 15 minutes an archive backup.
During a backup response time can be much longer then this 0.5 seconds.
Below is a typical example of responsetime.
EVENT: log file sync
WAIT_CLASS: commit
TIME_WAITED: 10 774
It is obvious that it takes very long to get a validation. It comes in a few seconds. As you can see it's long. It is clearly linked to the RMAN backup, because this kind of responsetime appears when the backup is running.
I would like to ask why the response times are so high, even if I only backup the archivelog files? We did not have this problem before but suddenly 2 weeks, we have a problem and I can not find the problem.
-We use a 11.2 G on ASM RAC database. Redo logs and database files are on the same disks.
-Automatic backup of the controlfile is off.
-Dataguard: LogXptMode = 'arch '.
Greetings,Hello
I don't know why you posted here, but I'm sure that you will get more responses in one of these forums:
{forum: id = 74}
{forum: id = 61} -
RMAN, any backup data file.
Dear...
I have a scenario.
Backup RMAN - yesterday.
DataFile added today, and he lost in the evening. How a datafile restore/restore with RMAN, as data file has been saved in the last backup RMAN.
Version: 10.2.0.1.0
Kind regards.YES, below.
name of the archived log file = C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_. Wire ARC = 1 sequence = 18
The creation data file file number = 7 name = C:\ORACLE\ORADATA\ORCL\USERS03. DBFRMAN> backup database; Starting backup at 21-FEB-12 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=133 device type=DISK channel ORA_DISK_1: starting full datafile backup set channel ORA_DISK_1: specifying datafile(s) in backup set input datafile file number=00001 name=C:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF input datafile file number=00002 name=C:\ORACLE\ORADATA\ORCL\SYSAUX01.DBF input datafile file number=00003 name=C:\ORACLE\ORADATA\ORCL\UNDOTBS01.DBF input datafile file number=00005 name=C:\ORACLE\ORADATA\ORCL\EXAMPLE01.DBF input datafile file number=00006 name=C:\ORACLE\ORADATA\ORCL\USERS02.DBF input datafile file number=00004 name=C:\ORACLE\ORADATA\ORCL\USERS01.DBF channel ORA_DISK_1: starting piece 1 at 21-FEB-12 channel ORA_DISK_1: finished piece 1 at 21-FEB-12 piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_02_21\O1_MF_NNNDF_TAG20120221T132643_7N6MKWPX_.BKP tag=TAG20120221T132643 comment=NONE channel ORA_DISK_1: backup set complete, elapsed time: 00:00:55 Finished backup at 21-FEB-12 Starting Control File and SPFILE Autobackup at 21-FEB-12 piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_02_21\O1_MF_S_775834060_7N6MMO5Q_.BKP comment=NONE Finished Control File and SPFILE Autobackup at 21-FEB-12 RMAN> exit SQL> alter tablespace users add datafile 'C:\ORACLE\ORADATA\ORCL\USERS03.dbf' size 10m; Tablespace altered. SQL> SQL> alter system switch logfile; System altered. SQL> startup force mount exclusive restrict; ORACLE instance started. Total System Global Area 778387456 bytes Fixed Size 1374808 bytes Variable Size 310379944 bytes Database Buffers 461373440 bytes Redo Buffers 5259264 bytes Database mounted. SQL> drop database; Database dropped. Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> exit C:\Users\bn2676>sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 21 13:51:27 2012 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to an idle instance. SQL> startup nomount ORACLE instance started. Total System Global Area 778387456 bytes Fixed Size 1374808 bytes Variable Size 310379944 bytes Database Buffers 461373440 bytes Redo Buffers 5259264 bytes SQL> exit Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options C:\Users\bn2676>rman target / Recovery Manager: Release 11.2.0.1.0 - Production on Tue Feb 21 13:51:52 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. connected to target database: ORCL (not mounted) RMAN> restore controlfile from 'C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_02_21\O1_MF_S_775834060_7N6MMO5Q_.BKP'; Starting restore at 21-FEB-12 using target database control file instead of recovery catalog allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=63 device type=DISK channel ORA_DISK_1: restoring control file channel ORA_DISK_1: restore complete, elapsed time: 00:00:03 output file name=C:\ORACLE\ORADATA\ORCL\CONTROL01.CTL output file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\CONTROL02.CTL Finished restore at 21-FEB-12 RMAN> sql 'alter database mount'; sql statement: alter database mount released channel: ORA_DISK_1 RMAN> restore database; Starting restore at 21-FEB-12 Starting implicit crosscheck backup at 21-FEB-12 allocated channel: ORA_DISK_1 channel ORA_DISK_1: SID=63 device type=DISK Crosschecked 8 objects Finished implicit crosscheck backup at 21-FEB-12 Starting implicit crosscheck copy at 21-FEB-12 using channel ORA_DISK_1 Finished implicit crosscheck copy at 21-FEB-12 searching for all files in the recovery area cataloging files... cataloging done List of Cataloged Files ======================= File Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_.ARC File Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_19_7N6NXV4M_.ARC File Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_02_21\O1_MF_S_775834060_7N6MMO5Q_.BKP File Name: C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\AUTOBACKUP\2012_02_21\O1_MF_S_775834547_7N6N2WHN_.BKP using channel ORA_DISK_1 channel ORA_DISK_1: starting datafile backup set restore channel ORA_DISK_1: specifying datafile(s) to restore from backup set channel ORA_DISK_1: restoring datafile 00001 to C:\ORACLE\ORADATA\ORCL\SYSTEM01.DBF channel ORA_DISK_1: restoring datafile 00002 to C:\ORACLE\ORADATA\ORCL\SYSAUX01.DBF channel ORA_DISK_1: restoring datafile 00003 to C:\ORACLE\ORADATA\ORCL\UNDOTBS01.DBF channel ORA_DISK_1: restoring datafile 00004 to C:\ORACLE\ORADATA\ORCL\USERS01.DBF channel ORA_DISK_1: restoring datafile 00005 to C:\ORACLE\ORADATA\ORCL\EXAMPLE01.DBF channel ORA_DISK_1: restoring datafile 00006 to C:\ORACLE\ORADATA\ORCL\USERS02.DBF channel ORA_DISK_1: reading from backup piece C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_02_21\O1_MF_NNNDF_TAG20120221T132643_7N6MKWPX_.BKP channel ORA_DISK_1: piece handle=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\BACKUPSET\2012_02_21\O1_MF_NNNDF_TAG20120221T132643_7N6MKWPX_.BKP tag=TAG20120221T132643 channel ORA_DISK_1: restored backup piece 1 channel ORA_DISK_1: restore complete, elapsed time: 00:00:56 Finished restore at 21-FEB-12 R recover database; Starting recover at 21-FEB-12 using channel ORA_DISK_1 starting media recovery archived log for thread 1 with sequence 18 is already on disk as file C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_.ARC archived log for thread 1 with sequence 19 is already on disk as file C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_19_7N6NXV4M_.ARC archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_.ARC thread=1 sequence=18 creating datafile file number=7 name=C:\ORACLE\ORADATA\ORCL\USERS03.DBF archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_18_7N6MQBWS_.ARC thread=1 sequence=18 archived log file name=C:\ORACLE\FLASH_RECOVERY_AREA\ORCL\ARCHIVELOG\2012_02_21\O1_MF_1_19_7N6NXV4M_.ARC thread=1 sequence=19 unable to find archived log archived log thread=1 sequence=20 RMAN-00571: =========================================================== RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS =============== RMAN-00571: =========================================================== RMAN-03002: failure of recover command at 02/21/2012 13:54:04 RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 20 and starting SCN of 1226889 RMAN> sql 'alter database open resetlogs'; sql statement: alter database open resetlogs RMAN> exit Recovery Manager complete. C:\Users\bn2676>sqlplus / as sysdba SQL*Plus: Release 11.2.0.1.0 Production on Tue Feb 21 13:54:42 2012 Copyright (c) 1982, 2010, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> select file_name from dba_data_files where tablespace_name='USERS'; FILE_NAME -------------------------------------------------------------------------------- C:\ORACLE\ORADATA\ORCL\USERS01.DBF C:\ORACLE\ORADATA\ORCL\USERS02.DBF C:\ORACLE\ORADATA\ORCL\USERS03.DBF SQL>
-
What is the role of the archived in an incremental backup redo log files?
I want to know, to which RMAN reads what block of data is changed after the last incremental backup.
and what is the role of the archived in an incremental backup redo log files?
Please guide.Hello
First Querstion response->
Each block of data in a data file contains a system change number (SCN), which is the SCN of the last change to the block. During an incremental backup, RMAN reads the RCS of each block of data in the input file and compares at the checkpoint SCN of the incremental backup from parent. If the RCS in the block of input data is greater than or equal to checkpoint SCN of the parent, then RMAN copies the block.2 - the archived redolog files are required for the restoration of the online of rman incremental backup in a consistent state.
Thank you & best regards
Rahul Sharma -
Pull on the RMAN backup archive logs?
Environment:
Oracle 11.2.0.3 EE on Solaris
Physical standby
I have a gap of journal archive at the moment. The missing archive logs have been saved on the primary and have not yet been transferred to waiting due to some maintenance work performed on the standby server.
The database will be able to recognize that the missing archivelog files are in the RMAN backup files, restore them and send them to the update server standby for application?
If not, will it restore manually, copy them to the standby server and save them for their application?
Thanks a lot for your help!
-gary
Were the archivelogs deleted on the primary once they have been saved? If they have been deleted on the primary, then you can:
1 manually transfer the backup to forward files
2 replace the archivelog destination configured on the eve
3 restart the managed recovery on the standby process, and the computer should be able to detect and apply the missing archivelogs.
If they have not been deleted on the primary and are always available in the archivelog directory configured, then the process of Data Guard should be able to detect and automatically fix the gap.
If you have a long interval archivelogs missing and you use + ASM, you can also try to use an incremental backup to roll forward the database pending, this article provides a good step by step: the steps for Rolling forward a standby database using RMAN incremental backup. (Doc ID 836986.1)
Kind regards
Oscar -
How to write the output of RMAN commands to a log file
Hi DBAs,
I must only newspapers archive backup too manually by pulling the controls in the RMAN session without running any script backup.
The orders happens this way:
run
{
allocate channels ch01 type disk maxpiecesize 7000 M;
allocate channels ch02 type disk maxpiecesize 7000 M;
BACKUP tag ArchLogAll FILESPERSET FORMAT of 20 ' / oracledbbackupset/archive_log_bkp_2014_06_18/d_%d_s_%s_p_%p_t_%t.bkp' ARCHIVELOG
FROM 4410 SEQUENCE AS A SEQUENCE 4599 THREAD 1 REMOVE ALL ENTRIES;
Ch01 CHANNEL;
OUTPUT CHANNEL ch02;
}
Now, I want the output of these commands to write to a log file in the location /temp/arch.log in parallel executing above commands. I don't care?
Kind regards
Ritu
See the RMAN command SPOOL LOG TO
http://docs.Oracle.com/CD/E11882_01/backup.112/e10643/rcmsynta2017.htm#RCMRF156
Hemant K Collette
Maybe you are looking for
-
Satellite P100-160 - several PCI bus do not work with a shadow video BIOS
Hello I got my Satellite P100-160 for about five years now and have never had any problems like this before.A few weeks ago my system did not (or something like that), so I pressed the power down button to turn it off.Then, as he was put on, he seeme
-
Drive recovery damaged for Satellite U200-115
My Satellite worked very slowly so I decided to reformat and start again using the recovery disk. He got 65 percent and stopped. I tried a second time and it does the same thing. When I watched the disc, I found that he has a deep scratch across it.
-
Is there a replacement for sndrec32.exe from XP to Windows 7?
I have been using C:\WINDOWS\System32\sndrec32.exe XP to play short WAV files because I can issue @START/min C:\WINDOWS\System32\sndrec32.exe/play/close a - sound.wav in a script to get the sound that is played with the utility run reduced and leave
-
Increase in Ay. I'm running Windows 7 on a HP Pavilion G6 with touchpad synaptic. However, the pinch to zoom is in danger of makes me sane! I tried several times to turn it off using the Synaptics setting Menu. It flashes on the screen (most of th
-
How can I check my battery life in Windows 8 in the modern user interface?
I recently bought a RT of Surface. While I check the battery via the icon (no numbers) displayed in the modern user interface (by lock screen or the menu of charm), I can't seem to find the life of battery exact (in numbers) in the modern user interf