How to apply archivelog with gap on standby database
Hi All,
Oracle Database version : 9.2.0.6
Following is my sequence of commands on standby database.
SQL>alter database mount standby database;
SQL> RECOVER AUTOMATIC STANDBY DATABASE UNTIL CHANGE n;
ORA-00279: change 809120216 generated at 07/24/2006 09:55:03 needed for thread
1
ORA-00289: suggestion : D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC
ORA-00280: change 809120216 for thread 1 is in sequence #19921
ORA-00278: log file 'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC' no longer
needed for this recovery
ORA-00308: cannot open archived log
'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC'
ORA-27041: unable to open file
OSD-04002: unable to open file
O/S-Error: (OS 2) The system cannot find the file specified.
I have check the last sequence# on standby database which is 19921. And I have archivelog starting from sequence# 20672 onwards. When I am trying to apply archive log starting from sequence# 20672 , it is searching for 'D:\ORACLE\ADMIN\TEST\ARCH\TEST001S19921.ARC' file and cancel the recovery. Please note that I don't have those missing archive on Primary server as well. So How can I apply the remaining archive log which I do have from 20672 onwards.
I hope I am not creating any confusion.
Thx in advance.
Hi Aijaz,
Thx for your answer. But my scenario is bit complex. I have checked my standby database status which is not running in recovery mode. I have tried to find archive_gap which is 0 on standby server. I am copying all archived log from primary to standby thru the script every 2 hour and appying them on standby. After applying, the script is removing all applied log files from primary as well as standby. So it is something like I have archivelog from 1,2,3,7,8,9,10. So 4,5 and 6 archivelog are missing which is required when I am trying to recover standby database. Also note that I want to apply 7,8,9,10. I will loose some data from those missing archive but I have cold back any way. I don't have those missing archivelog files(4,5 and 6) anywhere at all. So how can I recover standby database. I am using standby just for the backup purpose.
I hope my question is clear now.
Thx in advance
- Mehul
Similar Messages
-
How to apply the changes in logical standby database
Hi,
I am new to Dataguard. I am now using 10.2.0.3 and followed the steps from Oracle Data Guard Concepts and Administration Guide to setup a logical standby database.
When I insert a record to a table from the primary database side, when i query the same table from the logical standby database, it doesn't show the new records.
Did I miss something? What I want to do is when I insert a record in the primary db, then the corresponding record will be inserted in the standby db.
Or I totally misunderstand what Oracle data guard is? Any help are appreciated.
DenisHi
Can anyone help to answer me is my logical standby db have a archive gap?
SQL> SELECT APPLIED_SCN, APPLIED_TIME, READ_SCN, READ_TIME, NEWEST_SCN, NEWEST_T
IME FROM DBA_LOGSTDBY_PROGRESS;
APPLIED_SCN APPLIED_TIME READ_SCN READ_TIME NEWEST_SCN
NEWEST_TIME
851821 29-JUL -08 17:58:29 851822 29-JUL -08 17:58:29 1551238
08-AUG -08 08:43:29
SQL> select pid, type, status, high_scn from v$logstdby;
no rows selected
SQL> alter database start logical standby apply;
Database altered.
SQL> select pid, type, status, high_scn from v$logstdby;
PID
TYPE
STATUS HIGH_SCN
2472
COORDINATOR
ORA-16116: no work available
3380
READER
ORA-16127: stalled waiting for additiona 852063
l transactions to be applied
2480
BUILDER
ORA-16116: no work available
2492
ANALYZER
ORA-16111: log mining and apply setting
up
2496
APPLIER
ORA-16116: no work available
2500
APPLIER
ORA-16116: no work available
3700
APPLIER
ORA-16116: no work available
940
APPLIER
ORA-16116: no work available
2504
APPLIER
ORA-16116: no work available
9 rows selected.
Thanks a lot.
Message was edited by:
Denis Chan -
How to change COMPATIBLE with a physical standby database?
Hello.
The obvious answer is do it on both the primary and the standby at the same time... since the reference manual says : "When using a standby database, this parameter must have the same value on both the primary and standby databases.".
However, I was wondering, I have a 10.2.0.3 DB with compatible=9.2.0.5. What will happen if I leave the parameter to 9.2.0.5 on the standby and just make the change to 10.2.0.3 on the primary? Would I be able to continue to apply the logs on the physical standby? Would I be able to open it ? (I understand that the transport won't probably work anymore and that I won't be able to switchover)
I guess those 2 questions are stupid but I haven't found any clear statement yet.
Please stay tolerant. Thank you.
Gregory
PS: I know what are the alternatives.So the answer is obviously: We cannot do that. That completely makes sense btw. I tried with 10.2.0.1 to 10.2.0.4 and I got:
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 10/22/2008 18:35:55
RMAN-11003: failure during parse/execution of SQL statement: alter
database recover logfile '/u01/app/oracle/oradata/WHITE/redo02.log'
ORA-00331: log version 10.2.0.4.0 incompatible with ORACLE version 10.2.0.1.0
ORA-00334: archived log: '/u01/app/oracle/oradata/WHITE/redo02.log'
I should have think about it before I asked. That would have meant we could revert the database from 10g to 9i any time... And the bootstrap changes are not stored in the redo log...
Gregory -
How to apply Oracle patch when physical standby database in place
Dear All,
I want to apply Oracle patchset 8 on 10.2.0.5 when physical standby database in place. What are the steps for Primary site and for standby site.
Thanks in advance
Kamran LaeeqHi Kamran,
You will not upgrade or patch the standby database by importing offline redologs. On the contrary, there is a procedure to do this. Please note that you will not transitiate the role from standby to primary or startup the database. You will just startup the database by executing "startup mount" and "startup upgrade", during the upgrade. It means that you will not change database role standby to primary and you will be able to continue to the log shipment after the respective upgrade.
But, it is very important that you should stop the log shipment and apply all the offline redologs, before the upgrade. Technically, you can import offline redologs after the upgrade, by changing "compatibility" parameter in oracle, but regarding to my experiences it may cause some problems after you transitiate the role from standby to primary.
In short;
In order to stop log shipment, at the primary site;
alter system set log_archive_dest_state_2=defer;
In order to import all the offline redologs without a delay, at the standby site;
alter database recover managed standby database cancel;
alter database recover managed standby database nodelay disconnect from session;
I hope that I clarified the issue,
Best regards,
Orkun Gedik -
Apply all ArchiveLogs manually to the Standby Database
Hi,
we can create a Physical Standby Database on Standard Edition, but we have to transfer and apply all ArchiveLogs manually to the Standby Database. How can we do this ?
many thanksThank you, but I opened a SR and asked :
1-can we install DATAGUARD (Primary and Standby) with STANDARD edition ?
many thanks.
they answered :
DataGuard is not available with Standard Edition. You need to have the Enterprise Edition in
stalled on the Primary and Standby Host. The Standard Edition only provides basi
c Standby Database without Log Transport and Log Apply Services. So you can create a Physical Standby Database on Standard Edition, but you have to transfer and apply all ArchiveLogs manually to the Standby Database.
that's why I asked you the question.
What is the exact synatx for recover database using backup control file please ?
Thanks again. -
Different archivelog destination on physical standby database
Hi,
Can I set different archivelog destination for physical standby database in duplicate command? (Due to space problem ) How can I do it?
For ex. on primary site archivelogs reside in /u01/ORCL/archivelog, and I want on phy. standby side archive dest. under /u08/ORCL/archivelog.Even you can give LOG_ARCHIVE_DEST_1 in standby init file, So whenever you start standby/auxiliary instance automatically the dest_1 will refer to /u08/orcl(whereever you want). So you can have archive destination any where but should have proper permissions and location should be available.
If you want to assign one by one destinations, then still you can use "ALTERNATE" clause so that when the primary location unavailable or unable to archive, then of course it writes into alternate location you have specified from pfile.
You can check this
http://docs.oracle.com/cd/B28359_01/server.111/b28294/log_arch_dest_param.htm#i91817 -
10g Primary database work with a 11g Standby database
Can a 10g Primary database work with a 11g Standby database?
The existing database is Oracle 10g and I don't want to upgrade it. But I really need the Real-time Query feature of 11g Physical Standby Database.
Can they work together?Hi,
do you have any proof?
I never find any proof in Oracle Docs.Kindly refer to doc's and check things it states Primary and Standby Servers Versions must be same - similar to that you can find very much clear. That is more than enough for proof else Test it you will find your self...;-).
- Pavan Kumar N
Oracle 9i/10g - OCP
http://oracleinternals.blogspot.com/ -
How to delete archivelog with RMAN in the Primary and Standby database?
Hello,
I am working on Oracle 10gR2.
My question is :
How could I implement a automatized and secure way of:
1) Delete archivelogs on my PRIMARY server only when these logs are successfully TRANSFERED to all my standby databases?
2) Delete archivelogs on my STANDBY server only when these logs are sucessfully APPLIED to the database?
Thanks a lot for your help!on 10G
CONFIGURE ARCHIVELOG DELETION POLICY TO [CLEAR | NONE | APPLIED ON STANDBY];
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/rman.htm#CHDBEICE
Coskan Gundogar
http://coskan.wordpress.com -
How to Perform Failover When GAP on Standby
hi ,
i want to activate my standby in read/write
but i can't..i don't have archivelogs and i can't restore standby from incremental backup
ALTER DATABASE ACTIVATE STANDBY DATABASE
ALTER DATABASE ACTIVATE [PHYSICAL] STANDBY DATABASE (work)
Begin: Standby Redo Logfile archival
End: Standby Redo Logfile archival
Signalling error 1152 for datafile 1!
Beginning standby crash recovery.
Serial Media Recovery started
Managed Standby Recovery starting Real Time Apply
Media Recovery Waiting for thread 1 sequence 1174115
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Sat Nov 17 17:07:09 2012
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Sat Nov 17 17:07:19 2012
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Sat Nov 17 17:07:29 2012
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Sat Nov 17 17:07:39 2012
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Sat Nov 17 17:07:50 2012
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Sat Nov 17 17:08:00 2012
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Standby crash recovery need archive log for thread 1 sequence 1174115 to continue.
Please verify that primary database is transporting redo logs to the standby database.
Wait timeout: thread 1 sequence 1174115
Standby crash recovery aborted due to error 16016.
Errors in file /oracle/diag/rdbms/b2resnew/work/trace/work_ora_36176058.trc:
ORA-16016: archived log for thread 1 sequence# 1174115 unavailable
Recovery interrupted!
Completed standby crash recovery.
Signalling error 1152 for datafile 1!
ORA-1152 signalled during: ALTER DATABASE ACTIVATE STANDBY DATABASE...
Sat Nov 17 17:08:12 2012
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH
Attempt to do a Terminal Recovery (work)
Media Recovery Start: Managed Standby Recovery (work)
started logmerger process
Sat Nov 17 17:08:12 2012
Managed Standby Recovery not using Real Time Apply
Parallel Media Recovery started with 32 slaves
Media Recovery Waiting for thread 1 sequence 1174115
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
RECOVER...FINISH not allowed due to gap
GAP - thread 1 sequence 1174115-1174214
DBID 3179924020 branch 606674959
Recovery interrupted!
Media Recovery failed with error 16171
Errors in file /oracle/diag/rdbms/b2resnew/work/trace/work_pr00_37421192.trc:
ORA-00283: recovery session canceled due to errors
ORA-16171: RECOVER...FINISH not allowed due to gap for thr 1, seq 1174115-1174214
Slave exiting with ORA-283 exception
Errors in file /oracle/diag/rdbms/b2resnew/work/trace/work_pr00_37421192.trc:
ORA-00283: recovery session canceled due to errors
ORA-16171: RECOVER...FINISH not allowed due to gap for thr 1, seq 1174115-1174214
ORA-10877 signalled during: ALTER DATABASE RECOVER MANAGED STANDBY DATABASE FINISH ...
SQL> ALTER DATABASE ACTIVATE STANDBY DATABASE;
ALTER DATABASE ACTIVATE STANDBY DATABASE
ERROR at line 1:
ORA-01152: file 1 was not restored from a sufficiently old backup
ORA-01110: data file 1: '/oradata/ctrl/system01.dbf'
SQL> RECOVER MANAGED STANDBY DATABASE FINISH
ORA-10877: error signaled in parallel recovery slave
SQL>
how open my physical standby in rw?
thanksCKPT hi.
Do you have Broker enabled?
yes.now i disabled.
+1174115 I do not have+
Sat Nov 17 18:17:13 2012
Completed: Data Guard Broker shutdown
Sat Nov 17 18:17:14 2012
ALTER SYSTEM SET dg_broker_start=FALSE SCOPE=BOTH;
Sat Nov 17 18:17:27 2012
ALTER DATABASE RECOVER managed standby database cancel
ORA-16136 signalled during: ALTER DATABASE RECOVER managed standby database cancel ...
Sat Nov 17 18:17:45 2012
alter database activate standby database
ALTER DATABASE ACTIVATE [PHYSICAL] STANDBY DATABASE (work)
Begin: Standby Redo Logfile archival
End: Standby Redo Logfile archival
Signalling error 1152 for datafile 1!
Beginning standby crash recovery.
Serial Media Recovery started
Managed Standby Recovery starting Real Time Apply
Warning: Datafile 87 (/oradata/data/b2_data75.dbf) is offline during full database recovery and will not be recovered
Media Recovery Waiting for thread 1 sequence 1174115
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Sat Nov 17 18:17:55 2012
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Sat Nov 17 18:18:06 2012
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Sat Nov 17 18:18:16 2012
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Sat Nov 17 18:18:26 2012
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Sat Nov 17 18:18:36 2012
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Sat Nov 17 18:18:47 2012
Fetching gap sequence in thread 1, gap sequence 1174115-1174214
Standby crash recovery need archive log for thread 1 sequence 1174115 to continue.
Please verify that primary database is transporting redo logs to the standby database.
Wait timeout: thread 1 sequence 1174115
Standby crash recovery aborted due to error 16016.
Errors in file /oracle/diag/rdbms/b2resnew/work/trace/work_ora_37617862.trc:
ORA-16016: archived log for thread 1 sequence# 1174115 unavailable
Recovery interrupted!
Completed standby crash recovery.
Signalling error 1152 for datafile 1!
ORA-1152 signalled during: alter database activate standby database...
SQL> select TS#,STATUS,ENABLED,file# from v$datafile order by status;
TS# STATUS ENABLED FILE#
6 ONLINE READ WRITE 66
6 ONLINE READ WRITE 67
6 ONLINE READ WRITE 68
6 ONLINE READ WRITE 69
6 ONLINE READ WRITE 70
6 ONLINE READ WRITE 71
6 ONLINE READ WRITE 72
6 ONLINE READ WRITE 73
6 ONLINE READ WRITE 74
6 ONLINE READ WRITE 75
6 ONLINE READ WRITE 76
6 ONLINE READ WRITE 77
6 ONLINE READ WRITE 78
6 ONLINE READ WRITE 79
6 ONLINE READ WRITE 80
6 ONLINE READ WRITE 81
6 ONLINE READ WRITE 82
6 ONLINE READ WRITE 83
6 ONLINE READ WRITE 84
6 ONLINE READ WRITE 85
6 ONLINE READ WRITE 86
1 ONLINE READ WRITE 2
3 ONLINE READ WRITE 3
4 ONLINE READ WRITE 4
5 ONLINE READ WRITE 5
6 ONLINE READ WRITE 6
7 ONLINE READ WRITE 7
8 ONLINE READ WRITE 8
9 ONLINE READ WRITE 9
6 ONLINE READ WRITE 10
6 ONLINE READ WRITE 11
1 ONLINE READ WRITE 12
6 ONLINE READ WRITE 13
6 ONLINE READ WRITE 14
6 ONLINE READ WRITE 15
1 ONLINE READ WRITE 16
6 ONLINE READ WRITE 17
6 ONLINE READ WRITE 18
6 ONLINE READ WRITE 19
6 ONLINE READ WRITE 20
6 ONLINE READ WRITE 21
6 ONLINE READ WRITE 22
6 ONLINE READ WRITE 23
6 ONLINE READ WRITE 24
6 ONLINE READ WRITE 25
7 ONLINE READ WRITE 26
6 ONLINE READ WRITE 27
10 ONLINE READ WRITE 28
6 ONLINE READ WRITE 29
6 ONLINE READ WRITE 30
6 ONLINE READ WRITE 31
6 ONLINE READ WRITE 32
6 ONLINE READ WRITE 33
6 ONLINE READ WRITE 34
6 ONLINE READ WRITE 35
6 ONLINE READ WRITE 36
6 ONLINE READ WRITE 37
6 ONLINE READ WRITE 38
6 ONLINE READ WRITE 39
6 ONLINE READ WRITE 40
6 ONLINE READ WRITE 41
6 ONLINE READ WRITE 42
6 ONLINE READ WRITE 43
6 ONLINE READ WRITE 44
6 ONLINE READ WRITE 45
6 ONLINE READ WRITE 46
6 ONLINE READ WRITE 47
6 ONLINE READ WRITE 48
6 ONLINE READ WRITE 49
6 ONLINE READ WRITE 50
6 ONLINE READ WRITE 51
6 ONLINE READ WRITE 52
6 ONLINE READ WRITE 53
6 ONLINE READ WRITE 54
6 ONLINE READ WRITE 55
6 ONLINE READ WRITE 56
6 ONLINE READ WRITE 57
6 ONLINE READ WRITE 58
6 ONLINE READ WRITE 59
6 ONLINE READ WRITE 60
6 ONLINE READ WRITE 61
6 ONLINE READ WRITE 62
6 ONLINE READ WRITE 63
6 ONLINE READ WRITE 64
6 ONLINE READ WRITE 65
6 RECOVER READ WRITE 87
6 RECOVER READ WRITE 88
0 SYSTEM READ WRITE 1
88 rows selected.
SQL>
how i can remove "RECOVER" in mount state ? -
How to delete the foreign archivelogs in a Logical Standby database
How do I remove the foreign archive logs that are being sent to my logical standby database. I have files in the FRA of ASM going back weeks ago. I thought RMAN would delete them.
I am doing hot backups of the databases to FRA for both databases. Using ASM, FRA, in a Data Guard environment.
I am not backing up anything to tape yet.
The ASM FRA foreign_archivelog directory on the logical standby FRA keeps growing and nothing is get deleted when
I run the following command every day.
delete expired backup;
delete noprompt force obsolete;
Primary database RMAN settings (Not all of them)
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 9 DAYS;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE DB_UNIQUE_NAME 'WMRTPRD' CONNECT IDENTIFIER 'WMRTPRD_CWY';
CONFIGURE DB_UNIQUE_NAME 'WMRTPRD2' CONNECT IDENTIFIER 'WMRTPRD2_CWY';
CONFIGURE DB_UNIQUE_NAME 'WMRTPRD3' CONNECT IDENTIFIER 'WMRTPRD3_DG';
CONFIGURE ARCHIVELOG DELETION POLICY TO APPLIED ON ALL STANDBY;
Logical standby database RMAN setting (not all of them)
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 9 DAYS;
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default
How do I cleanup/delete the old ASM foreign_archivelog files?OK, the default is TRUE which is what it is now
from DBA_LOGSTDBY_PARAMETERS
LOG_AUTO_DELETE TRUE SYSTEM YES
I am not talking about deleting the Archive logs files for the Logical database that it is creating, but the Standby archive log files being sent to the Logical Database after they have been applied.
They are in the alert log as follows under RFS LogMiner: Registered logfile
RFS[1]: Selected log 4 for thread 1 sequence 159 dbid -86802306 branch 763744382
Thu Jan 12 15:44:57 2012
*RFS LogMiner: Registered logfile [+FRA/wmrtprd2/foreign_archivelog/wmrtprd/2012_01_12/thread_1_seq_158.322.772386297] to LogM*
iner session id [1]
Thu Jan 12 15:44:58 2012
LOGMINER: Alternate logfile found. Transition to mining archived logfile for session 1 thread 1 sequence 158, +FRA/wmrtprd2/
foreign_archivelog/wmrtprd/2012_01_12/thread_1_seq_158.322.772386297
LOGMINER: End mining logfile for session 1 thread 1 sequence 158, +FRA/wmrtprd2/foreign_archivelog/wmrtprd/2012_01_12/threa
d_1_seq_158.322.772386297
LOGMINER: Begin mining logfile for session 1 thread 1 sequence 159, +DG1/wmrtprd2/onlinelog/group_4.284.771760923 -
Applying cpu with a physical standby in place - 11g
187242.1 covers this wrt 9i. Is this topic covered for 11g specifics somewhere? Can't google/metal ink it anywhere. Thanks.
The "readme" for Patch 9369783 (which covers the AprilCPU for our 11.1.0.7 HPUX-IA64 environment) includes this short reference to DataGuard:
If you are using a Data Guard Physical Standby database, you must first install this patch on the primary database before installing the patch on the physical standby database. It is not supported to install this patch on the physical standby database before installing the patch on the primary database. For more information, see My Oracle Support Note 278641.1.
When checking that note 278641.1 we see that it also appears to only cover 10.2. Although this note has more detail, it is clearly the same procedure as discussed in 813445.1. Therefore, the conclusion that I make is: OPatch works exactly the same with DataGuard in 11g as it did in 10g.
We will be upgrading our DataGuard enviornment to 11g in one-month. At this point, I am completely expecting our OPatch procedures to remain unchanged from what we have done for years with 9i and 10g. I would also note that the upgrade procedures we have tested (involving DG from 10.2.0.4 to 11.1.0.7) are nearly identical to the above mentioned support notes.
Hope that helps,
Stan -
Archivelog Source Directory in Standby Database
Hi Guys
I created a standby database yesterday and everything is working correctly. I need to make some tweaks, however, and one of those is the directory that the standby database expects the archivelogs to be.
I found that the archivelogs were being shipped to $ORACLE_HOME/dbs and named arch*.arc. Interestingly a log switch ships the archivelog minus the "arch" at the front and all archivelogs now do not have that format.
I moved the archivelogs to the correct location and renamed them. I have been able to set the correct location using standby_archive_dest and can see that the archivelogs are shipped to there. Also, v$archived_log shows the correct path and filename.
The problem I have is that when I come to apply the archivelogs it still seems to think that they should be in $ORACLE_HOME/dbs and named with "arch" at the front. Can someone please tell me what parameter I need to change to tell oracle the correct path and filename to use when applying the archivelogs?
Thanks
SimonHi saurabh
I am using the spfile/pfile created by the rman duplicate command.
Yes, the log_archive_dest_1 and 2 parameters are set.
This is the spfile from the standby server:
TAPSPROD.__db_cache_size=570425344
TAPSDR.__db_cache_size=1191182336
TAPSPROD.__java_pool_size=33554432
TAPSDR.__java_pool_size=16777216
TAPSPROD.__large_pool_size=16777216
TAPSDR.__large_pool_size=16777216
TAPSPROD.__oracle_base='/opt/oracle'#ORACLE_BASE set from environment
TAPSDR.__oracle_base='/opt/oracle'#ORACLE_BASE set from environment
TAPSPROD.__pga_aggregate_target=4831838208
TAPSDR.__pga_aggregate_target=4831838208
TAPSPROD.__sga_target=1610612736
TAPSDR.__sga_target=1610612736
TAPSPROD.__shared_io_pool_size=0
TAPSDR.__shared_io_pool_size=0
TAPSPROD.__shared_pool_size=956301312
TAPSDR.__shared_pool_size=369098752
TAPSPROD.__streams_pool_size=16777216
TAPSDR.__streams_pool_size=0
*.audit_file_dest='/opt/oracle/admin/TAPSDR/adump'
*.audit_trail='NONE'
*.compatible='11.2.0.0.0'
*.control_files='/opt/oracle/admin/TAPSDR/controlfiles/1/control.TAPSDR.01.ctl','/opt/oracle/admin/TAPSDR/controlfiles/2/control.TAPSDR.02.ctl','/opt/oracle/admin/TAPSDR/controlfiles/3/control.TAPSDR.03.ctl'
*.db_block_size=8192
*.db_create_file_dest='+TAPSDATA'
*.db_create_online_log_dest_1='/opt/oracle/admin/TAPSDR/redologs/1'
*.db_create_online_log_dest_2='/opt/oracle/admin/TAPSDR/redologs/2'
*.db_create_online_log_dest_3='/opt/oracle/admin/TAPSDR/redologs/3'
*.db_create_online_log_dest_4='/opt/oracle/admin/TAPSDR/redologs/4'
*.db_domain=''
*.db_flashback_retention_target=2880
*.db_name='TAPSPROD'
*.db_recovery_file_dest_size=4070572032
*.db_recovery_file_dest='+TAPSDATA'
*.db_unique_name='TAPSDR'
*.diagnostic_dest='/opt/oracle/diag/'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=TAPSDRXDB)'
*.event=''
*.fal_client='TAPSDR'
*.fal_server='TAPSPROD'
*.job_queue_processes=10
*.log_archive_config='dg_config=(TAPSPROD,TAPSDR)'
*.log_archive_dest_1='LOCATION=/opt/oracle/rman/sbvx10603/TAPSDR/archivelog VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=TAPSPROD'
*.log_archive_dest_2='service=TAPSPROD ASYNC valid_for=(ONLINE_LOGFILE,PRIMARY_ROLE) db_unique_name=TAPSPROD'
*.log_archive_format='%t_%s_%r.arc'
*.log_archive_max_processes=5
*.open_cursors=300
*.pga_aggregate_target=4831838208
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.sga_target=1610612736
*.smtp_out_server='localhost:25'
*.standby_archive_dest='/opt/oracle/rman/sbvx10603/TAPSDR/archivelog'
*.standby_file_management='AUTO'
*.undo_tablespace='TBS_UNDO' -
Applying archivelogs to test disaster recovery database
Database: 10.2.0.2
OS: RHEL
Goal: (1) To test the ability to rebuild a database using backupset and archivelogs.
(2) To roll forward the test DR database by applying archivelogs from the production database.
I am using rman but not a catalog.
I restored and recovered the production database to a new, separate server, making a second database with the same DBID. I felt proud of myself for a moment.
The production database now has archivelogs past the time of the backup that was restored and recovered to the test DR database. In a simulated production database failure, I want to apply those archivelogs to the DR database in order to roll forward the DR database to the point of failure in the production database. Everyone except me seems to know how to do this. I feel a lot less proud now.
Yes I have read the rman manuals, all of them, and several times - yes, I have read through the forums and read asktom and metalink. I must be unintentionally overlooking some crucial info and concepts.
My production database has generated archivelogs passed the last sequence known to my DR database. I don't know how to tell the DR database to recover these new archivelogs.
Another post on this form directs one to use the command: "recover database until cancel". I get a syntax error. So I tried recover until time, which runs, but does not apply the new archivelogs. Must I update the DR database controlfile with a post-last-backup copy from the production database in order to apply these archivelogs? Must a catalog be used?
Thank you for any assistance.What seems to work is:
1) to restore the database using the controlfile from the backup,
2) to issue the command 'alter database recover until cancel using backup control file' from sqlplus,
3) to respond to each ORA-00279 with 'alter database recover continue default' also from sqlplus and until all the archivelogs have been applied, including archivelogs with sequences subsequent to the backup, then 'alter database recover cancel'.
4) to issue the command 'alter database open resetlogs'.
The above steps allow the available archivelogs to roll the database forward beyond the point in time recorded at the time of the hot backup.
Metalink Note:161742.1 was helpful determining this information, yet it seems to conflict with Tom Kyte's statement that one should avoid using the backup controlfile whenever possible: http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:894628342039#29824708782039
Perhaps the conflict is due to the difference between a restore/recovery and a restore/recovery to a new server?
Do the above steps seem to be the best practice for restoring/recovering a database to a new server?
Thank you. -
Apply missing log on physical standby database
How to apply the missing log on physical standby database?
I already registered the missing log and started the recovery process.
Still...having log on standby that has status ..not applied.
SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
SEQUENCE# APP
16018 YES
16019 YES
16020 NO ---------------------> Not applied.
16021 YES
ThanksNot much experience doing this, but according to the 9i doc (http://download-east.oracle.com/docs/cd/B10501_01/server.920/a96653/log_apply.htm#1017352), all you need is properly-configured FAL_CLIENT and FAL_SERVER initialization parameters, and things should take care of themselves automatically. Let us know if that doesn't work for you, we might be able to think of something else.
Daniel -
How will you find out no of standby databases configured for primary database from OS level
How can find the number of standby databases configured for primary database from os level
Check the alert log.
The Alert log will always have Data Guard messages in it.
Example
cd /u01/app/oracle/diag/rdbms/primary/PRIMARY/trace
tail -1700 alert_PRIMARY.log | more
Wed Nov 13 13:35:26 2013
ARC7: Standby redo logfile selected for thread 1 sequence 1164 for destination LOG_ARCHIVE_DEST_2
LNS: Standby redo logfile selected for thread 1 sequence 1165 for destination LOG_ARCHIVE_DEST_2
If you don't see messages like this it's probably not a Data Guard system.
Or search it for :
System parameters with non-default values:
Which on Data Guard system will show things like:
log_archive_dest_1 = "LOCATION=USE_DB_RECOVERY_FILE_DEST VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=PRIMARY"
log_archive_dest_2 = "SERVICE=STANDBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY"
log_archive_dest_state_1 = "ENABLE"
log_archive_dest_state_2 = "ENABLE"
fal_server = "STANDBY"
Best Regards
mseberg
Maybe you are looking for
-
Using apple remote with iTunes 9 and airport express/remote speakers
Hi, Does anyone know why the apple remote will control the hardware volume for the speakers on my mac, but when playing via the airport express connected to remote speakers why doesn't it control the volume slider in iTunes? This would be really usef
-
HT4623 Trying to update my ipad that already has iOS 7 on it to the iOS 7.0.4
Everything i try and download iOS7.0.4 onto my ipad it says error right before it is about to finish. I can't plug it into my computer to update it with iTunes because it is out getting fixed since my macbook pro that is 2 years old won't turn on or
-
Still photos from a video to be used in another program
I am new to iMovie. Is there a way to take a still clip from a video clip and make it into a jpeg or other photo to be used outside of iMovie? If so, what does it get named, and where would I find it to access it from a photo program?
-
Red Light on Promise Pegasus R4v Thunderbolt drive
I was told by Promise to use the promise utility to fix this but I can't install the software downloaded from their site because it says Apple doesn't support it. It didn't come with a disk. Before I go and load all my data on this thing I want to kn
-
My Foxfire quit working (error 404) so I uninstalled it and now when I try to reinstall it, my computer wont let it download. Now what?