Restart of replicat process
hello
I use goldengate 11.1.1.1.2 on Aix 6.1 server and oracle database 10.2.0.4, the retention of trail files is one day on the target,
when the replicat process abended, I see that, at restart, it reprocess all the trail files , this generate a huge volume of discarded
records, du to : "OCI Error ORA-00001: unique constraint violated".
Why replicat don't use the last scn it has processed ?, and how to restart it at the first non processed record ?
Thank you
As far as I have seen and read, replicat does use the last scn it has processed and restarts at the first non processed record. That is the default behaviour of the replicat. It will never process a record that it has already processed UNLESS you manually position it at some other place in the trail.
Please see your configuration properly. There should be some other issue. If you have implemented it on RAC, ensure it is implemented properly and replicats on two nodes are not running simultaneously.
Similar Messages
-
How to get the changes during ABENDED replicat process
Hi,
I am working on Oracle GG bi-directional DML replication. I m stuck in one place.
My target replicat process was ABENDED due to Error :- ORA-01403: no data found. I restarted my replicat process again by runing the below command
GGSCI (db1) 30> alter replicat rep2 begin now
GGSCI (db1) 30> start replicat rep2
After restart the replicat process I can't see the changes on target server which I had applyed on source server during target replicat was ABENED.
My doubt is.
1. Is my command is correct for start the ABENDEND replicat process?
2.How to get the changes on target server which applyed on source during ABNDED of targer replication?
3.How to avoid the ABENDED replicat process on production server?
4.how to track the ABENDED process in production server?
Please HELP:(
Edited by: NaveenK on Aug 29, 2012 3:32 AMNaveenK wrote:
Hi,
I am working on Oracle GG bi-directional DML replication. I m stuck in one place.
My target replicat process was ABENDED due to Error :- ORA-01403: no data found. I restarted my replicat process again by runing the below command
GGSCI (db1) 30> alter replicat rep2 begin now
GGSCI (db1) 30> start replicat rep2
After restart the replicat process I can't see the changes on target server which I had applyed on source server during target replicat was ABENED.
My doubt is.
1. Is my command is correct for start the ABENDEND replicat process?
2.How to get the changes on target server which applyed on source during ABNDED of targer replication?
3.How to avoid the ABENDED replicat process on production server?
4.how to track the ABENDED process in production server?
Please HELP:(
Edited by: NaveenK on Aug 29, 2012 3:32 AMHi Naveen. SQL Error 1403 means row not found. Your data is out of sync and you should fix this.
By doing begin now when this happens, you are skipping all the transactions that were "in-line" since the process ABENDED.
You have more than one way to deal with these things, first of all you should synchronize your data! This should get rid of the 1403 errors.
Then you can write rules using REPERROR to tell the replicat how to behave in case of errors should come up.
Using logdump, you can read the exact row which failed and find out the next RBA to skip that specific one if required. You should also configure a DISCARDFILE to get details about errors when they happen.
Greetings,
N K -
Hello,
Before replicat process abended, I received warnings and inserted in exceptions table.
"Error - OCI Error ORA-14400: inserted partition key does not map to any partition " . One of the table doesn't have the partitions on the target database. 51 rows inserted in exceptions table.
Replicat process abended after the database restart.
Steps followed to start the replicat process :-
a) We have added the missing partitions to that table.
b) Get the RBA info from - info replicat repa, detail
c) alter replicat repa, extrba 80711767
Replicat is running successfully. But the problem is Source database row count is not in sync with the target database.
Source record count - 2000. But the target count is 500. Nearly 1500 records was not replicated.
Is there any way to replicat the missing records on to target machine through goldengate?
Do we need to prefer datapump utility to load the data?
Please help me!!!
Thanks,
951419Do the logs (or report) show anything?
-
Unable to start Extract and Replicate process?
Hi,
I have setup GG b/w two 10.2 databases in two different server(RHEL 5) . But unable to start the extract and replicate process
Source
GGSCI (prod.naveed.com) 1> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER STOPPED
EXTRACT STOPPED EXT1 00:00:00 00:43:42
GGSCI (prod.naveed.com) 2> start mgr
Manager started.
GGSCI (prod.naveed.com) 3> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT STOPPED EXT1 00:00:00 00:43:48
GGSCI (prod.naveed.com) 4> start extract ext1
Sending START request to MANAGER ...
EXTRACT EXT1 starting
GGSCI (prod.naveed.com) 5> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT STOPPED EXT1 00:00:00 00:43:56
GGSCI (prod.naveed.com) 6> view params mgr
PORT 7809
USERID GG_ADMIN, PASSWORD GG_ADMIN
PURGEOLDEXTRACTS /home/oracle/golden_gate/dirdat/ex, USECHECKPOINTS
GGSCI (prod.naveed.com) 7> view params ext1
–extract group–
extract ext1
–connection to database–
userid GG_ADMIN, password GG_ADMIN
–hostname and port for trail–
rmthost 172.168.1.11, mgrport 7809
–path and name for trail–
rmttrail /home/oracle/golden_gate/dirdat/lt
–DDL support
DDL INCLUDE ALL
ddl include mapped objname NAVEED.*;
–DML
table NAVEED.*;
GGSCI (prod.naveed.com) 8> exitTarget
[oracle@Test golden_gate]$ ./ggsci
Oracle GoldenGate Command Interpreter for Oracle
Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230_FBO
Linux, x86, 32bit (optimized), Oracle 10g on Apr 23 2012 07:06:02
Copyright (C) 1995, 2012, Oracle and/or its affiliates. All rights reserved.
GGSCI (Test.naveed.com) 1> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
REPLICAT STOPPED REP1 00:00:00 00:35:39
GGSCI (Test.naveed.com) 3> start replicat rep1
Sending START request to MANAGER ...
REPLICAT REP1 starting
GGSCI (Test.naveed.com) 4> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
REPLICAT STOPPED REP1 00:00:00 00:36:06
GGSCI (Test.naveed.com) 5> view params mgr
PORT 7810
USERID GG_ADMIN, PASSWORD GG_ADMIN
PURGEOLDEXTRACTS /home/oracle/golden_gate/dirdat/ex, USECHECKPOINTS
GGSCI (Test.naveed.com) 6> view params rep1
-Replicat group-
replicat rep1
–target database login –
USERID GG_ADMIN, PASSWORD GG_ADMIN
–file for dicarded transaction –
discardfile /home/oracle/golden_gate/discard/rep1_discard.txt, append, megabytes 10
–ddl support
DDL INCLUDE ALL
DDLERROR DEFAULT IGNORE RETRYOP
–Specify table mapping —
MAP NAVEED.*, TARGET NAVEED.*;
GGSCI (Test.naveed.com) 7>Thanks it worked, I m able to start both extract and replicate process.
But when i create a new table and do some DML it is not getting replicated in the TARGET DB?
Source
GGSCI (prod.naveed.com) 1> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
EXTRACT RUNNING EXT1 00:30:52 00:00:10
GGSCI (prod.naveed.com) 2> view mgr
ERROR: Invalid command.
GGSCI (prod.naveed.com) 3> view params mgr
PORT 7809
USERID GG_ADMIN, PASSWORD GG_ADMIN
PURGEOLDEXTRACTS /home/oracle/golden_gate/dirdat/ex, USECHECKPOINTS
GGSCI (prod.naveed.com) 4> view params ext1
--extract group
extract ext1
--connection to database
userid GG_ADMIN, password GG_ADMIN
--hostname and port for trail
rmthost prod.naveed.com, mgrport 7809
--path and name for trail
rmttrail /home/oracle/golden_gate/dirdat/lt
--DDL support
ddl include mapped objname NAVEED.*;
--DML
table NAVEED.*;Target
GGSCI (Test.naveed.com) 3> info all
Program Status Group Lag at Chkpt Time Since Chkpt
MANAGER RUNNING
REPLICAT RUNNING REP1 00:00:00 00:00:02
GGSCI (Test.naveed.com) 4> view params mgr
PORT 7810
USERID GG_ADMIN, PASSWORD GG_ADMIN
PURGEOLDEXTRACTS /home/oracle/golden_gate/dirdat/ex, USECHECKPOINTS
GGSCI (Test.naveed.com) 5> view params rep1
--Replicat group
replicat rep1
--target database login –
USERID GG_ADMIN, PASSWORD GG_ADMIN
--file for dicarded transaction –
discardfile /home/oracle/golden_gate/discard/rep1_discard.txt, append, megabytes 10
--ddl support
DDL INCLUDE ALL
--Specify table mapping
MAP NAVEED.*, TARGET NAVEED.*;Source
SQL> conn NAVEED/NAVEED
Connected.
SQL> create table tab_1 (id number,rnd_str varchar2(12));
SQL> insert into tab_1 values (1,'test_1');
SQL>commit;
SQL> select * from tab_1;
ID RND_STR
1 test_1Target database:
SQL> conn NAVEED/NAVEED
Connected.
SQL> select * from tab_1;
select * from tab_1
ERROR at line 1:
ORA-00942: table or view does not exist -
Unable to start replicat process
Hi,
We have configured goldengate between two oracle system for uni directional replication, it's running for few hours after that in target side the replicat process is abended with below error message,
2012-08-02 10:12:07 WARNING OGG-01004 Aborted grouped transaction on 'ACCOUNT.ACCOUNT_STATS', Database error 1732 (OCI Error ORA-01732: data manipulation
operation not legal on this view (status = 1732). DELETE FROM "ACCOUNT"."ACCOUNT_STATS" WHERE "REP_NAME" = :b0 AND "DAILY" is NULL AND "WEEKLY"
is NULL AND "COUNT" is NULL AND "COUNT" = :b4 AND ROWNUM = 1).
i found some of the solution in google but no luck... there is a table name and MV in both the database , the name of the two objects are in same name. so i can't exclude the MV in replicat process.
SQL> select owner,object_name,object_type from all_objects where object_name ='RC_REPS_STATS';
OWNER OBJECT_NAME OBJECT_TYPE
ACCOUNT ACCOUNT_STATS TABLE
ACCOUNT ACCOUNT_STATS MATERIALIZED VIEW
also there is no constraint on that tables , Can any one help on this to resolve this issue?You're the victim of a bad database design. The application updating the same base tables would have the same problem but my guess is that only the target system has the materialized views. Regardless, a viable work around would be to create a "normal" view on the table with a unique name and then map to the new view.
Good luck,
-joe -
How to restart the Successfully processed messages
Hi,
I have IDOC to File Scenario
we posted the idoc from R/3 and it has processed successfully.
Now again i want to process that idoc again with out going to R/3.
How to restart the Successfully processed message from MONI.
we have one option in MONI Restart. this is not working for Successfully processed messages.
How to achieve this
Regards
SumanHello Suman..
XI: Restarting successfully processed messages..
Go through this : Michal Krawczyk Blog This will really helpful to you..
/people/michal.krawczyk2/blog/2005/11/09/xi-restarting-successfully-processed-messages
Reward Points If it is Helpful...
Thanks,
Satya Kumar.. -
When does capture/pump/replicat process do a checkpoint?
Dear Guru,
May someone help me to know when capture/pump/replicat process does a checkpoint? There are 2 things which made me confused.
- CHECKPOINTSECS parameter: There is no setting in the parameter file, that means it will be set by default (10s)
- One document says that checkpoints are based on transaction boundaries, that means checkpoint will happened by the end of each transaction
In my source db, there was a long running transaction lasting for 1 hour and already committed and written to the local trail files. Then the pump process have started to read the trail files to pump to target. My concern is when the capture/pump/replicat process do a checkpoint? 10s or 1 hour?
One thing is I often see the value of "Time since chkpt" in the output of "Info all" command is more than 10s. If they do a checkpoint every 10s, how could the value of "Time since chkpt" be more than 10s? I think that maybe the term "chkpt" of "Time since chkpt" is of database transaction, not of GoldenGate. However I'm not sure. It made me really confused.
Here is the output of "Info all" command:
Program Status Group Lag Time Since Chkpt
EXTRACT RUNNING PUMP6 00:17:07 00:04:29
My system profile:
Source:
OS: OEL5 64bit
DB: Oracle 11gR2 (11.2.0.2)
GG: 11gR1 (11.1)
Target:
OS: Solaris 10
DB: Oracle 11gR2 (11.2.0.3)
GG: 11gR1 (11.1)
Thanks for your help in advance.
Hieu
Edited by: 972362 on Nov 21, 2012 2:36 AMCHECKPOINTSECS defines how often an extract makes its regular checkpoints. An extract will make a checkpoint every 10 seconds if this value is set to 10 irrespective of a transaction that is running for 1 hour. Extract also writes commit checkpoints when a transaction is committed.
In the example where your Pump is showing time since checkpoint as greater than 10 could have a problem at the network level or issues with the remote trail..
that is my observation as I had an extract that was being shown as RUNNING but time since last checkpoint was in hours and when i checked the report file, it had an error. -
Error OGG-01168 abending replicat process
Hello All,
Greetings !
I have tables that do not have any unique key in source and target database. Replicat process work fine in this case for some tables but for certain table it stops. and generates error:
"ERROR OGG-01168 Encountered an update for target table SAPSR3.BTCCTL, which has no unique key defined. KEYCOLS can be used to define a key. Use ALLOWNOOPUPDATES to process the update without applying it to the target database. Use APPLYNOOPUPDATES to force the update to be applied using all columns in both the SET and WHERE clause."
What it exactly means ? I am not understanding, since both the tables have same structures. Pleas help.
Best Regards,
R.KapilHi,
1. how you have added supplemental lod data on database ? database level or table level?
2.Did you execute ADD TRANDATA <schemaname.*> on source side?
3. have you used any COLMAP or Tokens in your parameter files?
4. if you paste the extract and replicat prm files that would be help to check the details. -
Icloud photo library restarting entire upload process after process is complete
Recently turned on ICloud Photo Library, and everything transferred fine from my three devices (two iphones and rMBP), it took about a a week to upload everything (I have 22,000 photos, about 60 gb). The process basically merged my entire photo library from three separate devices. However, i discovered this morning that one of my iphones appears to be 'restarting' the upload process, and is trying to upload the entire content of its library, about 22,000 photos. This includes photos that were not in the iphone 6 originally, including photos from my Mac that was downloaded from the iCloud Photo Library.
Anyone encountered this problem before? My concern is that it will reupload everything resulting in 44,000 photos in my icloud library or at least duplicate some of the existing photos in the icloud photo library.
Thanks in advance.Ah, one thing I forgot. Despite the fact that I let my Mac running since two weeks to get my Library online, the Photos App NEVER did an update FROM the icloud library. I added some Photos through Ipad and Iphone, but they never appeared in my Photos Library.
It is such a mess I tried to cry, but I cried enough when Mobile Me was around... -
Golden gate extract and replicate process are not running.
All,
I am trying replicate data between two oracle databases using golden gate.
I am trying this scenario in a single machine(two databases and golden gate are on same windows machine)
1. I have two databases PROD, UAT both are running on 11.2 oracle home.
2. Created the ggate user both the databases, and enabled supplemental logging.
3. Ran the following scripts in both databases.
SQL> @marker_setup.sql
SQL> @ddl_setup.sql
SQL> @role_setup.sql
SQL> grant GGS_GGSUSER_ROLE to ggate;
SQL> @ddl_enable.sql
4. Connected the source database (PROD) in ggsci prompt
GGSCI (home-c07402bbc5) 79> add extract ext1, tranlog, begin now
add exttrail C:\app\Bhanu\Goldengate\lt, extract ext1
edit params ext1
EXTRACT ext1
USERID ggate@PROD, PASSWORD 123456
RMTHOST home-c07402bbc5, MGRPORT 7840
rmttrail C:\app\Bhanu\Goldengate\lt
ddl include mapped objname bhanu.* // bhanu is a schema in PROD database.
TABLE bhanu.*;
5. Connected the target database(UAT) in ggsci prompt
add checkpointtable ggate.checkpoint
edit params ./GLOBALS
GGSCHEMA ggate
CHECKPOINTTABLE ggate.checkpoint
add replicat rep1, exttrail C:\app\Bhanu\Goldengate\Mt,checkpointtable ggate.checkpoint
edit params rep1
replicat rep1
ASSUMETARGETDEFS
userid ggate@UAT, password 123456
discardfile C:\app\Bhanu\Goldengate\rep1_discard.txt, append, megabytes 10
map bhanu.*, target kiran.*;
After that started the extract, replicat using
start extract ext1, start replicate rep1
Now the status.
GGSCI (home-c07402bbc5) 103> info all
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
EXTRACT STOPPED EXT1 00:00:00 00:11:43
REPLICAT STOPPED REP1 00:00:00 00:21:16
Can you please help me what is wrong in my setup and why extract and replicate process are not running.
Edited by: user12178861 on Nov 19, 2011 11:22 AMThanks for your quick reply.
I have done few changes but extract, replicate process not running.
couple of points I would like to share with you regarding my setup.
1. I am using single golden date instance to replicate the data between PROD and UAT databases.
2. GGSCI (home-c07402bbc5) 1> dblogin userid ggate@PROD,PASSWORD 123456
Successfully logged into database.
GGSCI (home-c07402bbc5) 2> info all
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
EXTRACT STOPPED EXT1 00:00:00 01:23:29
REPLICAT STOPPED REP1 00:00:00 01:33:02
GGSCI (home-c07402bbc5) 3> VIEW REPORT EXT1
ERROR: REPORT file EXT1 does not exist.
GGSCI (home-c07402bbc5) 4> start er *
Sending START request to MANAGER ...
EXTRACT EXT1 starting
Sending START request to MANAGER ...
REPLICAT REP1 starting
GGSCI (home-c07402bbc5) 5> VIEW REPORT EXT1
ERROR: REPORT file EXT1 does not exist.
GGSCI (home-c07402bbc5) 6> info all
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
EXTRACT STOPPED EXT1 00:00:00 01:24:10
REPLICAT STOPPED REP1 00:00:00 01:33:44
Target :
GGSCI (home-c07402bbc5) 1> dblogin ggate@UAT,PASSWORD 123456
ERROR: Unrecognized parameter (GGATE@UAT), expected USERID.
GGSCI (home-c07402bbc5) 2> dblogin userid ggate@UAT,PASSWORD 123456
Successfully logged into database.
GGSCI (home-c07402bbc5) 5> add replicat rep1, exttrail C:\app\Bhanu\Goldengate/lt,checkpointtable ggate.checkpoint
ERROR: REPLICAT REP1 already exists.
GGSCI (home-c07402bbc5) 6> delete replicat rep1
Deleted REPLICAT REP1.
GGSCI (home-c07402bbc5) 7> add replicat rep1, exttrail C:\app\Bhanu\Goldengate/lt,checkpointtable ggate.checkpoint
REPLICAT added.
GGSCI (home-c07402bbc5) 8> edit params rep1
GGSCI (home-c07402bbc5) 9> start er *
Sending START request to MANAGER ...
EXTRACT EXT1 starting
Sending START request to MANAGER ...
REPLICAT REP1 starting
GGSCI (home-c07402bbc5) 10> info all
Program Status Group Lag Time Since Chkpt
MANAGER RUNNING
EXTRACT STOPPED EXT1 00:00:00 01:29:46
REPLICAT STOPPED REP1 00:00:00 00:00:48
3. Is mandatory that I need two golden gate instances running each side ?
Thanks for spending your time on this problem. -
J2ee - Restarting specific server process
hi,
We have Central instance with 3 j2ee server processes running. One of the server process has issues, needs restart . I tried with SMICM and JCMON to restart only a specific server process. I could not try all options in production instance. Is it possible to restart only affected server process instead of entire j2ee server.?
This is needed as users may be using other 2 server processes anytime.
Visual admin does not show, this server process as it has issues.
Thanks,
RajHi Raj,
You could restart a server process with JCMON.
Choose local instance and then choose restart a process and enter the id of the server node that you want to restart.
Regards,
Ventsi Tsachev -
Unable to Restart EPM Architecht Process Manager
Hi.
It's the second time i have this problem.
I can't restart EPM Architect Process manager because this message block the start of the service :
The Hyperion S9 EPM Architect Process Manager service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example the Performance Log and Alert Services.
Obviously the same error appears if i try to start S9 EPM Engine Manage, S9 EPM Event Manager and S9 EPM Job Manager.
The first time i had this problem, a consultant of Hyperion from Manchester was unable to solve the problem after a remote connession on my server.
He suggested to reinstall Planning.
But now I can't reinstall it because i lose all!
Could you help me?
Thanks
Bye ByeHow's Life? What's news?
-
RMAN DUPLICATE and Restarting dead background process
Hi,
Has anyone come across the problem in 10.2.0.3 where there are continuous errors in the alert log :
Restarting dead background process QMN0
QMN0 started with pid=9?
I see this is a bug in Oracle 9 but was supposed to be fixed by 10. I have tried the solution for the Oracle 9 bug : ALTER SYSTEM SET aq_tm_processes=1; but no joy
This error started in the target database after I used RMAN -DUPLICATE to create another test database on the same server. The source is a 10.2.0.3 database with parameter compatibility set to 9.2.0.
ThanksI have tried changing the compatibility parameter (on advice from Oracle Support) i.e. compatibility=10.2.0 on the target database but this has made no difference
-
Replicat process in background
Hello everybody,
on teh target machine i have installed the monitor process as a windows service.
What about do the same with the replicat process? Is it possible?
If i start the replicat process from ggsci command prompt and then exit from ggsci, when i logout from the windows server
the replicat process dies....
How can i manage this problem?
ThanksBasically, there is a thread running that listens for events (such as when a button is pressed or a menu item is selected). If you start the C program from this thread, you will not be able to use the GUI until your program has finished. In your case, it may be better to have a separate thread to run the program and update the values. Your thread can the call repaint() or something else to update the GUI with the new information.
-
I just bought a new macbook air and while transferring documents from my old computer to my new one it stopped working, how do I restart the transferring process (it won't force quit on the new one)?
I NEED HELPjesster03 wrote:
i just bought a new macbook w/ mtn lion. when i transferred data from my old macbook over, it created another user name (i called it "old computer"). That's actually good
That's actually bad. Peruse Pondini's Setup New Mac guide and seriously consider starting over.
Maybe you are looking for
-
Satellite L350D - WLAN not working after recovery disk
Hello there I just got a L350D. I ran the Recovery Disk tool, without any other programm running. It was on a good way of finishing the second disk and than: BAM! blue screen. Since the start up, my LAN and WLAN is not working. It always says "WLAN 2
-
Does Siri need a central server?
Today it is not possible to use Siri. Whenever i try to ask a question i receive the answer that there is no network. But Wifi Access is troubleless and the telephone is working fine, too. So i wonder what could be reason. Somebody maybe have an idea
-
Hi All, When I add a comment, the program opens the pane and my text is highlighted yellow. That's fine. However, when I close the comments pane, the text doesn't indicate it's commented. Is there something I'm missing or is that part of the "functio
-
be nice please. honest, but nice. First attempt, however fully functional www.edocwarehouse.com
-
MacApp Store intermittently showing message no internet connection
I am experiencing an issue with the MacApp store displaying an error message "An Internet Connection is Required" This is only happening after I have loaded the store and are switching between, 'Featured' and other tabs. For example, If I move to 'U