Switchover scenario in a cascaded standby setup
Hi,
I have a setup of primary and standby databases in three locations A, B, C as below:
Database version: 11.1.7.0
In location A I have the primary database that ships redo log to a physical standby at location B alone.
In location B I have a physical standby that replicates to site C.
In site C I have the final physical standby that receives its redo logs directly from site B. In essence, this is a cascaded standby database.
My question is about the switchover:
Currently, both the instances in sites A and B have the LOG_ARCHIVE_DEST_3 set to point to site C and this is valid for standby role alone.
Which means in case the two sites - A & B reverse roles, site C will continue receiving redo logs from either A or B, depending on which one is the new standby.
However, the doubt comes in if site C were to become the new primary instance. I suspect that I would need to add two parameters LOG_ARCHIVE_DEST_2 and LOG_ARCHIVE_DEST_3 and point them to sites A and B respectively, and make them valid only for the primary role. In this case, if site C becomes the new primary, then both sites A and B can continue receiving redo logs from site C.
Anyone who has ever implemented this?
Regards,
dula
The scenario in the doc. may also help you:
http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/cascade_appx.htm#i638620
Example E-1 Sample Use of Initialization Parameters in Cascaded Destinations
Boston Database (Primary Role)
DB_UNIQUE_NAME=boston
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
LOG_ARCHIVE_CONFIG='DG_CONFIG=(chicago,boston,denver)'
LOG_ARCHIVE_DEST_1='LOCATION=/arch1/boston/ VALID_FOR=(ALL_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=boston'
LOG_ARCHIVE_DEST_2= 'SERVICE=denver VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE) DB_UNIQUE_NAME=denver'
LOG_ARCHIVE_DEST_3= 'SERVICE=chicago VALID_FOR= (ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=chicago'
Chicago Database (Standby Role)
DB_UNIQUE_NAME=chicago
LOG_ARCHIVE_CONFIG= 'DG_CONFIG=(chicago,boston,denver)'
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
LOG_ARCHIVE_DEST_1= 'LOCATION=/arch1/chicago/ VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=chicago'
LOG_ARCHIVE_DEST_2= 'SERVICE=denver VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE) DB_UNIQUE_NAME=denver'
LOG_ARCHIVE_DEST_3= 'SERVICE=boston VALID_FOR= (ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=boston'
Denver Database (Standby Role)
DB_UNIQUE_NAME=denver
LOG_ARCHIVE_CONFIG= 'DG_CONFIG=(chicago,boston,denver)'
REMOTE_LOGIN_PASSWORDFILE=EXCLUSIVE
LOG_ARCHIVE_DEST_1= 'LOCATION=/arch1/denver/ VALID_FOR=(ONLINE_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=denver'
LOG_ARCHIVE_DEST_2= 'LOCATION=/arch2/denver/ VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE) DB_UNIQUE_NAME=denver'
Both the Boston primary database and the Chicago physical standby database define the LOG_ARCHIVE_DEST_2 initialization parameter as SERVICE=denver VALID_FOR=(STANDBY_LOGFILES, STANDBY_ROLE). Hence, even if the Boston and Chicago databases switch roles, the redo data will continue to be forwarded to the Denver database. Remember, as part of the original setup of the physical standby database, you should define a local destination, VALID_FOR=(ALL_LOGFILES, PRIMARY_ROLE), that will be used for local archiving when the physical standby database transitions to the primary role.
Similar Messages
-
Hi,
I've seen a lot of documentation about cascaded standby setup, but none have defined how to build the second standby. The link below only describes how to configure the second standby for cascaded setup. Can anyone please elavorate how to create the second standby? Should we just build it just like the way we build the first standby, and then configure it as cascaded? OR should we build it using the first standby?
http://emrebaransel.blogspot.com/2010/08/dataguard-cascade-standby-database.html
Primary -> First standbyu -> Second Standby
Edited by: user13489456 on May 28, 2013 4:07 AMuser13489456 wrote:
Hi,
I've seen a lot of documentation about cascaded standby setup, but none have defined how to build the second standby. The link below only describes how to configure the second standby for cascaded setup. Can anyone please elavorate how to create the second standby? Should we just build it just like the way we build the first standby, and then configure it as cascaded? OR should we build it using the first standby?
http://emrebaransel.blogspot.com/2010/08/dataguard-cascade-standby-database.html
Primary -> First standbyu -> Second Standby
Edited by: user13489456 on May 28, 2013 4:07 AMWhat is the version you are using?
Creating another standby is same as how you create first standby database i.e RMAN duplicate/RMAN restore/HOT backup/Cold backup method , Here only configuration changes to configure redo transport and other parameters.
Here you can use either backup of primary or standby, it doesnt make any difference. -
I was following the note 409013.1 to set the Cascading standby. (11.2.0.3 on Linux)
Primary - Boston Standby - Chicago Cascading standby - Denver.
I see that Primary(Boston) is directly transferring the Archive log to Denver ( C-standby). (LOG_ARCHIVE_DEST_2).
Ideally, it should go from the Chicago to Denver. We have a value for (LOG_ARCHIVE_DEST_3) for this as well on Chicago.
I tried the same setup, by deferring the LOG_ARCHIVE_DEST_2, but chicago never casacdes the standby to Denver.
If i stop Denver and restart, it pulls and applies all the pending archives, but never applies the fresh ones.
When i ENABLE dest 3 on primary, it ships directly to denver.
There is no error in any of the alert log,V$MANAGED_STANDBY,v$dataguard_status etc.Hi,
How long did you wait after deferring dest_2?
As per the note,
A cascaded destination will therefore always have a greater redo transport lag, with respect to the primary database, than the cascading standby database.
Check below.
Redo Transport Services
Thank you!! -
Hi All,
Can anyone please throw some light on cascading standby databases, I needed to implement it, but dont have an idea as to how to go ahead with it. All I could find was the following metalink Id: 409013.1. Any help from you guys would be really appreciated.
Thanks,
AjinkyaHi Santosh,
The previous thread was abt one of the issue which I faced and I thought of uodating all about the reason why it happened. This thread was created so that I can gather more info abt cascading standby db, thought both of them are absolutely diff topics to discuss on,hence 2 diff threadsThat's Ok, Ajinkya. My point was, you're facing problem while performing log switch, people were co-operating you and you suddenly concluded that thread without achieving any result. Your thread may be beneficial for others.
My protection mode is maximium performance. ***************************************************************************************
Maximum Performance
This protection mode provides the highest level of data protection that is possible without affecting the performance of a primary database. This is accomplished by allowing transactions to commit as soon as all redo data generated by those transactions has been written to the online log. Redo data is also written to one or more standby databases, but this is done asynchronously with respect to transaction commitment, so primary database performance is unaffected by delays in writing redo data to the standby database(s).
This protection mode offers slightly less data protection than maximum availability mode and has minimal impact on primary database performance.
Reference: http://download.oracle.com/docs/cd/B28359_01/server.111/b28294/protection.htm#CHDDAHJD
N.B.: the above statement is assuming that you're using standby redo logs. If not using SRL then local archiving will happen first and then that archive will be transferred to standby database. Please observe the functioning in the following diagram carefully.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/log_transport.htm#i1265592
Now ,the database following the diagram while transferring the redo data, will slow down the whole system not only the database. Here is the problem, you need to investigate at this point. Are you using any anti-virus which performs blockwise check while write/read? This may result in slow performance. Can you afford disabling your anti-virus for some time and check? :) .
And the general idea of going for cascaded standby was that my primary faces performance issue due to the network latency between the production and DR servers. So instead of my primary hampers till the archives are sent to the remote db, y cant I send those archives to a standby db on LAN, and from there I can send it to the remote server. Example:
A -- My primary
B -- My standby on LAN
C -- My standby on remote destiantion.
So now instead of A sending archives to C, it would send archives first to B which in turn will send it to C. In this way my dependency of A on C reduces which in result doesnt hamper my performance of A. and then B in turn would send the archives to C.
Regards,
AjinkyaThat seems ok to me. the above link is enough for setting up a cascaded setup (It's nothing but cascading the archive destination).
Regards,
S.K. -
Standby setup in 11g R2 RAC to single node
Hi,
How can we setup 11gR2 Standby Setup : Primary Database 2 Node RAC to Standalone Standby Databaseashish wrote:
Hi,
Our requirement is to create single node standby of a 11g R2 RAC 2 node database.To implement there is not much changes in functionality of dataguard, Except some new features like
1) Active dataguard
-- Where you can run MRP even in open status, so that it can be only readable.
2) password file on standby should not be created, it should copy from primary and rename it.
3) from 11g you can perform duplicate from active database without backup.
& so on.
To build a stand alone standby from 2-node RAC, MAA pdf is better one
http://www.oracle.com/technetwork/database/features/availability/maa-wp-10g-racprimaryracphysicalsta-131940.pdf
http://www.oracle.com/technetwork/database/features/availability/twp-dataguard-11gr2-1-131981.pdf
*How to create physical standby database with 11g RMAN DUPLICATE FROM ACTIVE DATABASE [ID 747250.1]* -
Oracle Standby setup for firewall
Hi,
Recently one of my client separated their primary and standby databases with Juniper firewall. After the activity, some primary database servers were unable to ship the archives whereas some of the primary databases were shipping the archives but the archives at standby site getting corrupted.
telnet from both the sides are happening properly.
telnet <ip_address> <listener_port>-----------------------> works fine
My question is:
Is there any recommended setting for Juniper Network firewall, which can be used for Oracle databases?
What are ports which needs to opened for a standby to work? (Apart from opening ports, Is there any other setting which can hinder physical-standby setup)
Regards,Hello;
Make sure SQL ALG is enabled.
"set alg sql ena" to enable it.
Connect Oracle Behind a Firewall
http://forums.juniper.net/t5/ScreenOS-Firewalls-NOT-SRX/oracle-behind-firewall/td-p/23096
Might also be of interest
http://forums.juniper.net/t5/SRX-Services-Gateway/sqlnet-protocol-and-Oracle-10-problems/td-p/34684
Best Regards
mseberg
Edited by: mseberg on May 7, 2012 12:17 PM -
Switchover role transition in a standby configuration
Hi All,
Oracle 10.2.0.1
Linux RHEL 5
Vmware server 2.1
Host Os Windows Xp
I have created a database and configured the standby for it.This is a virtual machine setup.
The current primary database has 3 redologfiles and no standby redologfiles added.And the standby database has the redologfiles same as the primary and 3 standby redologfiles configured just for enabling the real time apply.
Now i am trying to switchover the roles of both the databases.
So i gave the below command in the primary database
sql>alter database commit to switchover to physical standby with session shutdown;
i am getting the below error..
ORA-16416: Switchover target is not synchronized with the primary
When i check the V$archive_gap in standby nothing returns..
I tried to switch logfile in the primary and manually transfered the recent archivelog to the standby location and applied manually, still getting the same error..
Please Advice...
TIA,
Edited by: ORCLDB on Aug 25, 2009 4:41 PM>
The current primary database has 3 redologfiles and no standby redologfiles added.And the standby database has the redologfiles same as the primary and 3 standby redologfiles configured just for enabling the real time apply.
Now i am trying to switchover the roles of both the databases.
So i gave the below command in the primary database
sql>alter database commit to switchover to physical standby with session shutdown;
i am getting the below error..
ORA-16416: Switchover target is not synchronized with the primary
>
You should create the standby logfiles on the primary as well. Also, you must point with the LOG_ARCHIVE_DEST_2 (probably) parameter from the standby to the primary with LGWR SYNC AFFIRM, in order to keep your protection level after the switchover. I would also recommend that you go with the Data Guard Broker in order to do switchover & failover, it's much easier to say
DGMGRL> switchover to sb;And DMON will take care for all the appropriate SQL commands and LOG_ARCHIVE_DEST_n settings!
Kind regards
Uwe
http://uhesse.wordpress.com -
Have i missed any archive log in Standby setup?, im unable to find
Dear All,
I setup standby in Oracle10g.
In my Primary the archive log list shows as
primary>archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination D:\STANDBY\Archive
Oldest online log sequence 30
Next log sequence to archive 32
Current log sequence 32
In my standby the archive log list shows as
standby>archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination C:\PRIMARY\Archive
Oldest online log sequence 31
Next log sequence to archive 0
Current log sequence 32
Have i missed any archive log file?
But in my archive location of the primary i found the archive files from ARC00002_0633898426.001,ARC00003_0633898426.001 to ARC00031_0633898426.001
and in my archive location of the standby i found the archive files from
ARC00002_0633898426.001,ARC00003_0633898426.001 to ARC00031_0633898426.001 and one more extra archive file ARC00032_0633898426.001.
I am getting confused from where i got the archive file ARC00032_0633898426.001 in standby only which is not in primary?
Please clarify this...Please let me know abiut the above issue, i will be thankful to you.
-
Cascading standby database on 9i
Hi,
PrimaryDB -> Archivelog Repository -> Physical Standby.
Archivelog repository is just holding redologs and pushing them to standby. Is this feature available in 9iR2?. I realize that it is available in 10G.
Thanks
RajeshYes, check out the section "Cascaded Redo Log Destinations" in Oracle Data Guard Concepts and Administration in the 9iR2 docs.
-
Switchover between primary RAC and standby single instance
Hello All,
I am using Oracle 11gR2.
I am trying to do a switch over between primary database (RAC 2 nodes) and physical standby (single instance)
If my Primary is single instance i was following the below steps:
On the standby
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT;
On the primary database:
alter database commit to switchover to standby with session shutdown;
shutdown immediate;
startup nomount;
alter database mount standby database;
On the standby again:
alter database commit to switchover to primary WITH SESSION SHUTDOWN;
On the new standby:
ALTER DATABASE RECOVER MANAGED STANDBY DATABASE USING CURRENT LOGFILE DISCONNECT FROM SESSION;now, and since my primary is RAC when i am trying switch over I am getting the below error:
SQL> alter database commit to switchover to standby with session shutdown;
alter database commit to switchover to standby with session shutdown
ERROR at line 1:
ORA-01105: mount is incompatible with mounts by other instancesPlus that when I want to apply the remaining steps (below step), should I do it on each instance alone? or is there anyway to do it using the srvctl command:
alter database mount standby database;Regards,Hi,
Since You are using 2 node RAc as primary, so for switchover operation you need to shutdown
one database instance( Suppose instance 2).
Suppose your node1:
hostname is dcpdb1
and node 2:
hostname is dcpdb2
and standby hostname is drpdb1
So follow this steps for switchover .
How to Switchover from Primary to Standby Database?
Process:
On the primary server, check the latest archived redo log and force a log switch.
*########### Login dcpdb1 as Oracle user #########*
SQL> SELECT sequence#, first_time, next_time
FROM v$archived_log
ORDER BY next_time;
SQL> ALTER SYSTEM SWITCH LOGFILE;
Check the new archived redo log has arrived at the standby server and been applied.
*########### Login drpdb1 as Oracle user #########*
SQL> SELECT sequence#, first_time, next_time, applied
FROM v$archived_log
ORDER BY next_time ;
*########### Login dcpdb2 as Oracle user #########*
SQL> SELECT sequence#, first_time, next_time
FROM v$archived_log
ORDER BY next_time ;
SQL> ALTER SYSTEM SWITCH LOGFILE;
Check the new archived redo log has arrived at the standby server and been applied.
*########### Login drpdb1 as Oracle user #########*
SQL> SELECT sequence#, first_time, next_time, applied
FROM v$archived_log
ORDER BY next_time ;
*########### Login dcpdb1 as Oracle user #########*
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
TO STANDBY
*########### Login dcpdb2 as Oracle user #########*
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
TO STANDBY
*########### Login drpdb1 as Oracle user #########*
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
NOT ALLOWED
*########### Login dcpdb2 as Oracle user #########*
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL>
*########### Login dcpdb1 as Oracle user #########*
SQL> ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY WITH SESSION SHUTDOWN;
Database altered.
SQL>
SQL> shutdown immediate
ORA-01507: database not mounted
ORACLE instance shut down.
SQL>
SQL> startup mount
ORACLE instance started.
Total System Global Area 1.5400E+10 bytes
Fixed Size 2184872 bytes
Variable Size 7751076184 bytes
Database Buffers 7616856064 bytes
Redo Buffers 29409280 bytes
Database mounted.
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
TO PRIMARY
SQL>
*########### Login drpdb1 as Oracle user #########*
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
SESSIONS ACTIVE
SQL> alter database commit to switchover to primary with session shutdown;
Database altered.
SQL> shutdown immediate
ORA-01109: database not open
Database dismounted.
ORACLE instance shut down.
SQL>
SQL> startup
ORACLE instance started.
Total System Global Area 1.5400E+10 bytes
Fixed Size 2184872 bytes
Variable Size 7717521752 bytes
Database Buffers 7650410496 bytes
Redo Buffers 29409280 bytes
Database mounted.
Database opened.
*########### Login dcpdb1 as Oracle user #########*
SQL> alter database open read only;
Database altered.
SQL> alter database recover managed standby database using current logfile disconnect;
Database altered.
*########### Login dcpdb2 as Oracle user #########*
SQL> startup mount
ORACLE instance started.
Total System Global Area 1.5400E+10 bytes
Fixed Size 2184872 bytes
Variable Size 7751076184 bytes
Database Buffers 7616856064 bytes
Redo Buffers 29409280 bytes
Database mounted.
SQL> alter database open read only;
Database altered.
SQL> alter database recover managed standby database using current logfile disconnect;
Database altered.
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
NOT ALLOWED
SQL>
*########### Login drpdb1 as Oracle user #########*
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
TO STANDBY
*########### Login dcpdb1 as Oracle user #########*
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
NOT ALLOWED
SQL>
*########### Login dcpdb2 as Oracle user #########*
SQL> SELECT SWITCHOVER_STATUS FROM V$DATABASE;
SWITCHOVER_STATUS
NOT ALLOWED
SQL>
*####################### Finish SwitchOver ########################*
Check
*########### Login drpdb1 as Oracle user #########*
SQL> alter system switch logfile;
SQL>
SELECT sequence#, first_time, next_time
FROM v$archived_log
ORDER BY sequence#;
SQL> archive log list
*########### Login dcpdb1 as Oracle user #########*
SQL>
SELECT sequence#, first_time, next_time, applied
FROM v$archived_log
ORDER BY sequence#;
SQL> archive log list
*########### Login dcpdb2 as Oracle user #########*
SQL>
SELECT sequence#, first_time, next_time, applied
FROM v$archived_log
ORDER BY sequence#;
SQL> archive log list
Thanks
Solaiman
Edited by: 876149 on Apr 12, 2013 11:51 AM -
Can i setup physical standby wihtout RMAN ? I want to create a fresh single physical standby without RMAN .. If i copy all files in another system and take the controlfile from primary as alter database create controlfile for standby ... and fill all the gaps with archives.. Should it work ? i am on 10G Rhel 4 linux.. and both machines would have same config
no luck CKPt and msberg...
pfile for TEST1 PRIMARY
test1.__db_cache_size=167772160
test1.__java_pool_size=4194304
test1.__large_pool_size=4194304
test1.__shared_pool_size=83886080
test1.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/test1/adump'
*.background_dump_dest='/u01/app/oracle/admin/test1/bdump'
*.compatible='10.2.0.3.0'
*.control_files='/u01/app/oracle/oradata/test1/control01.ctl','/u01/app/oracle/oradata/test1/control02.ctl','/u01/app/oracle/oradata/test1/control03.ctl'
*.core_dump_dest='/u01/app/oracle/admin/test1/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_file_name_convert='/u01/app/oracle/oradata/test2','/u01/app/oracle/oradata/test1'
*.db_name='test1'
*.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.db_unique_name='test1'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=test1XDB)'
*.fal_client='test1'
*.fal_server='test2'
*.job_queue_processes=10
*.log_archive_config='dg_config=(test1,test2)'
*.log_archive_dest_1='location=/u01/arch valid_for=(all_roles,all_logfiles) db_unique_name=test1'
*.log_archive_dest_2='service=test2 LGWR ASYNC valid_for=(primary_role,online_logfiles) db_unique_name=test2'
*.log_archive_dest_state_1='enable'
*.log_archive_dest_state_2='enable'
*.log_archive_format='%t_%s_%r.arc'
*.log_file_name_convert='/u01/app/oracle/oradata/test2','/u01/app/oracle/oradata/test1'
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.service_names='test1'
*.sga_max_size=400m
*.sga_target=250m
*.standby_archive_dest='/u01/arch'
*.standby_file_management='auto'
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/u01/app/oracle/admin/test1/udump'
PFILE FOR STANDBY TEST2
test2.__db_cache_size=171966464
test2.__java_pool_size=4194304
test2.__large_pool_size=4194304
test2.__shared_pool_size=79691776
test2.__streams_pool_size=0
*.audit_file_dest='/u01/app/oracle/admin/test2/adump'
*.background_dump_dest='/u01/app/oracle/admin/test2/bdump'
*.compatible='10.2.0.3.0'
*.control_files='/u01/app/oracle/oradata/test2/control05.ctl'
*.core_dump_dest='/u01/app/oracle/admin/test2/cdump'
*.db_block_size=8192
*.db_domain=''
*.db_file_multiblock_read_count=16
*.db_file_name_convert='/u01/app/oracle/oradata/test1','/u01/app/oracle/oradata/test2'
*.db_name='test1'
*.db_recovery_file_dest='/u01/app/oracle/flash_recovery_area'
*.db_recovery_file_dest_size=2147483648
*.db_unique_name='test2'
*.dispatchers='(PROTOCOL=TCP) (SERVICE=test2XDB)'
*.fal_client='test2'
*.fal_server='test1'
*.job_queue_processes=10
*.log_archive_config='dg_config=(test1,test2)'
*.log_archive_dest_1='location=/u01/arch valid_for=(all_roles,all_logfiles) db_unique_name=test2'
*.log_archive_dest_2='service=test1 valid_for=(primary_role,online_logfiles) db_unique_name=test1'
*.log_archive_dest_state_1='enable'
*.log_archive_dest_state_2='enable'
*.log_archive_format='%t_%s_%r.arc'
*.log_file_name_convert='/u01/app/oracle/oradata/test1','/u01/app/oracle/oradata/test2'
*.open_cursors=300
*.processes=150
*.remote_login_passwordfile='EXCLUSIVE'
*.service_names='test2'
*.sga_max_size=400m
*.sga_target=250m
*.standby_file_management='auto'
*.undo_management='AUTO'
*.undo_tablespace='UNDOTBS1'
*.user_dump_dest='/u01/app/oracle/admin/test2/udump'
ON STANDBY
SQL> select process,status from v$managed_standby;
PROCESS STATUS
ARCH CONNECTED
ARCH CONNECTED
MRP0 WAIT_FOR_LOG
sql> select applied,sequence#,to_char(completion_time,'dd-mon-yyyy hh24:mi:ss') from v$archived_log
APP SEQUENCE# TO_CHAR(COMPLETION_T
YES 1 01-jul-2012 19:19:11
YES 2 01-jul-2012 19:19:21
YES 3 01-jul-2012 19:19:28
YES 4 01-jul-2012 19:19:36
YES 6 01-jul-2012 19:22:41
YES 5 01-jul-2012 19:22:51
YES 7 01-jul-2012 19:23:02
YES 8 01-jul-2012 19:23:06
ON PRIMARY
SQL> select max(SEQUENCE#) from v$archived_log;
MAX(SEQUENCE#)
11 -
Hi all,
Any one have experience with creating a cascading logical standby?
Currently we have a primary and a physical standby databases. We want create another logical standby which will be receiving archive logs from the existing standby to reduce the overhead on production.
My question is , can I use the backup of primary database to build the standby, or I have to copy the datafiles from the existing standby to the new one?
Thanks in advance.
Sharoncan I use the backup of primary database to build the standby, or I have to copy the datafiles from the existing standby to the new one?
Yes, you can use the backup of primary database to build the standby -
Tnsping issues for oracle 10g standby setup
Hi All, i'm setting up standby database,
i'm getting below error while doing tnsping after made all the necessary entries in listene.ora and tnsnames.ora,
in both server listener is up and running.
Please suggest me on this to resolve the issue,
Primary Site
tnsping DEVP
TNS Ping Utility for Solaris: Version 10.2.0.2.0 - Production on 24-OCT-2011 16:09:59
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/arch/oracle/devora/ora10g/network/admin/DEVP_mareno/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST =alpha)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEVP)))
OK (10 msec)
tnsping DEVPDR
TNS Ping Utility for Solaris: Version 10.2.0.2.0 - Production on 24-OCT-2011 16:08:37
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/arch/oracle/devora/ora10g/network/admin/DEVP_mareno/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = beta)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEVPDR)(UR=A)))
TNS-12541: TNS:no listener
Standby site
tnsping DEVPDR
TNS Ping Utility for Solaris: Version 10.2.0.2.0 - Production on 24-OCT-2011 10:21:08
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/oracle/soft/ora10g/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = beta)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEVPDR)(UR=A)))
OK (10 msec)
tnsping DEVP
TNS Ping Utility for Solaris: Version 10.2.0.2.0 - Production on 24-OCT-2011 10:21:29
Copyright (c) 1997, 2005, Oracle. All rights reserved.
Used parameter files:
/oracle/soft/ora10g/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = alpha)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEVP)))
TNS-12541: TNS:no listenerHi,
Now tnsping is working in primary site of both
but from standby site,
Used parameter files:
/oracle/soft/ora10g/network/admin/sqlnet.ora
Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = beta.pati.com)(PORT = 1524)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = DEVP)))
TNS-12541: TNS:no listener
Please suggest me on this. -
Hi,
i'm configuring logical standby database,after giving alter database start logical standby apply; database was altered.
but select name, value
from v$logstdby_stats
where name = 'coordinator state' 2 3 ;
is not showing the status applying .how much will it take to come to applying status.
SQL> alter database start logical standby apply;
Database altered.
SQL> select name, value
from v$logstdby_stats
where name = 'coordinator state' 2 3 ;
NAME
VALUE
coordinator state
INITIALIZING
please help meOralce 10.1.0.3 on Linux
Wed Aug 8 21:52:21 2007
LOGSTDBY status: ORA-16111: log mining and apply setting up
Wed Aug 8 21:52:22 2007
LOGMINER: Parameters summary for session# = 1
LOGMINER: Number of processes = 3, Transaction Chunk Size = 201
LOGMINER: Memory Size = 10M, Checkpoint interval = 50M
LOGMINER: StopMiningThreshold = 3M
Wed Aug 8 23:30:26 2007
Private_strands 2 at log switch
Thread 1 advanced to log sequence 18
Current log# 2 seq# 18 mem# 0: /u01/u10/LOGSTDBY/redo02.log
Wed Aug 8 23:30:26 2007
ARC0: Evaluating archive log 1 thread 1 sequence 17
Wed Aug 8 23:30:26 2007
ARC0: Beginning to archive log 1 thread 1 sequence 17 (0.160249:0.163193) (LOGSTDBY)
ARCH: Connecting to console port...
Wed Aug 8 23:30:26 2007
ARC0: Creating local archive destination LOG_ARCHIVE_DEST_1: '/u01/u10/LOGSTDBY/arch/1_17_630100862.arc' (thread 1 sequence 17)
(LOGSTDBY)
.Thu Aug 9 17:38:14 2007
ARC0: Creating local archive destination LOG_ARCHIVE_DEST_1: '/u01/u10/LOGSTDBY/arch/1_33_630100862.arc' (thread 1 sequence 33)
(LOGSTDBY)
ARCH: Connecting to console port...
Thu Aug 9 17:38:14 2007
ARC0: Closing local archive destination LOG_ARCHIVE_DEST_1: '/u01/u10/LOGSTDBY/arch/1_33_630100862.arc'
(LOGSTDBY)
ARCH: Connecting to console port...
can i know wat are the datagurard logfiles
Please reply ... -
Standby setup - error in shipping logs
Hello all,
I have configured a physical standby database at the DR site which is connected by a 2mbps line to the primary database at Mumbai. A log file 20 MB in size takes 90 seconds to traverse this line (through manual ftp).
When I put the database in managed recovery mode, and after a while when the log gets switched at the primary, i get the error: 16166 at the primary database trace file. There is also another error like 'possible disconnect with the standby' in the alert log file at the primary.
Is there anything that i can change at Oracle side which can improve the situation ?
Is the 2mbps (mega bits is what i understand) line sufficient to transfer data ?
At times, the log generation rate at the primary site is 4 - 5 logs per second, is this generation rate okay ?
Let me know what other details you would want to assist.
Praveenthis is the last portion of the alert log file...
/oracle/PRD/mirrlogA/redo_3_2_prd.log
Tue Jun 9 17:17:14 2009
ARC0: Evaluating archive log 2 thread 1 sequence 7847
ARC0: Beginning to archive log 2 thread 1 sequence 7847
Creating archive destination LOG_ARCHIVE_DEST_1: '/oracle/PRD/oraarch/prd/PRDarch_1_7847.arc'
ARC0: Completed archiving log 2 thread 1 sequence 7847
Tue Jun 9 17:22:03 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-01034: ORACLE not available
Tue Jun 9 17:28:24 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-01034: ORACLE not available
Tue Jun 9 17:33:46 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-01034: ORACLE not available
Tue Jun 9 17:38:33 2009
Completed checkpoint up to RBA [0x1ea8.2.10], SCN: 0x0000.07797063
Tue Jun 9 17:39:50 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-01034: ORACLE not available
Tue Jun 9 17:43:36 2009
Beginning log switch checkpoint up to RBA [0x1ea9.2.10], SCN: 0x0000.07797861
Thread 1 advanced to log sequence 7849
Current log# 4 seq# 7849 mem# 0: /oracle/PRD/origlogB/redo_4_1_prd.log
Current log# 4 seq# 7849 mem# 1: /oracle/PRD/mirrlogB/redo_4_2_prd.log
Tue Jun 9 17:43:36 2009
ARC1: Evaluating archive log 3 thread 1 sequence 7848
ARC1: Beginning to archive log 3 thread 1 sequence 7848
Creating archive destination LOG_ARCHIVE_DEST_1: '/oracle/PRD/oraarch/prd/PRDarch_1_7848.arc'
ARC1: Completed archiving log 3 thread 1 sequence 7848
Tue Jun 9 17:45:50 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-01034: ORACLE not available
Tue Jun 9 17:52:12 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-01034: ORACLE not available
Tue Jun 9 17:58:15 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-01034: ORACLE not available
Tue Jun 9 18:04:15 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-01034: ORACLE not available
Tue Jun 9 18:10:37 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-01034: ORACLE not available
Tue Jun 9 18:16:40 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-01034: ORACLE not available
Tue Jun 9 18:22:44 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-01034: ORACLE not available
Tue Jun 9 18:28:48 2009
Completed checkpoint up to RBA [0x1ea9.2.10], SCN: 0x0000.07797861
Tue Jun 9 18:29:05 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-01034: ORACLE not available
Tue Jun 9 18:35:27 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-01034: ORACLE not available
Tue Jun 9 18:42:24 2009
ALTER SYSTEM SET log_archive_dest_2='SERVICE=stdbyprd LGWR ASYNC=10240 AFFIRM' SCOPE=BOTH;
Tue Jun 9 18:43:21 2009
ALTER SYSTEM SET log_archive_dest_2='SERVICE=stdbyprd LGWR ASYNC=10240 AFFIRM' SCOPE=BOTH;
Tue Jun 9 18:43:39 2009
Creating archive destination LOG_ARCHIVE_DEST_2: 'stdbyprd'
LNS0 started with pid=32
Tue Jun 9 18:43:42 2009
LGWR: Beginning to archive log 1 thread 1 sequence 7850
Beginning log switch checkpoint up to RBA [0x1eaa.2.10], SCN: 0x0000.07798861
Thread 1 advanced to log sequence 7850
Current log# 1 seq# 7850 mem# 0: /oracle/PRD/origlogA/redo_1_1_prd.log
Current log# 1 seq# 7850 mem# 1: /oracle/PRD/mirrlogA/redo_1_2_prd.log
Tue Jun 9 18:43:42 2009
ARC0: Evaluating archive log 4 thread 1 sequence 7849
ARC0: LGWR is actively archiving destination LOG_ARCHIVE_DEST_2
ARC0: Destination LOG_ARCHIVE_DEST_2 archival not expedited
ARC0: Beginning to archive log 4 thread 1 sequence 7849
Creating archive destination LOG_ARCHIVE_DEST_1: '/oracle/PRD/oraarch/prd/PRDarch_1_7849.arc'
ARC0: LGWR is actively archiving destination LOG_ARCHIVE_DEST_2
Invoking non-expedited destination LOG_ARCHIVE_DEST_2 thread 1 sequence 7849 host stdbyprd
ARC0: Completed archiving log 4 thread 1 sequence 7849
ARC0: Begin FAL noexpedite archive (thread 1 sequence 7849 destination stdbyprd)
Creating archive destination LOG_ARCHIVE_DEST_2: 'stdbyprd'
Tue Jun 9 18:44:03 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-03114: not connected to ORACLE
ARC0: FAL archive failed, see trace file.
ARCH: FAL archive failed. Archiver continuing
Tue Jun 9 18:44:03 2009
ORACLE Instance PRD - Archival Error. Archiver continuing.
ARCH: Connecting to console port...
Tue Jun 9 18:44:03 2009
ORA-16055: FAL request rejected
ARCH: Connecting to console port...
Tue Jun 9 18:44:03 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_arc0_24894.trc:
ORA-16055: FAL request rejected
Tue Jun 9 18:44:50 2009
LGWR: I/O error 3114 archiving log 1 to 'stdbyprd'
Tue Jun 9 18:44:50 2009
Errors in file /oracle/PRD/saptrace/prd/bdump/prd_lgwr_24886.trc:
ORA-03114: not connected to ORACLE
thank you
Maybe you are looking for
-
How to display a RTF file in the browser?
Hi there, sorry 'bout my bad English. My jsp page have to get a rtf file and show it. Just setting the ContentPage to text/rtf, is it a solution? If not just that, what code I have to write? Let me know! Thanks
-
Brand new to the Mac World and NEED SOME HELP with startup disk issues
Hello everyone. I am a new Mac user and I purchased my mac on ebay. It's an iMac that came with tiger 10.4.11. I wanted to get a fresh start on the computer, since the person who had it before me did not erase all of his stuff. I didn't know what to
-
Possible to install on external USB 2.0 hard drive?
Is it possible? I have leopard installed on my macbook pro, however i need tiger for final cut pro. I am going to buy an external HD, and want to know if i can install tiger onto it? to use.....for the time being for FCP (some plugins not compatible)
-
Ran 7.00 install - all worked well including album covers Used for a week - started to see freezing windows in iTunes Minimise and redisplay allowed apparent freeze to go. Assumption is the screen refresh is not working on selction but gets refreshed
-
Re-loading Photoshop Elements 10
I upgraded my Photoshop Elelments 9 to version 10 last July. Since then I have had a bug in my PC that needed Windows Refresh procedure to fix. As a result I have 'lost' my Elelements 10 and I need a way of re-loading the program without re-purchasin