Goldengate between active and standby database server
Hi:
I want to make goldengate connection between active and standby database servers (bidirectional). is it possible?
if yes what steps is required rather than active-active connection.
PLease help!!!
Regards,
Abhishek
What do you mean by "standby" server? If you are referring to a Data Guard standby, how would bidirectional work? That's why one is primary, the other is standby.
If you are doing A-A, your "standby" is just another master in the N-way master architecture, so you already have a bi-di setup, right? Are you looking to replace Streams with GG?
Similar Messages
-
Sync config between active and standby CSM
Is there a way to sync config between active and standby CSMs? Just as one that in CSS.
How about two SSL Service module in two different 6500 chassis?
Thanks.HI,
there is right now no command to commit redundancy between two CSM-Modules. Maybe in the future there will be one. Okay in regards of sync the only way is to check for redundancy is the show mod csm x ft command. But be aware that some slight differences like a real not being in service are sometimes not recognized.
In regards of the SSLModule there is no way as far as I know to sync them. This won't be present in the future in my opinion as there are certificates which require a password or something like that and one won't be able to do redundncy without those passwords. So In my opinion no way to sync two SSL-Module because of security issues.
Kind regards,
Joerg -
Switching between Primary and Standby database
Hi,
I managed to setup a standby database that is updated by the primary db either when doing a log file switch or when changing the role of the primary db to standby.
Now I want to put the standby database (that was in primary role for a short period) back into its standby role. I entered
"Alter database commit to switchover to physical standby with session shutdown;"
The archived redo logs as well as the control file are updated on the primary database (which was in standby role for the same short period). When I enter
"Alter database commit to switchover to primary" I am receiving the following error message:
SQL> alter database commit to switchover to primary;
alter database commit to switchover to primary
ERROR at line 1:
ORA-16139: media recovery required
After issuing the recovery statement I get this message:
SQL> recover database
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
At the same time this log entry is written into the alert log:
Database not available for switchover
End-Of-REDO archived log file has been received
Archived log files detected beyond End-Of-REDO
Incomplete recovery SCN:0:962365 archive SCN:0:977340
Switchover: Media recovery required - standby not in limbo
ORA-16139 signalled during: alter database commit to switchover to primary...
But when I try to use the BACKUP CONTROLFILE statement during recovery I get this error message:
SQL> recover database using backup controlfile;
ORA-00283: recovery session canceled due to errors
ORA-01666: control file is for a standby database
Although being quite a newbie it's obvious that the primary database (which was standby for a short period) is worried that there are older archived redo logs than online logs. I guess this happens because of the log_archive_dest definition on the standby database :
*.LOG_ARCHIVE_DEST_3='SERVICE=ORAMPPRD REOPEN=60 MAX_FAILURE=3 LGWR SYNC
VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=ORAMPPRD'
Changes are applied immediately and only written to the archive.
But how can it be managed that the online redo logs on the primary system are also updated when switching back from standby ???
Thanks,
Philipp.Thanks, it's working now.
I think it's important to explizitely follow the steps to switchover standby and primary for it to work. I maybe shutdown the standby to early.
Cheers,
Philipp. -
Can I have a primary database and standby database with a different windows version?
Hi
I need your help.
We need to increase the memory in the server where is the standby database , but first, we need to upgrade the windows version.
The actual version is windows 2003 standard edition 64 bits
The new version will be windows 2003 enterprise edition 64 bits
This difference in windows version between primary and standby servers can cause a problem in the synchronization between primary and standby databases ??
What do you recommend? Have both servers in the same windows version?
The databases are in SQL SERVER 2005.
Thanks.
LoreinnThis difference in windows version between primary and standby servers can cause a problem in the synchronization between primary
and standby databases ??<o:p></o:p>
There is no issue with database synchronization as long as SQL Server is of same version.<o:p></o:p>
What do you recommend? Have both servers in the same windows version?<o:p></o:p>
OS(Windows version) has no restriction for using SQL server 2005 database mirroring/log shipping. You can go with upgrade without any worries on SQL
database side.<o:p></o:p> -
What are the Basic Differences between Oracle and MS-SQL server Database?
Hello,
anybody pls Guide me about the Differences between Oracle and MS-SQL server Database.and also IBM Databases also
Regards,
BalaramSQL Server only works on Windows-based platforms, including Windows 9x, Windows NT, Windows 2000 and Windows CE.
In comparison with SQL Server , OracleDatabase supports all known platforms, including Windows-based platforms, AIX-Based Systems, Compaq Tru64 UNIX, HP 9000 Series HP-UX, Linux Intel, Sun Solaris and so on.
The SQL Server advantages:
SQL Server holds the top TPC-C performance and price/performance results.
SQL Server is generally accepted as easier to install, use and manage.
The Oracle Database advantages:
Oracle Database supports all known platforms, not only the Windows-based platforms.
PL/SQL is more powerful language than T-SQL.
More fine-tuning to the configuration can be done via start-up parameters.
Samrat -
V$dataguard_stats showing 8 hrs delay between Primary and standby
Hello All,
My Primary and standby database are in sync but v$dataguard_stats on standby server showing 8 hrs delay between Primary and standby.
DB Version:11.2.0.1.0
Server :AIX
Primary:
SQL> select /*+ FULL(c) PARALLEL(c, 35) */ distinct SEQUENCE# "Last Sequence Generated" FROM V$ARCHIVED_LOG c WHERE (THREAD#,FIRST_TIME ) IN (select /*+ FULL(c) PARALLEL(c, 35) */ THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG c GROUP BY THREAD#);
Last Sequence Generated
4521
Standby:
SQL> SELECT APPL.SEQUENCE# "Last Sequence Applied"
FROM (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
2 3 (SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
4 WHERE ARCH.THREAD# = APPL.THREAD#;
Last Sequence Applied
4521
SQL> SELECT ARCH.THREAD# "Thread", ARCH.SEQUENCE# "Last Sequence Received", APPL.SEQUENCE# "Last Sequence Applied", (ARCH.SEQUENCE# - APPL.SEQUENCE#) "Difference"
2 FROM (SELECT THREAD# ,SEQUENCE# FROM V$ARCHIVED_LOG WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$ARCHIVED_LOG GROUP BY THREAD#)) ARCH,
3 (SELECT THREAD# ,SEQUENCE# FROM V$LOG_HISTORY WHERE (THREAD#,FIRST_TIME ) IN (SELECT THREAD#,MAX(FIRST_TIME) FROM V$LOG_HISTORY GROUP BY THREAD#)) APPL
WHERE ARCH.THREAD# = APPL.THREAD#;
4
Thread Last Sequence Received Last Sequence Applied Difference
1 4521 4521 0
SQL> select name, 'Hours', to_number(substr(value,5,2)) from v$dataguard_stats where name = 'apply lag' ;
NAME 'HOUR TO_NUMBER(SUBSTR(VALUE,5,2))
apply lag Hours 8------------------------------------------------------------------>>>Problem areaSQL> SELECT status, error
FROM V$ARCHIVE_DEST_STATUS
WHERE STATUS <> 'DEFERRED' AND STATUS <> 'INACTIVE'; 2 3
STATUS ERROR
VALID
VALID
Standby--Generally in Night it happens that primary and standby 'apply lag' is 8/10/4 hrs .When manually checked database are in sync but v$dataguard_stats showing difference in hrs
NAME 'AL
SUBSTR(VALUE,1,12)
apply lag ALL
+00 04:11:03
SQL> SQL> 2
NAME 'SECOND TO_NUMBER(SUBSTR(VALUE,11,2))
apply lag Seconds 3
SQL> SQL> 2
NAME 'MINUTE TO_NUMBER(SUBSTR(VALUE,8,2))
apply lag Minutes 11
SQL> SQL> 2
NAME 'HOUR TO_NUMBER(SUBSTR(VALUE,5,2))
apply lag Hours 4
SQL> SQL> 2
NAME 'DAY TO_NUMBER(SUBSTR(VALUE,2,2))
apply lag Days 0 -
How to re-synch primary and standby database?
Hello everyone,
Working on 10g R2/windows server 2003, I have configured a physical standby database but, I have an issue, and don't know how to resolve it.
We were making an update that made some DDL and DML on our application, and for security reason we
1. we ensure that primary and standby are in sync
2. We made a cold backup of the primary database
3. We Deferred the redo shipping between primary and standby
4. We applied changes on primary database
But the big issue is that, for any reason my colleague did the following.
a) made above steps 1,2,3,4
b) after the update he kept the resulted archived log files generated during to another location
c) He restore the cold backup before the update(step 2 above)
c) he applied again the update.
Now the issue is
At the first update step(2), the sequence# 553 was applied to the stand by before the update
At the second update step(c) above another sequence# 553 was created but stored localy in the primary database, because the both servers were deverged (step 3 above).
Technically both servers cannot be in sync again,because sequence# 553 at the first update has next_change# 80307804 and sequenc# 553 at the second update has next_change# 80461356.
Question:
How Can I do to rollback the the first sequence# 553 ( before the first update) on the standby database? in order to apply the sequence#553 generated at the second update and then re-sync both servers to roll forward subsequent sequence#? 554,etc...
Thank you for your helpHello,
I have just tried the FLASHBACK DATABASE TO SCN XXXXXXXX;
but it doesn't work.
Here are steps used from my local dev envirronnment
From the stand by I retrieved the following information.
SEQUENCE# FIRST_CHANGE# NEXT_CHANGE# FIRST_TIM NEXT_TIME
95 707168 707906 15-AUG-08 15-AUG-08
96 707906 708653 15-AUG-08 15-AUG-08
97 708653 709359 15-AUG-08 15-AUG-08
100 710951 711794 15-AUG-08 15-AUG-08
98 709359 710179 15-AUG-08 15-AUG-08
99 710179 710951 15-AUG-08 15-AUG-08
101 711794 712762 15-AUG-08 15-AUG-08
102 712762 713720 15-AUG-08 15-AUG-08
103 713720 714748 15-AUG-08 15-AUG-08
104 714748 715920 15-AUG-08 15-AUG-08
105 715920 739430 15-AUG-08 15-AUG-08
106 739430 800525 15-AUG-08 16-AUG-08
107 800525 875810 16-AUG-08 17-AUG-08
108 875810 916527 17-AUG-08 18-AUG-08
SQL> alter database recover managed standby database cancel;
Database altered.
SQL> alter database activate standby database; --> prepare to open stby in R/W mode
Database altered.
SQL> startup mount force;
ORACLE instance started.
Total System Global Area 612368384 bytes
Fixed Size 1250428 bytes
Variable Size 180358020 bytes
Database Buffers 423624704 bytes
Redo Buffers 7135232 bytes
Database mounted.
SQL> alter database set standby database to maximize performance;
Database altered.
SQL> alter database open;
Database altered.
SQL> startup mount force;
ORACLE instance started.
Total System Global Area 612368384 bytes
Fixed Size 1250428 bytes
Variable Size 180358020 bytes
Database Buffers 423624704 bytes
Redo Buffers 7135232 bytes
Database mounted.
Now I tried to mimic the flashback database as in the production, to bring it back to sequence# 105 above
SQL> flashback database to scn 739430;
flashback database to scn 739430
ERROR at line 1:
ORA-38754: FLASHBACK DATABASE not started; required redo log is not available
ORA-38761: redo log sequence 75 in thread 1, incarnation 2 could not be
accessed
I'm reverted back the physical standby to its function
SQL> alter database convert to physical standby;
Database altered.
SQL> startup mount force;
ORACLE instance started.
Total System Global Area 612368384 bytes
Fixed Size 1250428 bytes
Variable Size 180358020 bytes
Database Buffers 423624704 bytes
Redo Buffers 7135232 bytes
Database mounted.
SQL> alter database recover managed standby database using current logfile disconne
Database altered.
Verifying if the MRP is up and running: YES see below
SQL> select message from v$dataguard_status;
MESSAGE
ARC0: Archival started
ARC1: Archival started
ARC2: Archival started
ARC3: Archival started
ARC3: Becoming the 'no FAL' ARCH
ARC3: Becoming the 'no SRL' ARCH
ARC1: Becoming the heartbeat ARCH
Attempt to start background Managed Standby Recovery process
MRP0: Background Managed Standby Recovery process started
Managed Standby Recovery starting Real Time Apply
Clearing online redo logfile 1 C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO11.LOG
11 rows selected.
SQL> archive log list;
Database log mode Archive Mode
Automatic archival Enabled
Archive destination C:\local_destination1_orcl
Oldest online log sequence 110
Next log sequence to archive 0
Current log sequence 110
So, how can I reslove this issue? without creating the standby from scratch?
Thanks Again for your help -
hi sir
Can you please help me in describing what are the important files needed to active the standby database if primary server is not coming up? and vice versa.Several...control file, datafile, archives etc.
It would help to go thru the various scenarios and how to manage the standby
For 10g check the following
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14239/manage_ps.htm#i1006374
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14239/scenarios.htm
hth -
Hello !!!
I have noticed that my standby database(11g) was still in sync after stopping the primary and standby database listener.
If this is the case then how log is transferring from primary to standby ? it is not using listener service ? kindly clarifyRead this Metalink Note:407040.1
-
Real-Time Data Sync-up between Oracle and MS SQL Server
Hi All,
I am looking for a solution to sync-up the data between Oracle and MS SQL Server in real time. Here, the structure of table is different (in the sense, the data in multiple table in SQL Server should be combined and put it in a single table in Oracle and vice versa).
Could anybody throw light on this plz?
Thanks in advance!mt**** wrote:
Hi All,
I am looking for a solution to sync-up the data between Oracle and MS SQL Server in real time. Here, the structure of table is different (in the sense, the data in multiple table in SQL Server should be combined and put it in a single table in Oracle and vice versa).
Could anybody throw light on this plz?
Thanks in advance!Handle: mt****
Status Level: Newbie
Registered: Feb 9, 2003
Total Posts: 183
Total Questions: 14 (10 unresolved)
why so MANY unanswered questions?
what should occur when DML occurs & the "other" DB is not online? -
How to sync primary and standby database in 11GR2 on linux
Hi ,
How to sync primary and standby database in 11GR2 on linux . Both my primay and standby are 3 node cluster each.
Can you please suggest a good link and brief steps .
ThanksAre you trying to setup a new standby or sync an existing standby database?
OK I see it
"standby is behind the primary"
So you have a gap.
I would check both alert logs for a cause. You might find something like this
ORA-12514: TNS:listener does not currently know of service requested in connect descriptor.Look for ORA-00308 and ORA-27037 and ORA-16055.
There's no sense fixing the gap unless the cause is fixed too.
Also check out this post from a few days ago its dealing with similar issues.
How to sync the standby database with the primary?
If you find this helpful please mark it so.
Edited by: mseberg on Jul 20, 2011 4:37 PM -
SCN number difference in primary and standby databases
Hi All,
Is it possible that primary database SCN is 20 and standby database SCN is 22 ? If yes , how it works ?
Thankyou !I agree that it is possible depending on your setup. However, I read your posting and BLOG entry but it does not address out the Standby database has a GREATER SCN than the Primary.
The answer will depend on the type of standby database you have configured (LOGICAL vs PHYSICIAL) and perhaps if it is a SNAPSHOT Standby that has been used and not rolledback.
In what I would consider "Normal" situations the SCN of the standby database would always either be at the same SCN or be lagging.
I have not tested it but I could see where if you had a standby database that you converted to a SNAPSHOT Standby (11g ability), made changes to the standby and had not converted it back to a normal Standby then your SCN can be ahead in the standby because the changes had not been discarded yet.
Regards.
Tim -
Primary and standby oracle server versions
Hi
Can I have a dataguard config in which the primary database and standby database are having different Oracle versions but the compatible paramerter is set to less than the lowest version
Eg:
primary 10.2.0.1
Standby 10.2.0.4
compatible 9.2.0.0.0
Is this possible
Similarly is it possible to have primnary and standby in 10g and 11g with 10.2.0.1 compatible parameterCan I have a dataguard config in which the primary database and standby database are having different Oracle versions but the compatible paramerter is set to less than the lowest version
primary 10.2.0.1
Standby 10.2.0.4
compatible 9.2.0.0.0
Is this possible
Similarly is it possible to have primnary and standby in 10g and 11g with 10.2.0.1 compatible parameterNo it is not possible. I read one of blog, We can configure logical standby it might 11g -
DbLink between 10g and 8i databases
Hi all
I have a little problem. I have two different databases in two different versions 10.6 and 8.1.7. Some forms (developer 6.i) use the dblink and i get a crash to desktop when i try to compile. Developer exit with abnormal termination.It is due to tables with the dblink aren´t recognized because if i comment the select where these tables are used the programm compiles perfectly.
But when I go to SQL plus,for instance, and use a DESC, the tables are recognize in this case. All the synonym are created correctly.
Any help? Maybe it's due to the different database versions?
Thanks in advanceHi,
Maybe you should post this problem in a Forms Forum too.
DbLink between 10g and 8i databases
Cheers -
Configure active and standby mac address in failover
Hi guys,
I just have a doubt that, if I configure the active and standby mac address in failover, does it will cause any downtime?
As I planning to configure the active and standby mac addresses in failover during production time and not wish that it will bring any downtime to me.
Besides that, just need some guideline that do I need to put all the interfaces' mac addresses in failover?
failover mac address GigabitEthernet0/0 0022.90fe.2000 0022.90fe.2001
failover mac address GigabitEthernet0/1 0022.90fe.3000 0022.90fe.3001
failover mac address GigabitEthernet0/2 0022.90fe.4000 0022.90fe.4001
failover mac address GigabitEthernet0/3 0022.90fe.5000 0022.90fe.5001Hi Marius,
Seem like set the failover MAC address was not working for me.
Last friday I was tested the failover MAC address.
TEST 1
1, Power off primary ASA and secondary ASA work as active.
2, 2821 router able to learn the correct arp entries.
TEST 2
1, Power on primary ASA and failover from secondary to primary.
2, 2821 router able to learn the correct arp entries from ASA.
3, Set failover MAC address, power off primary ASA and secondary ASA be active.
4, 2821 router unable to learn the correct arp entries.
TEST 3
1, Removed failover MAC address from secondary ASA.
2, 2821 router still unable to learn the correct arp entries from ASA.
3, Power up primary ASA and secondary ASA still in active.
4, 2821 router still unable to learn the correct arp entries from ASA.
5, Reboot 2821 router and it able to learn the arp entries from ASA.
I am not sure this issue from router or from the ASA. But I guess I will try to upgrade the router in term of software and hardware.
Maybe you are looking for
-
Pictures not showing when putting together a photobook - bar or book
I am trying to make a photobook but half the pictures in my album are not showing in the photo bar. If I drag and drop them and then click on each photo book page they appear there - but when I zoom out they also seem to be missing in the book. It's
-
Epson R2400 (and maybe other Epson Printers) and Snow Leopard: A Solution
I installed Snow Leopard over the weekend and everything seemed to go fine, except the re-installation of my Epson R2400. It didn't work. The Epson Web site provides Snow Leopard assistance for the R2400, but it is counter-intuitive. The following
-
Hello All, Being a LabVIEW and DAQ newbie, I am seeking as much advice as possible for my student project. I am attempting to receive positional data from 3 Mitutoyo Digimatic linear scales with digital readouts (DRO). The scales & DRO are common to
-
Hi everybody! Our target is, to launch a specific catalog, after the user clicks on the "Shop" button within the "Employee Self-Service" view. The solution should work as follows: - user clicks on the "shop" button within the "Employee-Self-Service"
-
My iPhone 4 factory unlocked doesn's show me caller name
My iPhone 4 factory unlocked doesn't show me caller name when i put sim card from Serbia. When i put USA sim card works fine! Please help!