Distributed Hotlog Change Data Capture (CDC) on 10.2.0.3 - Very Urgent

Hello all,
I am trying to set up distributed Hotlog Change Data Capture (CDC) with both source and staging databases on 10.2.0.3. I have managed to set up everything alright until I try to great my first change table on the staging database.
We tried runnning this:
begin
     dbms_cdc_publish.create_change_table(
          owner => 'CDC_STG9_PUB',
          change_table_name => 'ed_test_1_CT',
          change_set_name => 'CR_FN9_SET',
          source_schema => 'CIS',
          source_table => 'ed_cdc_test_1',
          column_type_list => 'col1 number, col2 varchar2(20)',
          capture_values => 'both',
          rs_id => 'y',
          row_id => 'n',
          user_id => 'n',
          timestamp => 'n',
          object_id => 'n',
          source_colmap => 'n',
          target_colmap => 'y',
          options_string => null) ;
end ;
I sometimes get this:
begin
ERROR at line 1:
ORA-00942: table or view does not exist
ORA-06512: at "SYS.DBMS_CDC_PUBLISH", line 611
ORA-06512: at line 2
Re-running the create change set seems to solve this.
However, when I try to run enable the change source, I get this:
begin
ERROR at line 1:
ORA-31532: cannot enable change source CR_FN9_SRC
ORA-06512: at "SYS.DBMS_CDC_IPUBLISH", line 151
ORA-06512: at "SYS.DBMS_CDC_PUBLISH", line 497
ORA-06512: at line 2
Any ideas would be very well appreciated.

The alert log file reads:
Errors in file /oracle/DXCE/lvol11/background/dxce_j000_24285.trc:
ORA-12012: error on auto execute of job 10
ORA-06550: line 1, column 96:
PLS-00201: identifier 'SYS.DBMS_CDC_PUBLISH' must be declared
ORA-06550: line 1, column 96:
PL/SQL: Statement ignored
Fri Mar 9 11:50:51 2007
Streams APPLY A002 started with pid=23, OS id=24304
Streams Apply Reader started P000 with pid=24 OS id=24306
Streams Apply Server started P001 with pid=25 OS id=24308
dxce_j000_24285.trc reads:
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
ORACLE_HOME = /oraxcd/10.2.0.3
System name: SunOS
Node name: stwu01
Release: 5.10
Version: Generic_118833-24
Machine: sun4v
Instance name: DXCE
Redo thread mounted by this instance: 1
Oracle process number: 29
Unix process pid: 24285, image: oracle@stwu01 (J000)
*** ACTION NAME:() 2007-03-08 14:57:15.007
*** MODULE NAME:() 2007-03-08 14:57:15.007
*** SERVICE NAME:(SYS$USERS) 2007-03-08 14:57:15.007
*** CLIENT ID:() 2007-03-08 14:57:15.007
*** SESSION ID:(541.1371) 2007-03-08 14:57:15.007
*** 2007-03-08 14:57:15.007
ORA-12012: error on auto execute of job 10
ORA-06550: line 1, column 96:
PLS-00201: identifier 'SYS.DBMS_CDC_PUBLISH' must be declared
ORA-06550: line 1, column 96:
PL/SQL: Statement ignored
Regards,
Edosa

Similar Messages

  • Changed Data Capture (CDC) when view as a Source

    Hello All,
    We implemented Changed Data Capture (CDC) by taking table as a source and we used to JKM Oracle Simple KM and it is working fine. But, we need to implement CDC by taking View as a source. Included Primary key at ODI Level for this view as CDC requires this on the source.
    As we cannot create triggers on views and also while creating journal view prefixed with JV${table_name}, getting the following errror:
    "1446 : 72000 : java.sql.SQLException: ORA-01446: cannot select ROWID from view with DISTINCT, GROUP BY, etc."
    How can we achieve CDC if our source is a view?
    Any suggestions..
    Thanks,
    -Vency

    Hi,
    Its not issue of a "lock" so no luck..
    Its definitely the issue with the view..
    I also got the real error as:
    ORA-012024:Cannot select FOR UPDATE from view with DISTINCT,GROUP by etc..
    Wonder why this is the error, as my view does not have DISTINCT,GROUP By etc..
    Also checked
    select * from USER_UPDATABLE_COLUMNS ;
    and found that none of the columns are updateable..
    So how to make these updateable and get my form work?

  • Change Data Capture (CDC) - Best Approach

    Hi,
    I am new to BODI and currently trying to design a change data capture approach.
    In other ETL tools i have used, the last session run timestamp is stored as a parameter and can be called within a mapping. So the mapping updates this parameter everytime it runs. Therefore when implementing CDC the load_date on the table has to be compared to this parameter.
    Is there a similar concept in BODI?
    I appreciate your help.
    Thanks
    Azeem

    Yes, there is such a concept, you have to build it yourself. e.g. https://wiki.sdn.sap.com:443/wiki/display/BOBJ/Inititialize-End+Script
    When you use a CDC enabled datastore however, the database wants to keep track of the data read, that's part of their CDC API. So it is not DI is querying all changes since yesterday, it is a "select * from CDC table" and the database returns just the rows since the last read. Push vs. Pull.

  • Change Data Capture (CDC) now capturing default values

    Hi,
    I am using SQL Server 2012 and to me a part of data captured by CDC is not making sense.
    I have a table called 'Schema.Table1', and I enabled CDC on it by running 'sys.sp_cdc_enable_table'. I see that a table called 'cdc.Schema_Table1_CT' got created which now gets an entry when ever I Insert, Update or delete a record in the original table.
    Till this point every thing works fine.
    My original Table has a NOT NULL INT column called 'AuditTrackerUserID' with a default value of 1996. My application does not provides a value for this column, but because the column itself has a default value, records get inserted without error.
    When I try to execute the following Query I see multiple records with __$operation of 3 and 1.
    SELECT * from cdc.Schema_Table1_CT where AuditTrackerUserID IS NULL
    My expectation is that I should not ever see any record returned by this query because AuditTrackerUserID is a not null column, but I do.
    Can anyone please explain this behavior>
    -Vivek.

    Hi did in the right forum, no replies yet.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Bug in SQL Server 2008 R2 for Change Data Capture (CDC)

    I'm pretty sure I've encountered a bug in SQL Server 2008 R2 that's been fixed in 2012, regarding changing the design of a database using CDC.  With CDC disabled on a table with sys.sp_cdc_disable_table, I can add a column or change a column's data
    type, but when I call sp_rename, on 2008 R2 I'm getting "Cannot alter column 'xxx' because it is 'REPLICATED'.", even though the table's properties shows "Table is replicated" as False.  In 2012, works fine.
    Even calling sys.sp_cdc_disable_db didn't prevent this error.

    Feel free to file a request on http://connect.microsoft.com
    Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    This posting is provided "AS IS" with no warranties, and confers no rights.
    My Blog |
    Team Blog | @Twitter
    Author: SQL Server 2012 AlwaysOn -
    Paperback, Kindle

  • Change Data Capture (CDC) for Oracle by Attunity on SQL Server 2014

    hi
    i've installed the above on my server. It seems to look fine. The connection to oracle database is set, the databases on the sql server side have been created; the tables to be captured are created. When i make a change on the oracle side, the configuration
    ui senses the change, but no data is moved over. Silly question, do i have to move the data from oracle to sql server FIRST before any of this will work? and how do inserts work if the data has to be moved over to sql server first? I'm missing something here
    Any help would be appreciated.
    thank you

    Well, better ask the vender. They haver their own forums.

  • Change Data Capture (CDC)

    Hi All,
    I have been trying to do a CDC on a table. I do the selective reverse on the table and after it is imported, I add it to CDC and than when I start CDC, I encounter the following error. I tried it with different tables and its the same error.
    6550 : 65000 : java.sql.SQLException: ORA-06550: line 1, column 8:
    PLS-00201: identifier 'DBMS_CAPTURE_ADM' must be declared
    ORA-06550: line 1, column 8:
    PL/SQL: Statement ignored
    Please help me with suggestions. I know, I am doing a mistake somewhere.
    Thanks in advance.

    grant execute on dbms_capture_adm to odi_work.

  • Error While enahling CDC(Change data capture) on Table.

    I am enabling Change data capture (CDC) on SQL server 2012 Enterprise edition(11.0.2100.60)
    . I am able to enable it on Database level with below SQL, but failed to enable on Table level.
    Use DatabaseName
    GO
    Exec sys.sp_cdc_enable_db 
    GO
    EXEC sys.sp_cdc_enable_table @source_schema = N'dbo',
                @source_name = N'TableName', @role_name = NULL
    GO
    Got Error like,
    'msg 22832, Level 16, State 1, Procedure sp_cdc_enable_table_internal, Line 623
    Could not update the metadata that indicates table [dbo].[TableName] is enabled for Change Data Capture. 
    The failure occurred when executing the command '[sys].[sp_cdc_add_job] @job_type = N'capture''. 
    The error returned was 22836: 'Could not update the metadata for database DatabaseName to indicate that a Change Data Capture job has been added. 
    The failure occurred when executing the command 'sp_add_jobstep_internal'. 
    The error returned was 14234: 'The specified '@server' is invalid (valid values are returned by sp_helpserver).'. 
    Use the action and error to determine the cause of the failure and resubmit the request.'. 
    Use the action and error to determine the cause of the failure and resubmit the request.'
    Would anyone help me to out of this?
    Thanks in advance..!!

    Related thread:
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/fa0c2a52-63b5-4a39-9f35-fe6f0eb21d1d/change-data-capture-on-table?forum=sqldatawarehousing
    Make sure SQL Server Agent is running.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Can CDC (Change Data Capture) Can be used for Audit / Trail Purposes

    Hi,
    My question is bit subjective in nature. I playing around with CDC to implement a Database Auditing solution and it's seems to be working fine. However my question is for experts and for those who have already used CDC for this purpose. Is it feasible to
    use it for Data Auditing? Has anybody successfully used it? Any important considerations or configurations you have worked out e.g. CDC cleanup time etc
    I will highly appreciate any feed back.
    Thanks,
    Ali
    Saadat

    Refer this link...I hope this link will answer all your questions
    http://blogs.technet.com/b/josebda/archive/2009/03/24/sql-server-2008-change-tracking-ct-and-change-data-capture-cdc.aspx
    -Prashanth

  • Change Data Capture feature

    hi,
    If anyone have implement Change data capture (CDC) feature which is available in Oracle 9i.
    If yes pls reply to me, i have an doubt on this....

    Hi,
    Thanks for ur reply...
    I received an error while creating the change table ..
    ORA-29540: class oracle/CDC/PublishApi does not exist
    ORA-06512: at "SYS.DBMS_CDC_PUBLISH", line 298
    Canu pls help me to fix this..
    by,
    Nagaa

  • Change Data Capture in ODI

    Hi all,
    A client of ours is planning to replicate their production database into a reporting database. All tables will be copied to the reporting DB. They also need to do "Change Data Capture" on the production DB and reflect the changes into the reporting DB in real time. Since the production DB is from a transaction system, the changes will be quite big. They are worried about the performance of the production DB during the copy process. Is Oracle Data Integrator capable in doing this? They are running Oracle 9.2 on Windows platform. Thank you.
    Regards,
    Gerd

    Gerd
    ODI's main Changed Data Capture (CDC) functionality for the Oracle database is implemented using the LogMiner functionality provided by the database. When used in asynchronous mode, this imposes a minimal overhead on the source database, as the transactional system is not "interfered" with by the log capture process.
    During the copy process, ODI will simply be reading a view (a join across the table containing the primary key (or unique identifier) and the original data) which should be very efficient. The load is minimal. It is being used very successfully by clients in this way.
    Craig

  • CDC (Change Data Capture) with 2 Tables

    Hello,
    i want to use the change data capture for the typical Data Warehousing progress (bring the new or updatet table from source to the staging area)
    So i have implemented a mapping with to tables. The source table is S_Account, the target or staging table is W_Account_DS.
    I have connected/mapped the tables and in the next step i goes into property inspector of W_ACCOUNT_DS into the Area Change Data Capture --> Change Data Capture Filter and put into the follow expression Builder
    Select *
    from S_Acccount
    where INOUTGRP1.LAST_UPD_DT = CURRENT_DATE (<-- Validation Succesful)
    and the next Step i make Enabeled is true in the Change Data Capture Area. So i think it should ready for one test case.
    I set in SQL Developer with an update statement the LAST_UPD_DT at 28.03.2012 in this case he should not update/insert anything, right? But he insert the full table.
    I set in SQL Developer with an update statement the LAST_UPD_DT by 2 Columms to 28.03.2012 in this case he should update he should update the full table - 2 columns with the date 28.03.2012, right?
    So what make i wrong or have i forgotten anything? (must set keys by the tables? I think not! If yes why?)
    Must i set anything properties else? Why doesnt´work it?
    I look forward for your replies :)

    Setting up CDC is a fairly complex process with different options. Setting just the filter in OWB is only a very small part.
    There is a blog post below on how to use code templates to do CDC which gives some insight;
    http://www.rittmanmead.com/2009/10/changed-data-capture-and-owb11gr2/
    Plus and older one illustrating how to use Oracle logs;
    http://www.rittmanmead.com/2006/04/asynchronous-hotlog-distributed-change-data-capture-and-owb-paris/
    Cheers
    David

  • Change Data Capture,Change Tables

    Hi,
    We installed Change Data Capture in our DB (10gR2),however there is a problem with change tables.Change tables are being cleaned somehow.According to text quoted below,the job which is cleaning change tables is cdc$_default_purge_job.However
    select log_date
    +, job_name+
    +, status+
    from dba_scheduler_job_log
    where job_name='CDC$_DEFAULT_PURGE_JOB';
    results no data. Also this morning i came across that data cleansing again, and run the query below.And again no result.
    select job_name
    +, session_id+
    +, running_instance+
    +, elapsed_time+
    +, cpu_used+
    from dba_scheduler_running_jobs;
    /*We didn't even use DBMS_SCHEDULER.SET_ATTRIBUTE procedure so far*/
    What is cleaning change tables and how can i control it?
    Tnx in advance
    Quotation:
    Change Data Capture creates a purge job using the
    DBMS_SCHEDULER package (which runs under the account of the publisher who created the first change table). This purge job calls the
    DBMS_CDC_PUBLISH.PURGE procedure to remove data that subscribers are no longer using from the change tables. This job has the name
    cdc$_default_purge_job. By default, this job runs every 24 hours. You can change the schedule of this job using
    DBMS_SCHEDULER.SET_ATTRIBUTE and set the
    repeat_interval attribute. You can verify or modify any other attributes with the
    DBMS_SCHEDULER package.

    Setting up CDC is a fairly complex process with different options. Setting just the filter in OWB is only a very small part.
    There is a blog post below on how to use code templates to do CDC which gives some insight;
    http://www.rittmanmead.com/2009/10/changed-data-capture-and-owb11gr2/
    Plus and older one illustrating how to use Oracle logs;
    http://www.rittmanmead.com/2006/04/asynchronous-hotlog-distributed-change-data-capture-and-owb-paris/
    Cheers
    David

  • Change Data Capture How to Tell which you are running Sync or Asyn

    Hi ,
    I am taking over a new system that has change data capture running, but Im really confused how this is running. Most of the CDC is set up using Sync(triggers), but I have about 5 tables that DO NOT have system generated triggers on them. I know Streams is NOT running/configured. I know Capture is not running/configured (because nothing in DBA_CAPTURE table). I can tell that these 5 tables are still getting updated in the change table schema. I can not figure out how the 5 tables that DO NOT have triggers on them are updating the change data set tables.
    I had thought the the 5 tables, must be configured with HOTLOG, but when I look at the CHANGE_SETS table they all (including these 5 tables) are set to CHANGE SOURCE NAME = SYNC SOUCE. I would expected that to be HOTLOG_SOURCE. So I "assume" they aren't set up using Asnc. hot log mode. So maybe the other Async modes are used, but not pushed to another database? Is that possible?
    Any other ideas on how to figure out how the CDC is set up for these 5 tables?
    thanks for your help.

    Thanks for the reply, but I think I must have not stated the problem clearly. I dont WANT to set the source I want to figure out how this CDC is working. I see ALL the sources are currently set to SYNC_SOURCE. Almost all of the tables are set up with system triggers on them, but 5 dont have system triggers, yet the source says SYNC_SOURCE. I did validate that the change tables are getting updated for these tables. my question is how are they getting updated? I "assume" since they dont have system triggers ont eh table they aren't synchoronus cdc (like the other tables are). yet the source says SYNC_SOURCE. What am I missing? How can I tell if the redo log is populating those changes tables? Im pretty sure it is (Becuase there aren't triggers or jobs running), but Im curious if there is a way to tell for sure.
    Thanks,

  • Can you help me about change data captures in 10.2.0.3

    Hi,
    I made research about Change Data Capture and I try to implement it between two databases for two small tables in 10g release 2.MY CDC implementation uses archive logs to replicate data.
    Change Data Capture Mode Asynchronous autolog archive mode..It works correctly( except for ddl).Now I have some questions about CDC implementation for large tables.
    I have one senario to implement but I do not find exactly how can I do it correctly.
    I have one table (name test) that consists of 100 000 000 rows , everyday 1 000 000 transections occurs on this table and I archive the old
    data more than one year manually.This table is in the source db.I want to replicate this table by using Change Data Capture to other stage database.
    There are some questions about my senario in the following.
    1.How can I make the first load operations? (test table has 100 000 000 rows in the source db)
    2.In CDC, it uses change table (name test_ch) it consists of extra rows related to opearations for stage table.But, I need the orjinal table (name test) for applicaton works in stage database.How can I move the data from change table (test_ch) to orjinal table (name test) in stage database? (I don't prefer to use view for test table)
    3.How can I remove some data from change table(name test_ch) in stage db?It cause problem or not?
    4.There is a way to replicate ddl operations between two database?
    5. How can I find the last applied log on stage db in CDC?How can I find archive gap between source db and stage db?
    6.How can I make the maintanence of change tables in stage db?

    Asynchronous CDC uses Streams to generate the change records. Basically, it is a pre-packaged DML Handler that converts the changes into inserts into the change table. You indicated that you want the changes to be written to the original table, which is the default behavior of Streams replication. That is why I recommended that you use Streams directly.
    <p>
    Yes, it is possible to capture changes from a production redo/archive log at another database. This capability is called "downstream" capture in the Streams manuals. You can configure this capability using the MAINTAIN_* procedures in DBMS_STREAMS_ADM package (where * is one of TABLES, SCHEMAS, or GLOBAL depending on the granularity of change capture).
    <p>
    A couple of tips for using these procedures for downstream capture:
    <br>1) Don't forget to set up log shipping to the downstream capture database. Log shipping is setup exactly the same way for Streams as for Data Guard. Instructions can be found in the Streams Replication Administrator's Guide. This configuration has probably already been done as part of your initial CDC setup.
    <br>2) Run the command at the database that will perform the downstream capture. This database can also be the destination (or target) database where the changes are to be applied.
    <br>3) Explicitly define the parameters capture_queue_name and apply_queue_name to be the same queue name. Example:
    <br>capture_queue_name=>'STRMADMIN.STREAMS_QUEUE'
    <br>apply_queue_name=>'STRMADMIN.STREAMS_QUEUE'

Maybe you are looking for