Replicat abended

Hi,
im my active -active replication setup, today i'm getting the below error message , can you please help me to resolve this ,
2011-06-15 13:30:09 GGS ERROR 101 Oracle GoldenGate Delivery for Oracle,
REP_TAR2.prm: Must be IGNORE, DISCARD, ABEND, EXCEPTION, TRANSABORT or RETRYOP
Where i need to set the above parameters, please find below the map statements which is configured in both replicat prm files
MAP replica.test, TARGET replica.item_descr, &
REPERROR ( DEFAULT , EXCEPTION ) , &
SQLEXEC ( ID detect_conflict, &
ON UPDATE, &
QUERY "SELECT 0 conflict FROM replica.test WHERE batch_id=:p_batch_id AND total=:p_total_before", &
PARAMS(p_batch_id=batch_id,p_total_before=BEFORE.total), &
ALLPARAMS REQUIRED , &
BEFOREFILTER, &
EXEC MAP, &
TRACE ALL, &
ERROR RAISE );
also i have written a procedure on both side for mismatch,
create or replace PROCEDURE ggadmin.h (
p_batch_id IN NUMBER
, p_total_after IN NUMBER
, p_total_before IN NUMBER)
IS
BEGIN
UPDATE replica.test
SET total = total + (p_total_after - p_total_before)
WHERE batch_id = p_batch_id;
END h;
Please help to resolve the 2011-06-15 13:30:09 GGS ERROR 101 Oracle GoldenGate Delivery for Oracle,
REP_TAR2.prm: Must be IGNORE, DISCARD, ABEND, EXCEPTION, TRANSABORT or RETRYOP
when i start the replicat process both side it goes ABENDED status... below are the full replicat process entries please advice...
-- Replicat process
REPLICAT REP_SRC1
-- Environment Settings
USERID ggadmin, PASSWORD ggadmin
-- Discard file path
DISCARDFILE E:\ggs\dirrpt\rep1_dsc.rpt, append
-- Grneral Parameters
ASSUMETARGETDEFS
-- Truncate parameter
--GETTRUNCATES
DDL INCLUDE ALL
DDLERROR DEFAULT IGNORE RETRYOP
--HANDLECOLLISIONS
APPLYNOOPUPDATES
-- Mapping parameters
GETAPPLOPS
IGNOREREPLICATES
-- This starts the macro
--MAP replica.*, target replica.*;
MAP replica.test , TARGET replica.test, &
REPERROR ( DEFAULT, EXCEPTION ), &
SQLEXEC ( ID detect_conflict, &
ON UPDATE, &
QUERY "SELECT 0 conflict FROM replica.test WHERE batch_id=:p_batch_id AND total=:p_total_before", &
PARAMS(p_batch_id=batch_id,p_total_before=BEFORE.total), &
ALLPARAMS REQUIRED, &
BEFOREFILTER, &
EXEC MAP, &
TRACE ALL, &
ERROR RAISE );
MACRO #exception_handler
BEGIN
, TARGET ggadmin.exceptions
, EXCEPTIONSONLY
, SQLEXEC ( SPNAME ggadmin.h, &
PARAMS(p_batch_id = batch_id, &
p_total_after = total, &
p_total_before = BEFORE.total)
, EXEC MAP
, TRACE ALL
, COLMAP ( rep_name = "rep_src1"
, table_name = @GETENV ("GGHEADER", "TABLENAME")
, errno = @GETENV ("LASTERR", "DBERRNUM")
, dberrmsg = @GETENV ("LASTERR", "DBERRMSG")
, optype = @GETENV ("LASTERR", "OPTYPE")
, errtype = @GETENV ("LASTERR", "ERRTYPE")
, logrba = @GETENV ("GGHEADER", "LOGRBA")
, logposition = @GETENV ("GGHEADER", "LOGPOSITION")
, committimestamp = @GETENV ("GGHEADER", "COMMITTIMESTAMP")
, batch_id=batch_id
, batch_id_before = BEFORE.batch_id
--, total_after = total
, total_before = BEFORE.total
, record_image = @GETENV ("GGHEADER", "BEFOREAFTERINDICATOR"))
, INSERTALLRECORDS
END;
-- This ends the macro
Edited by: Atp on Jun 15, 2011 5:49 PM

Hi Steven,
Thanks for your reply,
the problem is space between ( and DEFAULT also between EXCEPTION and ) after removing the space its working fine....
REPERROR (DEFAULT, EXCEPTION), &

Similar Messages

  • How to continue after replicat abended?

    Hi,
    If my replicat abended fron user error - how do I proceed?
    With streams we sometimes fix the row (update/delete/insert) and did retry all error and sometimes we just expdp the data...

    Find out what the error is/was. Use a discard file, add in your own exception handling, look at the replicat report/ggsevt log. Fix and then restart the replicat.

  • Replicat abend

    Hi
    i new with goldengate and i'm sorry if my english is bad.
    i'm trying to do active-active replicat from oracle 10gr2 to oracle 10gr2 using goldengate
    source n target have been running
    when i create table in source, target will recognize that
    but i have a problem
    this is what i do.
    source :
    drop table a
    target :
    select * from table a -> the result is table a not found (extract and replicat still running)
    then i do : select * from table a at source, then my replicat at target abend.
    cannot find table sender.a
    how can i handle this?
    can anyone help me about sqlexec too?
    how i use commit by using sqlexec? i put it on extract or replicat?
    i need to do the extract n replicat commit the dml automatically.
    therefore, i don't need to do commit everytime i do insert at source.
    thanks for helllpppp.. really need this.
    Edited by: 826012 on Jan 6, 2011 2:17 AM
    Edited by: 826012 on Jan 6, 2011 2:18 AM

    Source :
    extract ext_1
    userid oraclegg, password oracle
    rmthost 192.168.111.129, mgrport 7809
    rmttrail /u01/app/oracle/ggs/dirdat/aa
    ddl include mapped objname sender.*
    table sender.*;
    replicat rep_2
    assumetargetdefs
    userid oraclegg, password oracle
    map receiver.*, target sender.*;
    Target :
    extract ext_2
    userid oraclegg, password oracle
    rmthost 192.168.111.182, mgrport 7809
    rmttrail /u01/app/oracle/ggs/dirdat/bb
    ddl include mapped objname receiver.*
    table receiver.*;
    replicat rep_1
    assumetargetdefs
    userid oraclegg, password oracle
    map sender.*, target receiver.*;
    this is the error for rep_2 :
    2011-01-06 15:45:00 ERROR OGG-01296 Error mapping from RECEIVER.A to SENDER.A.
    next case is this :
    before i run my extract and replicat at source and target, i drop table A from schema receiver and sender, then when i start extract and replicat, the replicat (rep_1 and rep_2) are abended.
    error at rep_1 :
    2011-01-07 07:16:19 ERROR OGG-00519 Fatal error executing DDL replication: error [Error code [942], ORA-00942: table or view does not exist, SQL drop table "SENDER"."A" /* GOLDENGATE_DDL_REPLICATION */], no error handler present.
    error at rep_2 :
    2011-01-07 07:25:00 ERROR OGG-00199 Table RECEIVER.A does not exist in target database.
    what error handler to handle this? how can i use ignore?
    thanks for help......

  • Replicat Abend (error COLMAP)

    Hi all,
    anybody can help me to resolv this error.
    when i try to start replicat on target DB with cancatenates,,i got this message error,,
    2011-02-11 16:53:18 INFO OGG-01298 Column function diagnostic message: could not find column TGL_MSK.
    ...L = @STRCAT ( TGL_MSK ,"_", PO...
    ^
    Error in COLMAP clause. Invalid function or argument.
    2011-02-11 16:53:18 ERROR OGG-00919 Error in COLMAP clause.
    2011-02-11 16:53:18 ERROR OGG-01668 PROCESS ABENDING.
    this is the structure of table source and target :
    source : target :
    Test Test
    1. ID 1. ID
    2. Nama 2. Nama
    3. Alamat 3. Alamat
    4. Telp 4. Telp
    5. Tgl_msk 5. TGL
    6. Posisi
    this is the parameter on source and target :
    extract eora
    userid ggs_own, password ggs_own
    rmthost 10.1.10.102, mgrport 7809
    rmttrail ./dirdat/rt
    table ggs_own.test;
    replicat rora
    userid ggt_own, password ggt_own
    ASSUMETARGETDEFS
    DISCARDFILE ./dirdat/rora.dsc, PURGE
    map ggs_own.test, target ggt_own.test,
    COLMAP ( ID = ID, NAMA = NAMA, ALAMAT = ALAMAT, TELP = TELP, TGL = @STRCAT ( TGL_MSK ,"_", POSISI ));
    what should i do to resolv this error,,
    thx
    Regards,

    You cannot use ASSUMETARGETDEFS here because the tables do not meet the rules for being identical.
    Page 117 in the reference guide.

  • Replicat abends with "not a valid month"  error

    Here is what i see in the log:
    2015-04-16 14:02:21  ERROR   OGG-00665  OCI Error Flushing database inbound server, 'OGG$REP02' (status = 26815-ORA-26815: Error from Apply Network Receiver for Apply "OGG$REP02" and Capture "replicat".
    ORA-01843: not a valid month), SQL<select status, deferrable from dba_constraints where owner =UPPER('PRIME') and table_name=UPPER('FGCTRXNMESSAGERULES') and constraint_type = 'P' >.
    My replicat is integrated with parallelism set to 4.
    How can i find the error? Thanks.

    Hi ,
    Could you please share the extract and replicat parameter's contents?
    What is the version of GG you are using?
    Did you check the Character set of both source and target?
    Regards,
    Veera

  • Replicat process abending with no error in logfile

    Hi,
    I m trying to replication from 11g to 10g on the same physical host. Below the replicat abending but unable to find the source of error in view GGSEVT logfile.
    GGSCI (rhel5.4_prod) 8> info all
    Program     Status      Group       Lag at Chkpt  Time Since Chkpt
    MANAGER     RUNNING                                          
    EXTRACT     RUNNING     EXTLOCAL    00:00:00      00:00:07   
    REPLICAT    ABENDED     REPLOCAL    00:00:00      18:12:27
    2013-04-16 09:58:40  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): start mgr.
    2013-04-16 09:58:41  INFO    OGG-00983  Oracle GoldenGate Manager for Oracle, mgr.prm:  Manager started (port 7809).
    2013-04-16 09:58:45  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): start extract extlocal.
    2013-04-16 09:58:45  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from GGSCI on host rhel5.4_prod (START EXTRACT EXTLOCAL ).
    2013-04-16 09:58:45  INFO    OGG-00975  Oracle GoldenGate Manager for Oracle, mgr.prm:  EXTRACT EXTLOCAL starting.
    2013-04-16 09:58:45  INFO    OGG-00992  Oracle GoldenGate Capture for Oracle, extlocal.prm:  EXTRACT EXTLOCAL starting.
    2013-04-16 09:58:45  INFO    OGG-03035  Oracle GoldenGate Capture for Oracle, extlocal.prm:  Operating system character set identified as UTF-8. Locale: en_US, LC_ALL:.
    2013-04-16 09:58:46  INFO    OGG-03500  Oracle GoldenGate Capture for Oracle, extlocal.prm:  WARNING: NLS_LANG environment variable does not match database character set, or not set. Using database
    character set value of US7ASCII.
    2013-04-16 09:58:46  INFO    OGG-01815  Oracle GoldenGate Capture for Oracle, extlocal.prm:  Virtual Memory Facilities for: BR
        anon alloc: mmap(MAP_ANON)  anon free: munmap
        file alloc: mmap(MAP_SHARED)  file free: munmap
        target directories:
        /u05/GG/BR/EXTLOCAL.
    2013-04-16 09:58:46  INFO    OGG-01815  Oracle GoldenGate Capture for Oracle, extlocal.prm:  Virtual Memory Facilities for: COM
        anon alloc: mmap(MAP_ANON)  anon free: munmap
        file alloc: mmap(MAP_SHARED)  file free: munmap
        target directories:
        /u05/GG/dirtmp.
    2013-04-16 09:58:46  INFO    OGG-01513  Oracle GoldenGate Capture for Oracle, extlocal.prm:  Positioning to Sequence 22, RBA 18459664, SCN 0.1177097.
    2013-04-16 09:58:46  INFO    OGG-01516  Oracle GoldenGate Capture for Oracle, extlocal.prm:  Positioned to Sequence 22, RBA 18459664, SCN 0.1177097, Apr 15, 2013 4:21:50 PM.
    2013-04-16 09:58:46  INFO    OGG-00993  Oracle GoldenGate Capture for Oracle, extlocal.prm:  EXTRACT EXTLOCAL started.
    2013-04-16 09:58:46  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from EXTRACT on host rhel5.4_prod (START SERVER CPU -1 PRI -1  TIMEOUT 300 PARAMS ).
    2013-04-16 09:58:46  INFO    OGG-01677  Oracle GoldenGate Collector for Oracle:  Waiting for connection (started dynamically).
    2013-04-16 09:58:46  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from SERVER on host localhost.localdomain (REPORT 4714 7819).
    2013-04-16 09:58:46  INFO    OGG-00974  Oracle GoldenGate Manager for Oracle, mgr.prm:  Manager started collector process (Port 7819).
    2013-04-16 09:58:46  INFO    OGG-01228  Oracle GoldenGate Collector for Oracle:  Timeout in 300 seconds.
    2013-04-16 09:58:51  INFO    OGG-01226  Oracle GoldenGate Capture for Oracle, extlocal.prm:  Socket buffer size set to 27985 (flush size 27985).
    2013-04-16 09:58:51  INFO    OGG-01229  Oracle GoldenGate Collector for Oracle:  Connected to rhel5.4_prod:11890.
    2013-04-16 09:58:51  INFO    OGG-01669  Oracle GoldenGate Collector for Oracle:  Opening /u05/GG/dirdat/aa000000 (byte -1, current EOF 1145).
    2013-04-16 09:58:51  INFO    OGG-01670  Oracle GoldenGate Collector for Oracle:  Closing /u05/GG/dirdat/aa000000.
    2013-04-16 09:58:51  INFO    OGG-01055  Oracle GoldenGate Capture for Oracle, extlocal.prm:  Recovery initialization completed for target file /u05/GG/dirdat/aa000000, at RBA 1145.
    2013-04-16 09:58:51  INFO    OGG-01478  Oracle GoldenGate Capture for Oracle, extlocal.prm:  Output file /u05/GG/dirdat/aa is using format RELEASE 11.2.
    2013-04-16 09:58:51  INFO    OGG-01669  Oracle GoldenGate Collector for Oracle:  Opening /u05/GG/dirdat/aa000000 (byte 1145, current EOF 1145).
    2013-04-16 09:58:51  INFO    OGG-01735  Oracle GoldenGate Collector for Oracle:  Synchronizing /u05/GG/dirdat/aa000000 to disk.
    2013-04-16 09:58:51  INFO    OGG-01735  Oracle GoldenGate Collector for Oracle:  Synchronizing /u05/GG/dirdat/aa000000 to disk.
    2013-04-16 09:58:51  INFO    OGG-01670  Oracle GoldenGate Collector for Oracle:  Closing /u05/GG/dirdat/aa000000.
    2013-04-16 09:58:51  INFO    OGG-01026  Oracle GoldenGate Capture for Oracle, extlocal.prm:  Rolling over remote file /u05/GG/dirdat/aa000001.
    2013-04-16 09:58:51  INFO    OGG-01669  Oracle GoldenGate Collector for Oracle:  Opening /u05/GG/dirdat/aa000001 (byte -1, current EOF 0).
    2013-04-16 09:58:51  INFO    OGG-01053  Oracle GoldenGate Capture for Oracle, extlocal.prm:  Recovery completed for target file /u05/GG/dirdat/aa000001, at RBA 1018.
    2013-04-16 09:58:51  INFO    OGG-01057  Oracle GoldenGate Capture for Oracle, extlocal.prm:  Recovery completed for all targets.
    2013-04-16 09:58:51  INFO    OGG-01517  Oracle GoldenGate Capture for Oracle, extlocal.prm:  Position of first record processed Sequence 22, RBA 18459664, SCN 0.1177097, Apr 15, 2013 4:21:50 PM.
    2013-04-16 09:58:51  INFO    OGG-00732  Oracle GoldenGate Capture for Oracle, extlocal.prm:  Found crash recovery marker from thread #1 on sequence 23 at RBA 1040. Aborting uncommitted transactions
    2013-04-16 09:58:56  INFO    OGG-00987  Oracle GoldenGate Command Interpreter for Oracle:  GGSCI command (oracle): start replicat replocal.
    2013-04-16 09:58:56  INFO    OGG-00963  Oracle GoldenGate Manager for Oracle, mgr.prm:  Command received from GGSCI on host rhel5.4_prod (START REPLICAT REPLOCAL ).
    2013-04-16 09:58:56  INFO    OGG-00975  Oracle GoldenGate Manager for Oracle, mgr.prm:  REPLICAT REPLOCAL starting.
    2013-04-16 09:58:56  INFO    OGG-00995  Oracle GoldenGate Delivery for Oracle, replocal.prm:  REPLICAT REPLOCAL starting.
    2013-04-16 09:58:56  INFO    OGG-03035  Oracle GoldenGate Delivery for Oracle, replocal.prm:  Operating system character set identified as UTF-8. Locale: en_US, LC_ALL:.
    2013-04-16 09:58:56  INFO    OGG-01815  Oracle GoldenGate Delivery for Oracle, replocal.prm:  Virtual Memory Facilities for: COM
        anon alloc: mmap(MAP_ANON)  anon free: munmap
        file alloc: mmap(MAP_SHARED)  file free: munmap
        target directories:
        /u05/GG/dirtmp.
    2013-04-16 09:58:56  INFO    OGG-00996  Oracle GoldenGate Delivery for Oracle, replocal.prm:  REPLICAT REPLOCAL started.Configuration
    GGSCI (rhel5.4_prod) 9> view params mgr
    PORT 7809
    USERID ggs_owner, PASSWORD ggs_owner
    PURGEOLDEXTRACTS /u05/GG/dirdat/ex, USECHECKPOINTS
    GGSCI (rhel5.4_prod) 10> view params extlocal
    extract extlocal
    userid ggs_owner, password ggs_owner
    setenv (ORACLE_HOME="/u03/app/oracle/product/11.2.0/db_1")
    setenv (ORACLE_SID="PROD11G")
    rmthost 192.168.1.9, mgrport 7809
    rmttrail /u05/GG/dirdat/aa
    TABLE TESTUSER.*;
    GGSCI (rhel5.4_prod) 11> view params replocal
    REPLICAT replocal
    SETENV (ORACLE_HOME="/u02/app10g/oracle10g/product/10.2.0/db_1")
    SETENV (ORACLE_SID="PROD10G")
    SETENV (NLS_LANG="AMERICAN_AMERICA.US7ASCII")
    ASSUMETARGETDEFS
    USERID ggs_owner, PASSWORD ggs_owner
    MAP TESTUSER.*, TARGET TESTUSER.*;

    Hi,
    Not sure if you have created a definition file. Try if your source and target has a mismatch. Also, find below some additional parameters which will help in sorting out the issue:
    DISCARDFILE :
    Valid for Extract and Replicat
    Use the DISCARDFILE parameter to generate a discard file to which GoldenGate can log records that it cannot process. Records can be discarded for several reasons. For example,
    a record is discarded if the underlying table structure changed since the record was written to the trail. You can use the discard file to help you identify the cause of processing errors. Each entry in the discard file contains the discarded record buffer and an error code indicating the reason. GoldenGate creates the specified discard file in the dirrpt subdirectory of the GoldenGate installation directory. You can view it with a text editor or by using the following command in GGSCI.
    VIEW REPORT
    Where: is the fully qualified name of the discard file.
    To prevent having to perform manual maintenance of discard files, use either the PURGE or APPEND option. Otherwise, you must specify a different discard file name before starting
    each process run, because GoldenGate will not write to an existing discard file. To set an upper limit for the size of the file, use either the MAXBYTES or MEGABYTES option. If
    the specified size is exceeded, the process will abend. Default By default, GoldenGate does not generate a discard file.
    DISCARDROLLOVER:
    Valid for Extract and Replicat
    Use the DISCARDROLLOVER parameter to set a schedule for aging discard files. For long or continuous runs, setting an aging schedule prevents the discard file from filling up and
    causing the process to abend, and it provides a predictable set of archives that can be included in your archiving routine.
    When the DISCARDROLLOVER age point is reached, a new discard file is created, and old files are renamed in the format of ., where:
    ? is the name of the Extract or Replicat group
    ? is a number that gets incremented by one each time a new file is created, for
    example: myext0.dsc, myext1.dsc, myext2.dsc, and so forth.
    You can specify a time of day, a day of the week, or both. Specifying just a time of day (AT option) without a day of the week (ON option) generates a discard file at the specified time every day.
    Default Disabled. No rules specified.
    REPERROR:
    Use REPERROR to specify an error and a response that together control how Replicat responds to the error when executing the MAP statement. You can use REPERROR at the MAP level to override and supplement global error handling rules set with the REPERROR parameter. Multiple REPERROR statements can be applied to the same MAP statement to
    enable automatic, comprehensive management of errors and interruption-free replication processing.
    DEFAULT Sets a global response to all errors except those for which explicit REPERROR statements are specified.
    GETDELETES | IGNOREDELETES:
    Valid for Extract and Replicat
    Use the GETDELETES and IGNOREDELETES parameters to control whether or not GoldenGate processes delete operations. These parameters are table-specific. One parameter remains in effect for all subsequent TABLE or MAP statements, until the other parameter is encountered.
    GETUPDATES | IGNOREUPDATES:
    Valid for Extract and Replicat
    Use the GETUPDATES and IGNOREUPDATES parameters to control whether or not GoldenGate processes update operations. The parameters are table-specific. One parameter remains in effect for all subsequent TABLE or MAP statements, until the other parameter is encountered.
    GETINSERTS | IGNOREINSERTS:
    Valid for Extract and Replicat
    Use the GETINSERTS and IGNOREINSERTS parameters to control whether or not insert operations are processed by GoldenGate. The parameters are table-specific. One parameter remains in effect for all subsequent TABLE or MAP statements, until the other parameter is encountered.
    Update the parameter file on target as
    edit params <TARGET PARAM FILE>
    REPLICAT rcreator
    SOURCEDEFS /u01/app/oracle/product/goldengate/dirdat/defecreator
    DISCARDFILE /u01/app/oracle/product/goldengate/dirdat/creator_err, purge
    DISCARDROLLOVER ON saturday
    USERID goldengate, PASSWORD AACAAAAAAAAAAAKAPATACEHBIGQGCFZCCDIGAEMCQFFBZHVC, ENCRYPTKEY default
    REPERROR (DEFAULT, DISCARD)
    IGNOREDELETES
    IGNOREUPDATES
    GETINSERTS
    MAP meditate.life, TARGET CONSCIOUSNESS.tenure, &
    COLMAP (PERSON_ID=HUMAN_ID, &
    INITIALNAME=FIRSTNAME, &
    ENDNAME=LASTNAME, &
    BIRTH_DATE=DATE_OF_BITH, &
    AGE_AT_DEATH=AGE_AT_TIME_OF_DEATH, &
    DEED_ID_AT_DEATH=DEED_ID_AT_TIME_OF_DEATH), &
    KEYCOLS (PERSON_ID, INITIALNAME,ENDNAME);
    Now stop and start the replicat on target as:
    GGSCI (goldengate) 9> stop replicat RCREATOR
    Sending STOP request to REPLICAT RCREATOR ...
    Request processed.
    GGSCI (goldengate) 10> info all

  • What happens to replicat when a checkpoint table is accidentally removed ?

    Please let me know what happens when a active checkpoint table is removed?
    Does the replicat abend or does it pick from where it left off by reading the trail file.

    Hi,
    Oracle GoldenGatge keeps track of the details of the transactions that are replicated by two methods.
    1. Firstly and always GoldenGate writes to a checkpoint file which resides in the DIRCHK directory.If this Checkpoint File is lost or removed then GoldenGate loses track of your process.
    2. Optionally, you can create a CHECKPOINTTABLE during the creation of the Replicat Process. This Checkpoint table can be specified Globally in the ./GLOBALS parameter or separate checkpoint tables can be created for each processes.
    But Oracle highly recommends to create the Checkpoint table.
    When replicat starts, it will compare the checkpoint file with the checkpoint table. This has been brought because, in the event of failure, the checkpoint file and checkpoint table are referred or read by these processes and it gets started from the point of failure avoiding the re-capture and re-apply of the transactions.
    An another useful thing in using the Checkpoint table is, If you stop the Replicat process and flashback the target database and then start the replicat process again, you do not have to change or modify anything at the GoldenGate level. The Replicat process will just pick up as if you also flashed back the GoldenGate inspite of having all the trail files. This is because your Checkpoint Table will also get flashed back and the replicat process reads the checkpointtable and works accordingly.
    Regards,
    Veera

  • To retrieve data after process abended

    Hi everyone,
    Is there any method of replicating the DDL,DML 's fired after the processes like replicat abended.
    Currently i am using : alter replicat rep1 begin now
    It seems to work to make processes running again but the i lost the data that was replicated after the process abended.
    plz help......
    thanks
    Saurav

    Hi,
    1.
    My Suggestion is NOT to use BEGIN NOW option with Replicat. This will make your target tables go out of sync and miss some of the DML/DDL as you are altering replciat to process from current time stamp instead of recovery.
    GGSCI>alter replicat rep1 begin now
    Instead you should always start at seqno 0 and RBA 0 if you are starting fresh or starting Relicat for first time
    GGSCI>alter replicat <replicat_name>, Extseqno 0, Extrba 0
    GGSCI>start replicat <replicat_name>
    OR
    if the Replicat has abended earlier and you would like to restart it, you should simply restart it as it will have all the checkpoint information with it and it will automatically start processing data from the recovery checkpoint(trail file).
    GGSCI>start replicat <replicat_name>
    OR
    If you intend to start processing fom a specific trail file then you should use below command
    Example:
    $cd trail
    $ls -ltr
    lt000123
    lt000124
    lt000125
    If you are sure that the Replciat processed trail file 123 and you would like to start from trail file seq 124 then try
    GGSCI>alter replicat <replicat_name>, Extseqno 124, Extrba 0
    GGSCI>start replicat <replicat_name>
    OR
    If you want to start processing from specific record or start of transaction with in a trail file then you could use LOGDUMP utility to find the RBA and use the same to alter the Replicat.
    GGSCI>alter replicat <replicat_name>, Extseqno 124, Extrba 8999934
    GGSCI>start replicat <replicat_name>
    2.
    As you have already lost some of the data and your target DB is already out of sync, I would suggest below method to resync it.
    full database export using expdp(Oracle Source to Oracle Target)
    1) Enable Minimal Supplemental Logging in Oracle on source
    SQLPLUS > alter database add supplemental log data ;
    2) Enable Supplemental Logging at Table Level on source
    GGSCI> dblogin userid xxxxx password xxxxxx
    GGSCI> add trandata <schema>.<tablename>
    3) Add Extract, Add Exttrail, Add Pump, Add Rmttrail on source
    4) Start Extract, Start Pump on source
    5) Create a database directory:
    SQLPLUS> create directory dumpdir as '<some directory>' ;
    6) Get the current SCN on the source database:
    SQLPLUS> select current_scn from v$database ;
    28318029
    7) Run the export using the flashback SCN you obtained in the previous step. The following example shows running the expdp utility at a Degree Of Parallelism (DOP) of 4. If you have sufficient system resources (CPU,memory and IO) then running at a higher DOP will decrease the amount of time it takes to take the export (up to 4x for a DOP of 4). Note that expdp uses Oracle Database parallel execution settings (e.g.parallel_max_servers) which have to be set appropriately in order to take advantage of parallelism. Other processes running in parallel may be competing for those resources. See the Oracle Documentation for more details.
    a.expdp directory=dumpdir full=y parallel=4 dumpfile=ora102_%u.dmp flashback_scn=28318029
    Username: sys as sysdba
    Password:
    Note: The export log needs to be checked for errors.
    8) Start an import using impdp to the target database when step 7 is complete.
    9) Add and Start Replicat:
    GGSCI> add replicat <rep_name>, exttrail ./dirdat/<xx>
    GGSCI> start replicat <rep_name>, aftercsn <value returned from step 6>
    Hope this information helps.
    Thanks & Regards
    SK

  • GoldenGate Initial Load Replicat

    Initial Load REPLICAT Paramter File
    REPLICAT 1_IRMRI
    SPECIALRUN
    ASSUMETARGETDEFS
    HANDLECOLLISIONS
    DBOPTIONS USEODBC
    SOURCEDB XXX, USERID XXX, PASSWORD XXX
    EXTFILE ./dirdat/INITMRI000000
    EXTFILE ./dirdat/INITMRI000001
    EXTFILE ./dirdat/INITMRI000002
    EXTFILE ./dirdat/INITMRI000003
    EXTFILE ./dirdat/INITMRI000004
    EXTFILE ./dirdat/INITMRI000005
    EXTFILE ./dirdat/INITMRI000006
    EXTFILE ./dirdat/INITMRI000007
    EXTFILE ./dirdat/INITMRI000008
    EXTFILE ./dirdat/INITMRI000009
    EXTFILE ./dirdat/INITMRI000010
    EXTFILE ./dirdat/INITMRI000011
    EXTFILE ./dirdat/INITMRI000012
    EXTFILE ./dirdat/INITMRI000013
    EXTFILE ./dirdat/INITMRI000014
    EXTFILE ./dirdat/INITMRI000015
    EXTFILE ./dirdat/INITMRI000016
    EXTFILE ./dirdat/INITMRI000017
    EXTFILE ./dirdat/INITMRI000018
    EXTFILE ./dirdat/INITMRI000019
    EXTFILE ./dirdat/INITMRI000020
    EXTFILE ./dirdat/INITMRI000021
    EXTFILE ./dirdat/INITMRI000022
    EXTFILE ./dirdat/INITMRI000023
    EXTFILE ./dirdat/INITMRI000024
    EXTFILE ./dirdat/INITMRI000025
    EXTFILE ./dirdat/INITMRI000026
    EXTFILE ./dirdat/INITMRI000027
    EXTFILE ./dirdat/INITMRI000028
    EXTFILE ./dirdat/INITMRI000029
    EXTFILE ./dirdat/INITMRI000030
    EXTFILE ./dirdat/INITMRI000031
    EXTFILE ./dirdat/INITMRI000032
    EXTFILE ./dirdat/INITMRI000033
    EXTFILE ./dirdat/INITMRI000034
    DISCARDFILE ./dirrpt/1_IRMRI.dsc, PURGE
    MAP dbo.*, TARGET dbo.*;
    END RUNTIME
    The above parameter file does not pickup all the EXTFILE only the last file EXTFILE ./dirdat/INITMRI000034 is used by the REPLICAT process. I want to use all the EXTFILE ??
    The Syntax to add REPLICAT with multiple EXTFILE
    GGSCI>> ADD REPLICAT 1_IRMRI, EXTFILE ./dirdat/INITMRI*
    Can I use wildcard character in the above syntax ??

    Have you tried the Metalink Doc regarding that error?
    What Causes The "Bad Column Index(xxxx)" Error In Replicat? [ID 972954.1]
    Applies to:
    Oracle GoldenGate - Version: 4.0.0 - Release: 4.0.0
    Information in this document applies to any platform.
    Solution
    The "Bad Column Index(xxxx)" error in Replicat is caused by a Source Column Index "xxxx" greater than the number of columns in the Source Table Definition File Input to the Replicat process or if the ASSUMETARGETDEFS parameter is used and the Source Table and Target Table do not have the same structure, the Source Table has more columns than the Target Table.
    Example
    GGS ERROR 160 Bad column index(129) specified for table {table name}, max columns = 127
    Explanation
    The Source Table Trail Record has an Index and Data for Column Number 129 but only 127 columns are defined in the Source Table Definition File or when the ASSUMETARGETDEFS parameter is used in the Replicat Parameter File the Target Table contains 127 columns.
    This is generally caused by changes in the Source Table or Target Table(i.e. columns have been added or deleted and a new Source Definition File has not been created to reflect the Source Table structure to match the Trail Records that Replicat is trying to process.
    To resolve this error, run DEFGEN on the Source System for the Table causing the Replicat abend, copy that Definition File to the Target system. Add this SOURCEDEFS file to the Replicat Parameter file and restart the Replicat process.
    Note: This applies to all Open Systems platforms except z/OS(IBM mainframe)

  • Expdp impdp 基于SCN 的GG初始化,导出时源端多了个一个对象,导致rep ABENDED

    大侠麻烦帮忙看一下,如题,一下是状态信息
    GGSCI (CTU1) 10> info all
    Program Status Group Lag Time Since Chkpt
    MANAGER RUNNING
    REPLICAT ABENDED REP1 00:19:57 00:17:50
    view report rep1
    2012-10-11 10:24:27 INFO OGG-01020 Processed extract process RESTART_ABEND record at seq 2, rba 1294 (aborted 0 records).
    2012-10-11 10:24:27 INFO OGG-01020 Processed extract process RESTART_ABEND record at seq 2, rba 1354 (aborted 0 records).
    2012-10-11 10:24:27 INFO OGG-01020 Processed extract process RESTART_ABEND record at seq 2, rba 1413 (aborted 0 records).
    2012-10-11 10:24:27 INFO OGG-01374 Transaction delivery commencing at position Seqno 2, RBA 1472, Transaction ID 10.19.224, CSN 534581, 116 transaction(s) skipped.
    Wildcard MAP resolved (entry AKU.*):
    map AKU.SYS_EXPORT_SCHEMA_01, target aku.SYS_EXPORT_SCHEMA_01;
    2012-10-11 10:24:27 WARNING OGG-00869 Failed to retrieve column list handle for table AKU.SYS_EXPORT_SCHEMA_01.
    Source Context :
    SourceModule : [er.main]
    SourceID : [scratch/sganti/view_storage/sganti_core_lin32/oggcore/OpenSys/src/app/er/rep.c]
    SourceFunction : [get_map_entry]
    SourceLine : [8796]
    ThreadBacktrace : [11] elements
    帖子经 user12225570编辑过

    OGG
    Oracle GoldenGate Command Interpreter for Oracle
    Version 11.1.1.1 OGGCORE_11.1.1_PLATFORMS_110421.2040
    Linux, x86, 32bit (optimized), Oracle 10g on Apr 21 2011 22:19:02
    DB
    SQL*Plus: Release 10.2.0.1.0 - Production on Thu Oct 11 10:51:39 2012
    Copyright (c) 1982, 2005, Oracle. All rights reserved.

  • How to retrieve only error message through report file

    Hi,
    When there is extract/replicat abended,we need to check complete report file to see the error message.
    I would like to know is there parameter setting available ,so that we can retrieve only required error message.
    For ex. Instead of complete error message to check in report file,i need to see below meesage only,starting from "source Context".
    Source Context :
    SourceModule : [er.main]
    SourceID : [scratch/pradshar/view_storage/pradshar_bugdbrh40_12927937/oggcore/OpenSys/src/app/er/rep.c]
    SourceFunction : [get_map_entry]
    SourceLine : [9126]
    ThreadBacktrace : [11] elements
    : [ora/gg/install/replicat(CMessageContext::AddThreadContext()+0x26) [0x5f2ac6]]
    : [ora/gg/install/replicat(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+0x7b2) [0x5e9562]]
    : [ora/gg/install/replicat(_MSG_ERR_DB_CLAUSE_ERROR(CSourceContext*, char const*, CMessageFactory::MessageDisposition)+0x92) [0x5b1352]
    : [ora/gg/install/replicat(get_map_entry(char*, int, __wc*, int)+0x1dd6) [0x4fcec6]]
    : [ora/gg/install/replicat [0x5497e5]]
    : [/ora/gg/install/replicat(WILDCARD_check_table(char const*, char const*, int, unsigned int*, int, unsigned int, DBString<777>*, int)+0
    x16b) [0x54b08b]]
    : [ora/gg/install/replicat(REP_find_source_file_wc(char const*, unsigned int, DBString<777>*, int)+0x350) [0x903d50]]
    : [ora/gg/install/replicat [0x90bb0d]]
    : [ora/gg/install/replicat(main+0x84b) [0x5081ab]]
    : [lib64/libc.so.6(__libc_start_main+0xf4) [0x2b87d13469b4]]
    : [ora/gg/install/replicat(__gxx_personality_v0+0x1da) [0x4e479a]]
    2012-07-09 02:20:48 ERROR OGG-00919 Error in COLMAP clause.
    --------------------------------------------------------------------------------------------------------------------------------------------------------

    Nice..i think awk is better option.
    Just one thing.awk command only displays part of the information instead of complete below information.
    Ex: egrep -q ERROR dirrpt/PODS00C1.rpt && awk '/^Source Context/,/ERROR/ { print $0 }' dirrpt/PODS00C1.rpt
    [22:00]goldengate]$ egrep -q ERROR dirrpt/PODS00C1.rpt && awk '/^Source Context/,/ERROR/ { print $0 }' dirrpt/PODS00C1.rpt
    Source Context :
    SourceModule : [ggdb.ora.sess]
    SourceID : [scratch/pradshar/view_storage/pradshar_bugdbrh40_12927937/oggcore/OpenSys/src/gglib/ggdbora/ocisess.c]
    SourceFunction : [OCISESS_try]
    SourceLine : [500]
    ThreadBacktrace : [12] elements
    : [orashare/gg/navc1/extract(CMessageContext::AddThreadContext()+0x26) [0x6705e6]]
    : [orashare/gg/navc1/extract(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+0x7b2) [0x667082]]
    : [orashare/gg/navc1/extract(_MSG_ERR_ORACLE_OCI_ERROR_WITH_DESC(CSourceContext*, int, char const*, char const*, CMessageFactory::MessageDisposition)+0xa6) [0x61f2c6]]
    Where as i would like to see complete information including ERROR details as mentioned below.Do you have any awk command for this?
    Required below output:
    Source Context :
    SourceModule : [ggdb.ora.sess]
    SourceID : [scratch/pradshar/view_storage/pradshar_bugdbrh40_12927937/oggcore/OpenSys/src/gglib/ggdbora/ocisess.c]
    SourceFunction : [OCISESS_try]
    SourceLine : [500]
    ThreadBacktrace : [12] elements
    : [orashare/gg/navc1/extract(CMessageContext::AddThreadContext()+0x26) [0x6705e6]]
    : [orashare/gg/navc1/extract(CMessageFactory::CreateMessage(CSourceContext*, unsigned int, ...)+0x7b2) [0x667082]]
    : [/orashare/gg/navc1/extract(_MSG_ERR_ORACLE_OCI_ERROR_WITH_DESC(CSourceContext*, int, char const*, char const*, CMessageFactory::MessageDisp
    osition)+0xa6) [0x61f2c6]]
    : [orashare/gg/navc1/extract(OCISESS_try(int, OCISESS_context_def*, char const*, ...)+0x353) [0x5a3d53]]
    : [orashare/gg/navc1/extract(OCISESS_logon(OCISESS_context_def*, char const*, char const*, char const*, int, int, int)+0x89c) [0x5a596c]]
    : [orashare/gg/navc1/extract(DBOCI_init_connection_logon(char const*, char const*, char const*, int, int, int, char*)+0x74) [0x5931a4]]
    : [orashare/gg/navc1/extract [0x597918]]
    : [orashare/gg/navc1/extract(gl_odbc_param(char const*, char const*, char*)+0x3b) [0x597f1b]]
    : [orashare/gg/navc1/extract [0x520b96]]
    : [orashare/gg/navc1/extract(main+0x1ce) [0x52726e]]
    : [lib64/libc.so.6(__libc_start_main+0xf4) [0x2af768923994]]
    : [orashare/gg/navc1/extract(__gxx_personality_v0+0x1ea) [0x4f3aba]]
    2012-09-06 16:48:50 ERROR OGG-00664 OCI Error beginning session (status = 1017-ORA-01017: invalid username/password; logon denied).
    2012-09-06 16:48:50 ERROR OGG-01668 PROCESS ABENDING.

  • Golden gate -  Unable to open file (error 2, The system cannot find the file specified.)

    Hi Everyone.
    I have configured GoldenGate on Win2008 R2, but when I start replicat, this fall.
    Initially:
    GGSCI (WIN-NKC50KUIT0G) 19> start replicat rep1 
    Sending START request to MANAGER ...
    REPLICAT REP1 starting
    GGSCI (WIN-NKC50KUIT0G) 20> info all
    Program     Status      Group       Lag at Chkpt  Time Since Chkpt
    MANAGER     RUNNING
    REPLICAT    STOPPED     REP1        00:00:00      00:37:53 
    GGSCI (WIN-NKC50KUIT0G) 21> info replicat rep1
    REPLICAT   REP1      Initialized   2013-11-02 22:23   Status STOPPED
    Checkpoint Lag       00:00:00 (updated 00:40:28 ago)
    Log Read Checkpoint  File C:\app\Oracle\product\gg\dirdat\tr000000
                         2013-11-02 22:23:55.000000
    With VIEW GGSEVT:
    2013-11-02 23:15:31  INFO    OGG-01815  Oracle GoldenGate Delivery for Oracle, R 
    EP1.prm:  Virtual Memory Facilities for: COM 
        anon alloc: MapViewOfFile  anon free: UnmapViewOfFile 
        file alloc: MapViewOfFile  file free: UnmapViewOfFile 
        target directories: 
        C:\app\Oracle\product\gg\dirtmp. 
    2013-11-02 23:15:31  ERROR   OGG-00446  Oracle GoldenGate Delivery for Oracle, R 
    EP1.prm:  Extract file not found or no records beyond begin time.   why??? 
    2013-11-02 23:15:31  ERROR   OGG-01668  Oracle GoldenGate Delivery for Oracle, R 
    EP1.prm:  PROCESS ABENDING. 
    After I tried with:
    GGSCI (WIN-NKC50KUIT0G) 8>Alter rep1, EXTSEQNO 0
    but
    GGSCI (WIN-NKC50KUIT0G) 9> info all
    Program     Status      Group       Lag at Chkpt  Time Since Chkpt
    MANAGER     RUNNING
    REPLICAT    ABENDED     REP1        00:00:00      01:11:50
    why??? abended??
    In logs:
    2013-11-03 14:07:02  INFO    OGG-00996  Oracle GoldenGate Delivery for Oracle, REP1.prm:  REPLICAT REP1 started. 
    2013-11-03 14:07:02  ERROR   OGG-01091  Oracle GoldenGate Delivery for Oracle, REP1.prm:  Unable to open file ".\dirdat\tr000000" (error 2, The system cannot find the file specified.).  why???
    2013-11-03 14:07:02  ERROR   OGG-01668  Oracle GoldenGate Delivery for Oracle, REP1.prm:  PROCESS ABENDING.
    GGSCI (WIN-NKC50KUIT0G) 12> info rep1, detail
    REPLICAT   REP1      Last Started 2013-11-03 14:30   Status ABENDED
    Checkpoint Lag       00:00:00 (updated 01:19:03 ago)
    Log Read Checkpoint  File .\dirdat\tr000000
                         First Record
      Extract Source                          Begin             End
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   First Record
      .\dirdat\tr000000                       * Initialized *   2013-11-03 12:54
    Current directory    C:\app\Oracle\product\gg
    Report file          C:\app\Oracle\product\gg\dirrpt\REP1.rpt
    Parameter file       C:\app\Oracle\product\gg\dirprm\REP1.prm
    Checkpoint file      C:\app\Oracle\product\gg\dirchk\REP1.cpr
    Checkpoint table     target.checkpoint
    Process file         C:\app\Oracle\product\gg\dirpcs\REP1.pcr
    Error log            C:\app\Oracle\product\gg\ggserr.log
    GGSCI (WIN-NKC50KUIT0G) 13> view param rep1
    REPLICAT rep1
    ASSUMETARGETDEFS
    USERID target, PASSWORD oracle
    discardfile .\discard\rep1_discard.txt, append, megabytes 10
    DDL
    map source.*, target target.*;
    I don´t understand it, How I could solve?? Please help me!
    Thank you.

    What steps did you use to add the Replicat?  Can you list those commands out.
    Also, does this file actually exist on the server where Replicat is running: C:\app\Oracle\product\gg\dirdat\tr000000

  • Partition tables replication

    Can anyone let me know how to replicate partitioned tables using goldengate.

    Hi,
    I have enabled replication for one of the partitioned table and inserted few rows which got replicated successfully.
    Then i tried to update the rows at source, and i could see that this change didnt happen at target side. Similarly when i tried to delete rows my replicat process abended with an error.
    Please check this link where i have posted the output and all. Let me know what can be done, we need to move to production implementation asap if this testing goes fine.
    Replicat Abended  while rows are deleted at source
    Thanks,
    Bharat Damarla

  • OGG的target端报错,OGG-01004

    今天要给开发小弟写几个例子,要准备数据,于是爬上测试库准备数据了,先把操作过程说一下。
    以下操作均在OGG的source端进行。
    1 TRUNCATE TABLE T_SYS_TASK;
    2 INSERT INTO T_SYS_TASK VALUES (XX,XX,XX); -- 语句从略
    3 满怀期待的跑到备库去查询一下。。。
    4 备库查不到。。。
    以下操作在备库进行:
    1 ./ggsci
    2 info all
    GGSCI (epdb2) 8> info all
    Program Status Group Lag at Chkpt Time Since Chkpt
    MANAGER RUNNING
    REPLICAT ABENDED REP1 00:22:20 00:02:22
    3 view report rep1
    有用信息如下:
    Wildcard MAP resolved (entry EP.*):
    MAP "EP"."T_SYS_TASK", TARGET EP."T_SYS_TASK";
    2012-11-22 14:46:37 WARNING OGG-00869 No unique key is defined for table 'T_SYS_TASK'. All viable columns will be used to represen
    t the key, but may not guarantee uniqueness. KEYCOLS may be used to define the key.
    Using following columns in default map by name:
    ID, TASK_TYPE, UNIT_ID, START_TIME, STOP_TIME, STATUS, INFO_ID,
    TITLE, CONTENT, EXEC_START_TIME, EXEC_STOP_TIME, ADDR_LIST_FILE,
    NOTICE_MAIL_ADDR, TASK_NAME, CREATOR_ID, CREATOR_TIME, AUDITOR_ID,
    AUDITOR_TIME, ADVICE
    Using the following key columns for target table EP.T_SYS_TASK: ID, TASK_TYPE, UNIT_ID, START_TIME, STOP_TIME, STATUS, INFO_ID, TITL
    E, CONTENT, EXEC_START_TIME, EXEC_STOP_TIME, ADDR_LIST_FILE, NOTICE_MAIL_ADDR, TASK_NAME, CREATOR_ID, CREATOR_TIME, AUDITOR_ID, AUDI
    TOR_TIME, ADVICE.
    2012-11-22 14:46:37 WARNING OGG-03504 NLS_LANG character set UTF8 on the target is different from the source database character se
    t AL32UTF8. Replication may not be valid if the source data has an incompatible character for the target NLS_LANG character set.
    2012-11-22 14:46:37 WARNING OGG-00869 Aborting BATCHSQL transaction. Detected inconsistent result: executed 1 operations in batch,
    resulting in 0 affected rows.
    2012-11-22 14:46:37 WARNING OGG-01137 BATCHSQL suspended, continuing in normal mode.
    2012-11-22 14:46:37 WARNING OGG-01003 Repositioning to rba 2834 in seqno 0.
    2012-11-22 14:46:37 WARNING OGG-00869 OCI Error ORA-01400: 无法将 NULL 插入 ("EP"."T_SYS_TASK"."ID") (status = 1400). INSERT INTO
    "EP"."T_SYS_TASK" ("ID","TASK_TYPE","UNIT_ID","START_TIME","STOP_TIME","STATUS","INFO_ID","TITLE","CONTENT","EXEC_START_TIME","EXEC_
    STOP_TIME","ADDR_LIST_FILE","NOTICE_MAIL_ADDR","TASK_NAME","CREATOR_ID","CREATOR_TIME","AUDITOR_ID","AUDITOR_TIME","ADVICE") VALUES
    (:a0,:a1,:a2,:a3,:a4,:a5,:a6,:a7,:a8,:a9,:a10,:a11,:a12,:a13,:a14,:a15,:a16,:a17,:a18).
    2012-11-22 14:46:37 WARNING OGG-01004 Aborted grouped transaction on 'EP.T_SYS_TASK', Database error 1400 (OCI Error ORA-01400: 无
    法将 NULL 插入 ("EP"."T_SYS_TASK"."ID") (status = 1400). INSERT INTO "EP"."T_SYS_TASK" ("ID","TASK_TYPE","UNIT_ID","START_TIME","STO
    P_TIME","STATUS","INFO_ID","TITLE","CONTENT","EXEC_START_TIME","EXEC_STOP_TIME","ADDR_LIST_FILE","NOTICE_MAIL_ADDR","TASK_NAME","CRE
    ATOR_ID","CREATOR_TIME","AUDITOR_ID","AUDITOR_TIME","ADVICE") VALUES (:a0,:a1,:a2,:a3,:a4,:a5,:a6,:a7,:a8,:a9,:a10,:a11,:a12,:a13,:a
    14,:a15,:a16,:a17,:a18)).
    2012-11-22 14:46:37 WARNING OGG-01003 Repositioning to rba 2834 in seqno 0.
    2012-11-22 14:46:37 WARNING OGG-01154 SQL error 1400 mapping EP.T_SYS_TASK to EP.T_SYS_TASK OCI Error ORA-01400: 无法将 NULL 插入
    ("EP"."T_SYS_TASK"."ID") (status = 1400). INSERT INTO "EP"."T_SYS_TASK" ("ID","TASK_TYPE","UNIT_ID","START_TIME","STOP_TIME","STATUS
    ","INFO_ID","TITLE","CONTENT","EXEC_START_TIME","EXEC_STOP_TIME","ADDR_LIST_FILE","NOTICE_MAIL_ADDR","TASK_NAME","CREATOR_ID","CREAT
    OR_TIME","AUDITOR_ID","AUDITOR_TIME","ADVICE") VALUES (:a0,:a1,:a2,:a3,:a4,:a5,:a6,:a7,:a8,:a9,:a10,:a11,:a12,:a13,:a14,:a15,:a16,:a
    17,:a18).
    2012-11-22 14:46:37 WARNING OGG-01003 Repositioning to rba 2834 in seqno 0.
    两侧表结构完全相同,我开始担心备库和主库不一致,还在备库drop以后再用主句的建表语句重建的,表结构可以放心,绝对一致。
    技术信心:
    OS : CentOS 5.8 x64
    DataBase: Oracle 11gR2
    Ogg: for 11gR2 on Linux x64
    之前这套OGG同步成功过数据。现在只要启动target的rep1就报错,很郁闷。真心求解。

    建表语句:
    -- Create table
    create table T_SYS_TASK
    id NUMBER(11) not null,
    task_type NUMBER(1) default '1',
    unit_id VARCHAR2(255),
    start_time VARCHAR2(14),
    stop_time VARCHAR2(14),
    status VARCHAR2(3),
    info_id NUMBER(11),
    title VARCHAR2(255),
    content VARCHAR2(255),
    exec_start_time VARCHAR2(14),
    exec_stop_time VARCHAR2(14),
    addr_list_file VARCHAR2(255),
    notice_mail_addr VARCHAR2(255),
    task_name VARCHAR2(255),
    creator_id VARCHAR2(255),
    creator_time VARCHAR2(14),
    auditor_id VARCHAR2(255),
    auditor_time VARCHAR2(14),
    advice VARCHAR2(255)
    tablespace EP_SPACE
    pctfree 10
    initrans 1
    maxtrans 255
    storage
    initial 64
    next 1
    minextents 1
    maxextents unlimited
    INSERT语句:
    insert into t_sys_task values (1,1,'1','20121122110000','20121122110000','1','1','测试任务','测试任务','20121122110000','20121122110000','','','','','','','','');

  • Common GoldenGate errors

    GG version 11.2.1.0.3
    OS: Unix/Unix-like
    For a typical Unidirectional configuration where only DML is replicated , what are the most common errors you usually encounter with GoldenGate ? Just name a few.

    N.Page wrote:
    Thank you NK. This particular error 1203 means that an UPDATE or DELETE was performed at source and when the replicat tried to replicate that change in the target table, it couldn't find that row. Right ?
    Network outage or server outage could be one of the reason for the Target not to be in sync. But once the network/server issues are fixed the 'pending' changes will be applied . So, how could the target become out of sync ?1403*
    Right. Other errors you could face with data out of sync are constraints errors for DML operations.
    Network or server outage could break the communication but goldengate should resume from where it left off.
    There are not many ways of target becoming out of sync, and they are mostly through human intervention. e.g. dml applied to target and not comming from a transaction applied by goldengate, or your replicat abends on target for some reason and they decide to skip a transaction that they shouldnt have, that kind of thing.
    As I said, if the initial load is successfull you should be fine and no errors should arise if your configuration is correct.
    If you happen to configure 2 replicats due to high transactions make sure tables who belong to a same transaction are configured to replicate through the same replication stream, else you could be in trouble aswell
    Edited by: N K on Jan 11, 2013 6:36 AM

Maybe you are looking for

  • Host String Problem

    Hi everyone, i searched the forum and found same problem with me but i did not work for me. The problem is i cannot connect my sql plus. i enter my username and password then it asks me gor host string but when i type it and enter "ok" it says "TNS L

  • Can any one tell me how to write the properites files and how to acces

    can any one tell me how to write the properites files and how to acces thoose files plz let me no thanks in advance

  • Unable to Install Office Update

    I get the following message: You cannot install Office 2008 12.1.5 Update on this volume. A version of the software required to install this update was not found on this volume. I've got plenty of space for - any ideas? Thanks

  • Add shutdownhook in jdk 1.1

    i need to do some cleanup operations when the jvm is shut down. In addition to normal exits , program termination using user interupts like ^C should also be taken into account and i'm looking for some method that can provide the functionality of Run

  • Getting the Flex Builder Plugin for Eclipse

    I may be a dope, but I can't tell you how long it took me to find the download for the Flex Builder plugin for an existing install of Eclipse. If you're looking for the plugin, go to the last line of the FlexBuilder standalone download page--and then