Media Recovery Waiting for thread 1 sequence (in transit)
I have rebuilt our standby database using an rman duplicate since it was missing many archive logs.
Following the duplicate, the standby is now almost in sync with the primary. Logs are shipping across but are not being applied in a timely manner. How long should it take for an archive log from the primary to be applied to the standby?
I need to know this so that a proper script can be set up to check the primary and standby. At the moment they are never exactly in sync - always one sequence number behind the primary.
Why is the standby is not applying in a timely manner?
From the alert log:
Media Recovery Waiting for thread 1 sequence 11278 (in transit)
The log seems to be "in transit" for a long time
PRIMARY:
SQL> select max (sequence#) current_seq from v$log;
CURRENT_SEQ
11278
SB:
SQL> select MAX (SEQUENCE#), APPLIED FROM V$ARCHIVED_LOG where APPLIED ='YES' GROUP BY APPLIED;
MAX(SEQUENCE#) APP
11277 YES
ALERT LOG:
RFS[2]: Archived Log: '/backup/prod/log_1_11277_704816194.dbf'
Primary database is in MAXIMUM PERFORMANCE mode
Mon Nov 1 15:22:01 2010
Media Recovery Log /backup/prod/log_1_11272_704816194.dbf
Mon Nov 1 15:26:49 2010
Media Recovery Log /backup/prod/log_1_11273_704816194.dbf
Mon Nov 1 15:29:54 2010
Media Recovery Log /backup/prod/log_1_11274_704816194.dbf
Mon Nov 1 15:34:18 2010
Media Recovery Log /backup/prod/log_1_11275_704816194.dbf
Mon Nov 1 15:36:42 2010
Media Recovery Log /backup/prod/log_1_11276_704816194.dbf
Mon Nov 1 15:39:43 2010
Media Recovery Log /backup/prod/log_1_11277_704816194.dbf
Mon Nov 1 15:42:34 2010
Media Recovery Waiting for thread 1 sequence 11278 (in transit)
I should add that I understand that for the Primary and Standby to be out by one log is not cause for concern (they are applying). Its just that I wanted to script a check that would compare them both, and and the moment they are never equal - when I understand that they should be and that the logs should be applied almost immediately.
Edited by: Dan A on Nov 1, 2010 4:36 PM
How long should it take for an archive log from the primary to be applied to the standby?depends on network speed also.
make sure the archives are shipped to standby location.
PRIMARY:
SQL> select max (sequence#) current_seq from v$log;
CURRENT_SEQ
11278(this is log not archivelog ) ..... :)SB:
SQL> select MAX (SEQUENCE#), APPLIED FROM V$ARCHIVED_LOG where APPLIED ='YES' GROUP BY APPLIED;
MAX(SEQUENCE#) APP
11277 YES
Hi check is MRP started or not?
primary database you need not check current sequence, check last generated sequence..not current sequence.
current sequence is redo log which has been not yet archived
I think everything is perfect here.. no issues.
Hope you understood, let me know if not clear , thanks.
Similar Messages
-
Standby media recovery waiting for inactive thread
Hi,
Please let me know any idea on this scenario. Thanks.
Environment:
Oracle 11.2.0.2
primary: 3 node RAC
standby: 3 node RAC
Problem:
there is thread 5 (not registered instance or did not show in srvctl) that generates archivelog. but the lag apply stopped because of this when the instance (of thread 5) is shutdown.
question: somehow an instance is registered in the cluster but in srvctl only 3 instance is running. it should have 4 instance but 1 is not running. How can I remove the thread 5 so when someone startup then shutdown instance#4 it will not create archivelog that will stopped the apply of archivelog in standby.
note: this is perf environment server so someone and "other" DBA is accessing this environment which I am not aware what are they doing with the cluster.
looking in alert log file: - it is waiting for thread 5 sequence 510. But the instance is down so log is not shipped to standby database and this resulted to lag in other threads.
Sat Aug 03 18:54:47 2013
Media Recovery Log +FLASH/dgjmspl/archivelog/2013_08_01/thread_1_seq_13718.1544.822333555
Media Recovery Log +FLASH/dgjmspl/archivelog/2013_08_01/thread_2_seq_17665.22678.822315375
Media Recovery Log +FLASH/dgjmspl/archivelog/2013_08_01/thread_3_seq_15465.14138.822313997
Media Recovery Waiting for thread 5 sequence 510
THREAD# LAST_SEQ_RECEIVED LAST_SEQ_APPLIED
1 13745 13717
2 17728 17664
3 15527 15464
5 509 509
what I did is:
1. primary (asm copy to file system)
2. scp primary to standby
3. standby (file system copy to asm)
4. rman target / -> catalog archivelog <thread 5 sequence 510)
5. then looking into alert log file; it performed media recovery
Sat Aug 03 23:03:13 2013
Media Recovery Log +FLASH/dgjmspl/archivelog/2013_08_01/thread_1_seq_13718.1544.822333555
Media Recovery Log +FLASH/dgjmspl/archivelog/2013_08_01/thread_2_seq_17665.22678.822315375
Media Recovery Log +FLASH/dgjmspl/archivelog/2013_08_01/thread_3_seq_15465.14138.822313997
Media Recovery Waiting for thread 5 sequence 510
Sat Aug 03 23:15:21 2013
Media Recovery Log +FLASH/dgjmspl/archivelog/2013_08_01/thread_5_seq_510
Sat Aug 03 23:15:32 2013
Media Recovery Log +FLASH/dgjmspl/archivelog/2013_08_01/thread_3_seq_15466.10925.822316315
Sat Aug 03 23:17:18 2013
Media Recovery Log +FLASH/dgjmspl/archivelog/2013_08_01/thread_2_seq_17666.853.822333143
Sat Aug 03 23:18:39 2013
Media Recovery Log +FLASH/dgjmspl/archivelog/2013_08_01/thread_3_seq_15467.834.822333553
Sat Aug 03 23:20:54 2013in Standby, thread 4 and 5 are both UNUSED, and size is incorrect (not equal to other redo log). I want to recreate it but cannot drop redo log. I follow Doc ID 740675.1.
any idea what are the missing steps? thanks.
ORA-01624: needed for crash recovery of instance UNNAMED_INSTANCE_5 (thread 5)
select group#,thread#,archived,status,bytes from v$log;
primary DB:
GROUP# THREAD# ARC STATUS BYTES
1 1 YES INACTIVE 1073741824
2 1 YES INACTIVE 1073741824
3 2 NO CURRENT 1073741824
4 2 YES INACTIVE 1073741824
5 3 YES INACTIVE 1073741824
6 3 YES INACTIVE 1073741824
7 2 YES INACTIVE 1073741824
8 1 NO CURRENT 1073741824
9 3 NO CURRENT 1073741824
10 4 YES INACTIVE 1073741824
11 4 NO CURRENT 1073741824
GROUP# THREAD# ARC STATUS BYTES
12 4 YES INACTIVE 1073741824
13 5 YES INACTIVE 1073741824
14 5 YES INACTIVE 1073741824
15 5 NO CURRENT 1073741824
standby DB:
GROUP# THREAD# ARC STATUS BYTES
1 1 YES INACTIVE 1073741824
2 1 YES INACTIVE 1073741824
3 2 NO CURRENT 1073741824
4 2 YES INACTIVE 1073741824
5 3 YES INACTIVE 1073741824
6 3 YES INACTIVE 1073741824
7 2 YES INACTIVE 1073741824
8 1 NO CURRENT 1073741824
9 3 NO CURRENT 1073741824
10 4 YES INACTIVE 1073741824
11 4 NO CURRENT 1073741824
GROUP# THREAD# ARC STATUS BYTES
12 4 YES INACTIVE 1073741824
13 5 YES INACTIVE 1073741824
14 5 YES INACTIVE 1073741824
15 5 NO CURRENT 1073741824 -
Update of jlabel does not happen when i wait for thread to finish (join())
gurus please help.
I have a main application which in actionevent calls a thread, that thread calls parent method to update ths status in jlabel, but when i use thread.join() to wait for process to complete, the jlabel does not get updated, please tell me how can i update the jlabel, i have to wait for thread to finish and during run i need to update the jlabel.
thankshi camickr and gurus:
here is the code:
notice after pressing the Process button, the label is being updated but its not working. I called the processnow() method directly and also by thread, but in thread I have to wait until it finishes using join() but still does not work, please help. Thanks
package label;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.text.*;
import javax.swing.border.*;
import javax.swing.*;
import javax.swing.table.*;
import javax.swing.event.*;
public class thePanel extends JDialog {
private DefaultTableModel tableModel = null;
private JTable theTable = new JTable();
private JScrollPane scrollPane = new JScrollPane();
JPanel tPanel = new JPanel();
private Border mainBorder;
private BorderLayout borderLayout1 = new BorderLayout();
private BorderLayout borderLayout2 = new BorderLayout();
private BorderLayout borderLayout3 = new BorderLayout();
private BorderLayout borderLayout4 = new BorderLayout();
private JPanel statusPanel = new JPanel();
private JPanel buttonPanel = new JPanel();
private JPanel lowerPanel = new JPanel();
private JLabel statusBar = new JLabel();
private JButton processButton = new JButton("Process");
public JButton closeButton = new JButton("Close");
boolean image = true;
theProcess processThread;
Vector tableData = new Vector();
ImageIcon Image = new ImageIcon("image.gif");
ImageIcon oImage= new ImageIcon("oimage.gif");
boolean errorOcurred=false;
String statusMessage;
public thePanel() {
try {
jbInit();
} catch(Exception e) {
e.printStackTrace();
private void jbInit() throws Exception {
tPanel.setPreferredSize(new Dimension(800,424));
mainBorder = new TitledBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED)," ");
statusPanel.setBorder(BorderFactory.createEtchedBorder());
tPanel.setBorder(mainBorder);
tPanel.setLayout(borderLayout1);
scrollPane.getViewport().add(theTable, null);
tPanel.add(scrollPane, BorderLayout.CENTER);
// status
statusPanel.setLayout(borderLayout2);
statusPanel.setBorder(BorderFactory.createEmptyBorder());
statusBar.setAlignmentX((float) 0.5);
statusBar.setBorder(BorderFactory.createLoweredBevelBorder());
statusBar.setMaximumSize(new Dimension(600, 21));
statusBar.setMinimumSize(new Dimension(600, 21));
statusBar.setPreferredSize(new Dimension(600, 21));
statusPanel.add(statusBar, BorderLayout.SOUTH);
// buttons
processButton.setPreferredSize(new Dimension(70,25));
processButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
process_actionPerformed(e);
closeButton.setPreferredSize(new Dimension(70,25));
buttonPanel.setLayout(borderLayout3);
buttonPanel.setBorder(BorderFactory.createRaisedBevelBorder());
buttonPanel.add(processButton,BorderLayout.WEST);
buttonPanel.add(new JPanel());
buttonPanel.add(closeButton,BorderLayout.EAST);
// lower panel
lowerPanel.setLayout(borderLayout4);
lowerPanel.setBorder(BorderFactory.createEmptyBorder());
lowerPanel.add(statusPanel, BorderLayout.WEST);
lowerPanel.add(buttonPanel, BorderLayout.EAST);
tPanel.add(lowerPanel, BorderLayout.SOUTH);
theTable.setAutoCreateColumnsFromModel(true);
theTable.setColumnSelectionAllowed(false);
theTable.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
theTable.getTableHeader().setReorderingAllowed(false);
getContentPane().add(tPanel);pack();
getinfo();
show();
private void prepairTable(){
tableModel = new DefaultTableModel(){
public boolean isCellEditable(int row, int col)
{ return false; }};
tableModel.addColumn("text 1");
tableModel.addColumn("text 2");
tableModel.addColumn("text 3");
tableModel.addColumn("text 4");
tableModel.addColumn("text 5");
theTable.setModel(tableModel);
} // end method (prepairTable)
public void refreshTable() {
prepairTable();
public void getinfo() {
try {
refreshTable();
tableModel.addRow(new Object[]{"3465465555","0123456789",new Date(1135022905196L),"0100000","errror message","sssssss"});
tableModel.addRow(new Object[]{"8949344562","0324354549",new Date(1134511763683L),"0166600","errror mes666e","ddddddd"});
setStatusMessage("ready to process, select record and click Process button to process record");
errorOcurred = false;
} catch (Exception ex) {
errorOcurred = true;
ex.printStackTrace();
} // End try
private void process_actionPerformed(ActionEvent e) {
try {
if(theTable.getSelectedRows().length > 0) {
// processThread = null;
// processThread = new theProcess(this);
// processThread.start();
processnow();
System.out.println("........finished now.........");
} else {
} catch (Exception ex) {
ex.printStackTrace();
public void processnow() {
try {
int[] selectedRows = null;
int totalSelected = 0;
setStatusMessage("processing " + totalSelected + " selected records...");Thread.sleep(1500);
selectedRows = theTable.getSelectedRows();
totalSelected = selectedRows.length;
for(int i = 0; i < totalSelected ; i++){
setStatusMessage("processing " + (i+1) + " of " + totalSelected + " selected records...");
System.out.println(".......................row: "+selectedRows);
Thread.sleep(2500);
System.out.println("........fins...........");
errorOcurred = false;
} catch (Exception ex) {
errorOcurred = true;
ex.printStackTrace();
} // End try
public void setStatusMessage(String message) {
statusMessage=message;
SwingUtilities.invokeLater(new Runnable() {
public void run() {
if(image)
statusBar.setIcon(Image);
else
statusBar.setIcon(oImage);
statusBar.setText(statusMessage);
statusBar.update(statusBar.getGraphics());
public static void main(String[] args){
new thePanel();
} // class
package label;
import java.lang.Runnable;
public class theProcess implements Runnable {
private thePanel parent;
public theProcess(thePanel xparent){
parent = xparent;
} // end constructor
public void start() {
try {
Thread thisThread = new Thread(this);
thisThread.start();
thisThread.join();
} catch(Exception ex) {
ex.printStackTrace();
} // end method (start)
public void run(){
try {
parent.processnow();
} catch (Exception ex){
ex.printStackTrace();
} // end try
} // end method (run)
} // end class -
ORA-16145: archival for thread# sequence# in progress
Hi,
10gR2 Database is configured in Dataguard maximum performance mode with no standby redo log file.
Archive log switching application on standby was working earlier but , it's stopped and unable to apply archive log on standby.For command 'recover standby database' it's giving ORA-16145: archival for thread#1 sequence# 5 in progress. The archive file is copied manually also ,but even though the problem persists.No archive log gap found for the secondary.the archivelogs are getting shipped properly.
Any suggestion? Thanks..Hi,
FTPed the archive log file and started the standby recovery but ,
it gave error:ORA-01274: cannot add datafile
'/d01/db/apps_st/data/non_apps_ts_data001.dbf' - file could not be
created
When started recovery after changing the parameter 'standby_file_management' to auto,
it's giving
ORA-00283: recovery session canceled due to errors
ORA-01111: name for data file 38 is unknown - rename to correct file
ORA-01110: data file 38: '/d01/db/tech_st/10.2.0/dbs/UNNAMED00038'
ORA-01157: cannot identify/lock data file 38 - see DBWR trace file
ORA-01111: name for data file 38 is unknown - rename to correct file
ORA-01110: data file 38: '/d01/db/tech_st/10.2.0/dbs/UNNAMED00038'
Pls advice.....Thanks -
Servlet waiting for threads to end
Hi !
To make our web app more efficient, we wanted to delegate some work to threads. But it seems that the servlet engine (or something else) is waiting for all spawned threads to end before sending the response back to the browser. So, if a servlet finishes execution but the threads it spawned are still working, I do not get the next page in the browser. I only do when all threads are done. So my question is : is this a normal behavior of the servlet engine ? If so, why ? If not, what could I have done wrong, what should I look out for when using threads inside servlets ?
Thanks,
MartinYup I agree with the other guys.
I am building a servlet that has 2 threads running continuously (looping), and they do not bother the requests/responses at all. But in your case if I understand correctly, you spawn threads from the request. You must have some kind of interaction between them.
Are you sure you are spawning the code in a separate thread??. I use something like this:
class Mythread extends Thread
public void run()
// code here
THread threadobject = new Mythread();
threadobject.start(); //( DO NOT CALL THE run() method, but the start() method.)
Are your threads sleeping (to not hog up all CPU power???). Are your threads higher priority then the normal?.
See ya,
Andre -
Cisco Media Hub - Waiting for Media Information on the web application
Good afternoon, I just installed the Media Hub on my Mac. I find the flac music on the media hub through the finder and the web application from media hub (in the configuration settings). Until now I don't see any information concerning the songs on the web application itself (they say that one has to wait several hours until the refresh process of the web application is through). I use kinsky desktop for my hifi (linn majic ds) and the MplayerX on my Mac.
- Does anyone has the same problems with waiting for the update of the media information on the web application
- Which software do you recommend for managing your media (mp3, wmv, flac)
Many thanks for your feedback, A.Hi Archimedes76,
I use windows media player to manage my music files. Regarding your music file info issue, sometimes I do have to restart my media hub so that it'll re-index the files especially if I transferred a lot of new media. If after a restart and waiting for a few hours while the media rescan and reindex files doesn't work for you then you might try to read this. I found it on the linksys support page though the example shown there is a windows PC.
Hope this helps! -
Waiting for Thread to finish execution
I have a program which uses a thread to copy files. While they are copying, a ProgressMonitor comes up displaying the current file being copied. After this has completed, my main program needs to be notified and go on with it's own code. Either I get the 'I'm done waiting!' message instantly, or not at all, instead of getting it after the thread completes. How do I do this?
This is what I currently have
// CLASS 1 //
//...other code is here
myMethod()
ProgressMonitorDemo pmd = new ProgressMonitorDemo();
while (!pmd.isDone())
{ wait(); }
System.out.println( "I'm done waiting!" );
}//Class 2 //
import java.awt.*;
import java.awt.event.*;
import java.io.File;
import javax.swing.*;
public class ProgressMonitorDemo extends JPanel
public final static int ONE_SECOND = 1000;
private ProgressMonitor progressMonitor;
private Timer timer;
private LongTask task;
public ProgressMonitorDemo()
task = new LongTask();
timer = new Timer( ONE_SECOND, new TimerListener() );
progressMonitor = new ProgressMonitor( this, "Running a Long Task", "", 0, task.getLengthOfTask() );
progressMonitor.setProgress( 0 );
progressMonitor.setMillisToDecideToPopup( 2 * ONE_SECOND );
task.go( );
timer.start();
public boolean isDone()
return task.isDone();
* The actionPerformed method in this class
* is called each time the Timer "goes off".
class TimerListener implements ActionListener
public void actionPerformed( ActionEvent evt )
progressMonitor.setProgress( task.getCurrent() );
String s = task.getMessage();
if( s != null )
progressMonitor.setNote( s );
if( progressMonitor.isCanceled() || task.isDone() )
progressMonitor.close();
task.stop();
Toolkit.getDefaultToolkit().beep();
timer.stop();
}// CLASS 3 //
import javax.swing.*;
import java.io.*;
import java.awt.dnd.DnDConstants;
public class LongTask
private int lengthOfTask;
private int current = 0;
private boolean done = false;
private boolean canceled = false;
private String statMessage;
public LongTask()
//Compute length of task...
//In a real program, this would figure out
//the number of bytes to read or whatever.
lengthOfTask = 400;
* Called from ProgressBarDemo to start the task.
public void go( )
final SwingWorker worker = new SwingWorker()
public Object construct()
current = 0;
done = false;
canceled = false;
statMessage = null;
return new CopyMove();
worker.start();
* Called from ProgressBarDemo to find out how much work needs
* to be done.
public int getLengthOfTask()
return lengthOfTask;
* Called from ProgressBarDemo to find out how much has been done.
public int getCurrent()
return current;
public void stop()
canceled = true;
statMessage = null;
* Called from ProgressBarDemo to find out if the task has completed.
public boolean isDone()
return done;
* Returns the most recent status message, or null
* if there is no current status message.
public String getMessage()
return statMessage;
* The actual long running task. This runs in a SwingWorker thread.
class CopyMove
private String currOldLoc, currNewLoc, type;
CopyMove()
while( current < lengthOfTask )
try
Thread.sleep( 1000 );
current += Math.random() * 100; //make some progress
if( current > lengthOfTask )
current = lengthOfTask;
statMessage = "Completed " + current + " out of " + lengthOfTask + ".";
catch( Exception e )
System.out.println( "<ERROR>: Long Task " + e.toString() );
}I tried this but it froze...
public void myMethod()
ProgressMonitorDemo pmd = new ProgressMonitorDemo( );
synchronized( pmd )
try
pmd.wait();
catch(Exception e){}
System.out.println( "I'm done waiting!" );
}Class 2
class CopyMove
private String currOldLoc, currNewLoc, type;
CopyMove()
while( current < lengthOfTask )
try
Thread.sleep( 1000 );
current += Math.random() * 100; //make some progress
if( current > lengthOfTask )
current = lengthOfTask;
statMessage = "Completed " + current + " out of " + lengthOfTask + ".";
catch( Exception e )
System.out.println( "<ERROR>: Long Task " + e.toString() );
synchronized(this)
notifyAll(); -
hi all ,
i have installed 10.2.0.2 databases and configure dataguard. everything works fine but i have 1 problem.
imagine that server 1 is primary ;
when i check on server 1 ; (primary DB)
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination /u01/app/oracle/archive/SID
Oldest online log sequence 215
Next log sequence to archive 218
Current log sequence 218
server 2 ( Standby server )
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination dgsby_Stan
Oldest online log sequence 216
Next log sequence to archive 0
Current log sequence 218
on the alert_log of stanby server , it locate the archived logs from primary on */u01/app/oracle/product/10g/dbs/* not on */u01/app/oracle/archive/SID*
Primary database is in MAXIMUM AVAILABILITY mode
Standby controlfile consistent with primary
RFS[6]: Successfully opened standby log 5: '/u02/app/oracle/oradata/SID/stdby_log01_1.log'
Mon Dec 19 13:16:28 2011
Media Recovery Log /u01/app/oracle/product/10g/dbs/dgsby_Stan1_217_767463156.dbf
Media Recovery Waiting for thread 1 sequence 218 (in transit)
Mon Dec 19 13:16:31 2011
Recovery of Online Redo Log: Thread 1 Group 5 Seq 218 Reading mem 0
Mem# 0 errs 0: /u02/app/oracle/oradata/SID/stdby_log01_1.log
if i do switchover i faced with same reverse situation ; ( old primary acts like the old standby and old standby acts like old primary db )
i have already set log_archive_dest_1 on both server.
i want both standby and primary db locates the archive logs on */u01/app/oracle/archive/SID* not on */u01/app/oracle/product/10g/dbs/*
what do i have to correct this situation ???
thankshere is the output from standby ;
SQL>
SQL> show parameter standby_archive_dest
NAME TYPE VALUE
standby_archive_dest string /u01/app/oracle/archive/TELE
SQL>
SQL> show parameter log_archive_dest_1
NAME TYPE VALUE
log_archive_dest_1 string location="/u01/app/oracle/arch
ive/SID", valid_for=(ONLINE_L
OGFILE,ALL_ROLES)
log_archive_dest_10 string
SQL> show parameter log_archive_dest
NAME TYPE VALUE
log_archive_dest string
log_archive_dest_1 string location="/u01/app/oracle/arch
ive/SID", valid_for=(ONLINE_L
OGFILE,ALL_ROLES)
log_archive_dest_10 string
log_archive_dest_2 string location="dgsby_Stan", valid_
for=(STANDBY_LOGFILE,STANDBY_R
OLE)
log_archive_dest_3 string
log_archive_dest_4 string
log_archive_dest_5 string
NAME TYPE VALUE
log_archive_dest_6 string
log_archive_dest_7 string
log_archive_dest_8 string
log_archive_dest_9 string
log_archive_dest_state_1 string ENABLE
log_archive_dest_state_10 string enable
log_archive_dest_state_2 string ENABLE
log_archive_dest_state_3 string ENABLE
log_archive_dest_state_4 string enable
log_archive_dest_state_5 string enable
log_archive_dest_state_6 string enable
NAME TYPE VALUE
log_archive_dest_state_7 string enable
log_archive_dest_state_8 string enable
log_archive_dest_state_9 string enable -
What is Media Recovery Log ..? Physical Standby Database
Hello All,
In my physical stdby database alert log I could see the below message, I'm not sure what id Media Recovery Log and why it is dumping ORACLE_HOME Directory..?
Could any one please help on this..? I need to house keep ORACLE_HOME directory.
Oracle 11gR2 / RHEL5
RFS[164]: No standby redo logfiles available for thread 2
RFS[164]: Opened log for thread 2 sequence 1995 dbid 287450012 branch 760028574
Fri Nov 11 19:39:05 2011
Media Recovery Log /u01/app/oracle/product/11.2.0/db_1/dbs/arch2_1992_760028574.dbf
Media Recovery Log /u01/app/oracle/product/11.2.0/db_1/dbs/arch2_1993_760028574.dbf
Media Recovery Waiting for thread 1 sequence 5568 (in transit)
Fri Nov 11 19:39:53 2011
Archived Log entry 948 added for thread 2 sequence 1994 rlc 760028574 ID 0x1122a1
FYI : The primary and standby database are in sync.Hello;
The alert log is providing you with information. If you want more run this query :
select process,status,client_process,sequence# from v$managed_standby;You should see processes like ARCH, RFS and MRP0.
MRP will tell you if its applying log(s), waiting for a log, or if it thinks there's a gap.
PROCESS STATUS CLIENT_P SEQUENCE#
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
ARCH CONNECTED ARCH 0
MRP0 APPLYING_LOG N/A 5051
RFS IDLE N/A 0
RFS IDLE UNKNOWN 0There's a tiny amount of information about this under "9.3.1 Adding a Datafile or Creating a Tablespace" in Oracle document E10700-02.
If you find this helpful please click the "helpful" button.
Best Regards
mseberg -
Standby MRP0 process- Wait for Log
Hi ,
I have standby Oracle 11.2.0.3 DB on AIx server .
After configuring Dataguard Log apply service fails on standby DB ..Following is resulf from my standy and primary DB .
On Primary
select process, status, sequence#, block# from v$managed_standby;
PROCESS STATUS SEQUENCE# BLOCK#
ARCH CLOSING 52 1
ARCH CLOSING 51 1
ARCH WRITING 2 38913
ARCH CLOSING 52 1
LNS WRITING 54 1003
On Standby
select process, status, sequence#, block# from v$managed_standby;
PROCESS STATUS SEQUENCE# BLOCK#
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
ARCH CONNECTED 0 0
RFS RECEIVING 2 6145
RFS IDLE 54 1025
RFS IDLE 0 0
MRP0 WAIT_FOR_LOG 2 0
On primaray Datagaurd status shows below output
select message from V$DATAGUARD_STATUS order by TIMESTAMP;
ARCH: Completed archiving thread 1 sequence 53 (1093671-1094088)
ARCH: Beginning to archive thread 1 sequence 53 (1093671-1094088)
LNS: Beginning to archive log 3 thread 1 sequence 54
MESSAGE
LNS: Completed archiving log 2 thread 1 sequence 53
On Standby DB
select message from V$DATAGUARD_STATUS order by TIMESTAMP;
MESSAGE
RFS[2]: Assigned to RFS process 659510
RFS[2]: No standby redo logfiles available for thread 1
RFS[3]: Assigned to RFS process 1110268
RFS[3]: No standby redo logfiles available for thread 1
Attempt to start background Managed Standby Recovery process
MRP0: Background Managed Standby Recovery process started
Managed Standby Recovery starting Real Time Apply
Media Recovery Waiting for thread 1 sequence 2 (in transit)
Please let me know what needs ti change for start log apply on physical standby .
Thanks .
Vaishali.Hi Shivananda,
Please find below output ..
I can tnsping both the database as well as when i try to connect from sqlplus to DB ..it was sucessful from both the side ...
SQL> select severity,error_code,message from v$dataguard_status where dest_id=2;
SEVERITY ERROR_CODE
MESSAGE
Error 1034
PING[ARC2]: Heartbeat failed to connect to standby 'IHISDR'. Error is 1034.
Error 1034
FAL[server, ARC2]: Error 1034 creating remote archivelog file 'IHISDR'
Error 1089
FAL[server, ARC2]: FAL archival, error 1089 closing archivelog file 'IHISDR'
SEVERITY ERROR_CODE
MESSAGE
Warning 1089
LNS: Attempting destination LOG_ARCHIVE_DEST_2 network reconnect (1089)
Warning 1089
LNS: Destination LOG_ARCHIVE_DEST_2 network reconnect abandoned
Error 1089
Error 1089 for archive log file 1 to 'IHISDR'
SEVERITY ERROR_CODE
MESSAGE
Error 1089
FAL[server, ARC0]: FAL archival, error 1089 closing archivelog file 'IHISDR'
7 rows selected.
Thanks . -
LGWR: Archivelog for thread 1 sequence 219 will NOT be compressed
db-version 10.2.0.2
os windows server 2003
part of the alert log:
Thread 1 cannot allocate new log, sequence 219
Private strand flush not complete
Current log# 2 seq# 218 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\HTMLDB63\REDO02A.LOG
Current log# 2 seq# 218 mem# 1: C:\ORACLE\DB_1\HTMLDB63\REDO02B.LOG
Thread 1 advanced to log sequence 219
Current log# 3 seq# 219 mem# 0: D:\ORACLE\PRODUCT\10.2.0\ORADATA\HTMLDB63\REDO03A.LOG
Current log# 3 seq# 219 mem# 1: C:\ORACLE\DB_1\HTMLDB63\REDO03B.LOG
part in the trace-file of the lgwr:
LGWR: Archivelog for thread 1 sequence 219 will NOT be compressed
is this a bug too or a real problem?According to Note: 284618.1 "Archivelog for thread % sequence % will NOT be compressed" message in trace files on 10.1.0.x, it is just an informational message and can be ignored.
Your version on the other hand is 10.2.0.2. There are several unanswered forum thread on metalink concerning the message in 10.2.0.2 database. One thread answers by Oracle supports points the person asking the question to the note above. -
11g standby database media recovery failed due to ora-600
hi friends,
DB: 11g 11.1.0.6
OS: Windows server 2003 ent
I've setup datagaurd using 11g. but for last 2 days, not able to start media recovey on standby database.
here's my alertlog file
alter database recover managed standby database using current logfile disconnect from session
Sat Jan 03 11:23:04 2009
MRP0 started with pid=18, OS id=648
Fast Parallel Media Recovery enabled
Managed Standby Recovery starting Real Time Apply
Media Recovery apply datafile 5 offline range
parallel recovery started with 2 processes
Waiting for all non-current ORLs to be archived...
Media Recovery Log C:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\GOLDSBY\ARCHIVELOG\2008_12_30\BACKUP\O1_MF_1_297_4ON23Q00_.ARC
Completed: alter database recover managed standby database using current logfile disconnect from session
Media Recovery Log C:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\GOLDSBY\ARCHIVELOG\2008_12_31\BACKUP\O1_MF_1_298_4OP3CLWS_.ARC
Errors in file c:\app\administrator\diag\rdbms\goldsby\gold\trace\gold_mrp0_648.trc (incident=544158):
ORA-00600: internal error code, arguments: [3012], [5], [131], [0], [92421891], [0], [92413878], []
Incident details in: c:\app\administrator\diag\rdbms\goldsby\gold\incident\incdir_544158\gold_mrp0_648_i544158.trc
Errors with log C:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\GOLDSBY\ARCHIVELOG\2008_12_31\BACKUP\O1_MF_1_298_4OP3CLWS_.ARC
MRP0: Background Media Recovery terminated with error 600
Errors in file c:\app\administrator\diag\rdbms\goldsby\gold\trace\gold_mrp0_648.trc:
ORA-00600: internal error code, arguments: [3012], [5], [131], [0], [92421891], [0], [92413878], []
Managed Standby Recovery not using Real Time Apply
Shutting down recovery slaves due to error 600
Recovery interrupted!
Sat Jan 03 11:23:15 2009
Trace dumping is performing id=[cdmp_20090103112315]
Sat Jan 03 11:23:16 2009
Recovered data files to a consistent state at change 92419435
Errors in file c:\app\administrator\diag\rdbms\goldsby\gold\trace\gold_mrp0_648.trc:
ORA-00600: internal error code, arguments: [3012], [5], [131], [0], [92421891], [0], [92413878], []
Errors in file c:\app\administrator\diag\rdbms\goldsby\gold\trace\gold_mrp0_648.trc:
ORA-00600: internal error code, arguments: [3012], [5], [131], [0], [92421891], [0], [92413878], []
Sat Jan 03 11:23:17 2009
Sweep Incident[544158]: completed
MRP TRACE FILE
** 2009-01-03 11:05:36.140 1095 krsh.c
MRP0: Background Managed Standby Recovery process started
*** 2009-01-03 11:05:41.140
*** 2009-01-03 11:05:41.140 1295 krsm.c
Managed Recovery: Initialization posted.
Started 11g Parallel Media Recovery
Fast Parallel Media Recovery enabled
*** 2009-01-03 11:05:41.156 1095 krsh.c
Managed Standby Recovery starting Real Time Apply
*** 2009-01-03 11:05:41.671
Recovery target incarnation = 5, activation ID = 0
Influx buffer limit = 31623 (50% x 63246)
Successfully allocated 2 recovery slaves
Start recovery at thread 1 ckpt scn 92413878 logseq 297 block 2
*** 2009-01-03 11:05:43.281
Media Recovery add redo thread 1
*** 2009-01-03 11:05:43.296 1295 krsm.c
Managed Recovery: Active posted.
*** 2009-01-03 11:05:43.500
Media Recovery Log C:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\GOLDSBY\ARCHIVELOG\2008_12_30\O1_MF_1_297_4ON1Y6NZ_.ARC
*** 2009-01-03 11:05:44.093
Media Recovery Log C:\APP\ADMINISTRATOR\FLASH_RECOVERY_AREA\GOLDSBY\ARCHIVELOG\2008_12_31\O1_MF_1_298_4ON74ROZ_.ARC
*** 2009-01-03 11:05:44.906
Incident 520220 created, dump file: c:\app\administrator\diag\rdbms\goldsby\gold\incident\incdir_520220\gold_mrp0_4044_i520220.trc
ORA-00600: internal error code, arguments: [3012], [5], [131], [0], [92421891], [0], [92413878], []
*** 2009-01-03 11:05:45.687 1095 krsh.c
MRP0: Background Media Recovery terminated with error 600
ORA-00600: internal error code, arguments: [3012], [5], [131], [0], [92421891], [0], [92413878], []
*** 2009-01-03 11:05:45.687 1095 krsh.c
Managed Standby Recovery not using Real Time Apply
kcrrgaptime: no snapshot information available
----- Redo read statistics for thread 1 -----
Read rate (ASYNC): 21376Kb in 2.55s => 8.19 Mb/sec
Total redo bytes: 23424Kb Longest record: 14Kb, moves: 17/62299 moved: 0Mb (0%)
Longest LWN: 804Kb, reads: 2357
Last redo scn: 0x0000.05823f03 (92421891)
Change vector header moves = 8621/118937 (7%)
*** 2009-01-03 11:05:45.828
Media Recovery drop redo thread 1
Completed 11g Parallel Media Recovery
Starting in-flux buffer recovery from SCN 0.92413878 to SCN (non-inclusive) 0.92419435
*** 2009-01-03 11:05:46.265
Influx Media Recovery add redo thread 1
*** 2009-01-03 11:05:47.531
*** 2009-01-03 11:05:47.531 1295 krsm.c
Managed Recovery: Not Active posted.
ORA-00600: internal error code, arguments: [3012], [5], [131], [0], [92421891], [0], [92413878], []
ORA-00600: internal error code, arguments: [3012], [5], [131], [0], [92421891], [0], [92413878], []
error 473 detected in background process
OPIRIP: Uncaught error 447. Error stack:
ORA-00447: fatal error in background process
ORA-00600: internal error code, arguments: [3012], [5], [131], [0], [92421891], [0], [92413878], []
could you help on this...?
waiting for your favorable reply,
thanks in advance..
RegardsHi;
This error occurs when you have run a switchover/ failover, you may have two parallel standby's but when you pass the command for switchover the one standby is not aware of what you have done.
The point is that all standby should know who is your primary & standby's should also be aware of each other in their "pfiles" now, you should either recreate the standby or open with reset logs.
ora-600 occurs due to different incarnation.
Hope this will help you
if you switch multiple logfiles in primary, & run >>
alter database recover managed standby database disconnect;
your standby will start syncing.
Hope this will help you -
Hello,
I am using the PXIe-4139 SMU to source a current sequence that starts when a trigger is received and takes about 40 seconds to complete.
After the niDCPower Initiate VI I have inserted the niDCPower Wait For Event VI with a timeout set to 300 seconds to allow for enough time to receive the trigger and complete the sequence. This VI waits for the Sequence Engine Done Event.
Now this works fine, however, when the user wishes to stop the programm for whatever reasons, they have to wait the full 300 seconds until the Wait For Event VI produces a timeout error and stops the programm. This is rather inconvenient. How can I change the programm so that the user can stop it even when the Wait For Event VI hasn't reached its timeout?
I tried this:
But this doesn't work. For some reason, I get a timeout error with code -200474 but the boolean operator returns FALSE.
Any other ideas?If there an output on the wait for event VI that flags a timeout? If so, set the timeout short (like 100 msec) and wait for 3000 timeouts before continuing on.
Oh, and use an event structure. Timeout event (timeout=0) checks the wait for event, value change event for button breaks out of loop.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps -
RMAN Restore Error - media recovery requesting unknown log: thread 1 seq 7
Im using RMAN to copy a database to another server. The new server is IDENTICAL to the old one. By identical I mean it has the same sever name, ip address, operating system, Oracle version and directory structure.
The new server already has the instance created, (same name as the old server instance, paths etc)
The backup files have been manually restored to the new server, same locations as they were on the old one. ( RMAN did an automatic controlfile backup and also the archivelogs on the old server ).
Ive restored the control file on the new server from the RMAN backup pieces.
Ive catalogued the RMAN backup pieces on the new server.
I know the last sequence available in the archivelogs backup by running on the new server :
list backup of archivelog all;
List of Backup Sets
===================
BS Key Size Device Type Elapsed Time Completion Time
5 14.43M DISK 00:00:03 11-MAY-11
BP Key: 9 Status: AVAILABLE Compressed: NO Tag: TAG20110511T163502
Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\
011_05_11\O1_MF_ANNNN_TAG20110511T163502_6WOC5833_.BKP
List of Archived Logs in backup set 5
Thrd Seq Low SCN Low Time Next SCN Next Time
1 2 550217 10-MAY-11 556559 11-MAY-11
1 3 556559 11-MAY-11 559776 11-MAY-11
1 4 559776 11-MAY-11 560093 11-MAY-11
1 5 560093 11-MAY-11 560794 11-MAY-11
BS Key Size Device Type Elapsed Time Completion Time
7 15.50K DISK 00:00:01 11-MAY-11
BP Key: 10 Status: AVAILABLE Compressed: NO Tag: TAG20110511T163653
Piece Name: C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\
011_05_11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_.BKP
List of Archived Logs in backup set 7
Thrd Seq Low SCN Low Time Next SCN Next Time
1 6 560794 11-MAY-11 560851 11-MAY-11
So far its all going swimmingly well.
Now I want to restore the datafiles and recover. So I ran :
RMAN run { restore database; recover database; alter database open resetlogs; }
This gave me the output below which goes great but I get a final error, I think the error is because its looking for an archive log thats not in the backup set, but it should be. However, I think SCN 560851 is for a log that hadnt been created yet on the old server when the backup was ran ?
How do I address resolving the error ? Its worth pointing out log, "archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG
\2011_05_11\O1_MF_1_6_6WOK1X4W_.ARC recid=10 stamp=750881741" isnt on the old server either which is why its not in the backup set.
I can do a alter database open reset logs but Id prefer to know why its failing.
Any help would be much appreciated.
RMAN> run { restore database; recover database; alter database open resetlogs; }
Starting restore at 11-MAY-11
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backupset restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
restoring datafile 00001 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\SYSTEM01.DBF
restoring datafile 00002 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\UNDOTBS01.DBF
restoring datafile 00003 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\SYSAUX01.DBF
restoring datafile 00004 to C:\ORACLE\PRODUCT\10.2.0\ORADATA\SAT\USERS01.DBF
channel ORA_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\FLASH_REC
OVERY_AREA\SAT\BACKUPSET\2011_05_11\O1_MF_NNNDF_TAG20110511T163507_6WOC5CM7_.BKP
channel ORA_DISK_1: restored backup piece 1
piece handle=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\2011_05_
11\O1_MF_NNNDF_TAG20110511T163507_6WOC5CM7_.BKP tag=TAG20110511T163507
channel ORA_DISK_1: restore complete, elapsed time: 00:00:55
Finished restore at 11-MAY-11
Starting recover at 11-MAY-11
using channel ORA_DISK_1
starting media recovery
channel ORA_DISK_1: starting archive log restore to default destination
channel ORA_DISK_1: restoring archive log
archive log thread=1 sequence=6
channel ORA_DISK_1: reading from backup piece C:\ORACLE\PRODUCT\10.2.0\FLASH_REC
OVERY_AREA\SAT\BACKUPSET\2011_05_11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_.BKP
channel ORA_DISK_1: restored backup piece 1
piece handle=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\BACKUPSET\2011_05_
11\O1_MF_ANNNN_TAG20110511T163653_6WOC8PMP_.BKP tag=TAG20110511T163653
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG
\2011_05_11\O1_MF_1_6_6WOK1X4W_.ARC thread=1 sequence=6
channel default: deleting archive log(s)
archive log filename=C:\ORACLE\PRODUCT\10.2.0\FLASH_RECOVERY_AREA\SAT\ARCHIVELOG
\2011_05_11\O1_MF_1_6_6WOK1X4W_.ARC recid=10 stamp=750881741
unable to find archive log
archive log thread=1 sequence=7
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 05/11/2011 18:15:42
RMAN-06054: media recovery requesting unknown log: thread 1 seq 7 lowscn 560851
RMAN>
Edited by: user12173666 on 11-May-2011 10:28You need to do incomplete recovery i.e. to ask RMAN to restore/recover to some specific point in time. This is usually done with some UNTIL clause or SET UNTIL statement. Example in your case:
SET UNTIL SEQUENCE 7;See http://download.oracle.com/docs/cd/B19306_01/backup.102/b14194/rcmsynta065.htm#RCMRF160. -
Media movement for ... waiting for input since...
Hi, guys!
*1. I created rotation policy:*
ob> lsrot -l
rp_test:
Rotation rule 1: vl_test : windowclosed : 15 minutes
Rotation rule 2: test_offsite : expiration : disabled
UUID: e915b170-5416-102e-b112-000b5df3a54e
*2. and seted vaulting policy:*
ob> lsp vaulting/autorunmmjobs
autorunmmjobs yes
but I don't want what to do after vaulting )
ob> lsj
Job ID Sched time Contents State
4 none media movement for vl_test waiting for input since 2011/04/29.11:38
ob> catxcr --tail 25 4
2011/04/29.11:38:54 ______________________________________________________________________
2011/04/29.11:38:54
2011/04/29.11:38:54 Transcript for job 4 running on dbsora98
2011/04/29.11:38:54
2011/04/29.11:38:54 Processing media movement requests for location vl_test
2011/04/29.11:38:54 Considering volumes:
2011/04/29.11:38:54 mf_test-000001 (b927cfe85411102ab8e000b5df3a54e)
2011/04/29.11:38:54 Processing volume mf_test-000001 (b927cfe85411102ab8e000b5df3a54e)
2011/04/29.11:38:54 go .. volume movement completed, continue
2011/04/29.11:38:54 goall .. all volume movement completed for this job
2011/04/29.11:38:54 quit .. give up and abort this media movement
2011/04/29.11:38:54 : 2011/04/29.11:41:39
2011/04/29.11:41:39 :
ob> lsv -l -v mf_test-000001
Volume OID: 104
Volume ID: mf_test-000001
Barcode: b927cfe85411102ab8e000b5df3a54e
Volume sequence: 1
Media family: mf_test
Rotation policy: rp_test
Current location: vl_test
Label host: dbsora98
Created: 2011/04/29.10:53
Closes: 2011/04/29.11:23 (closed)
Expires: 2011/04/29.11:53
Space remaining: none
Original OID: 104
What does mean this message? I must do something to continue job. Is it possible to automate this?Your robot musn't be correctly ejecting the media to a loadport.
Do you see loadports available from obtool lsvol -l -L vtl_test ?
Thank
Rich
Maybe you are looking for
-
How do i get my hole itunes library to my new mac
i bought match hooping it would move all my song from my air to y new mac but it did not? why is this?
-
I want 2 do a report for which shd give me menu path if i give text or short desription of any standard report.. i dont want 2 use se43 transaction directly!!!!!!!!!!!!! plz can anybdy give me idea? Thanks in advance satya
-
Partial release of inspection lots
Dear Gurus, I am a PP guy and the business has a requirement in QM. At present QM is used only for raw material incoming inspection. Once you do MIGO automatically inspection lot gets created and the Quality team releases the entire lot using QA16 t
-
Text area not displaying all rows
I have a SQL query as the source for a text field that returns several rows. However, the text area (display as text (do not save state)) only displays the data from the first row in the query. How do I get the rest as well?
-
Unable to connect XL Reporter in 2007 B
Hi Experts, I'm facing a problem in XL Reporter as whenever I click on Tools-XL Reporter, I get an error message as Unable to connect XL Reporter Error! User Authentication Failed Cause: Invalid use of Null I've upgraded from 2005 B to 2007 B and dat