IGNORE - Fixed Single-Database Capture and Apply Example, multiple tables

I ran the demo setup for , "Single-Database Capture and Apply Example" ( http://download.oracle.com/docs/cd/B28359_01/server.111/b28321/capappdemo.htm#BCGBIEDJ )
Everything works fine. I now want to capture changes to another table in the HR schema, using the same DML handler.
I am uncertain of what to use for the stream name in the following (and related calls). I want the captures for the new table, "job_History" to go to the same queue. Do I use the same stream name, or do you have to create a new stream for each table capture? Thanks.
BEGIN
DBMS_STREAMS_ADM.ADD_TABLE_RULES(
table_name => 'hr.job_history,
streams_type => 'capture',
streams_name   => 'capture_emp', queue_name => 'strmadmin.streams_queue',
include_dml => TRUE,
include_ddl => FALSE,
inclusion_rule => TRUE);
END;
Edited by: user614224 on Nov 15, 2010 6:54 AM

Please edit the subject of this post and change it to "Please Ignore." Then post your question, with full version information, to the Streams forum.

Similar Messages

  • Single database capture and apply example

    I trying this example (with some minor changes) from the 9.2 streams documentation chapter 20. I have this message in dba_apply_error (the strings are the local and source transaction ids)
    9.0.362 1.21.364
    ORA-00942: table or view does not exist
    Is there a way to find out more about the error. Are there any other tables that I could be missing, besides the two that the example uses?
    Thanks
    chaim

    Solved. (the streamadm user only had privileges on the source tables through a role. Once direct grants were in place it worked well)
    Thanks

  • Capture from Two Tables and Apply in one Table

    Hi All,
    Is it possible to capture from two tables (master and child table) and apply in one table?
    For example,
    1. DEPT and EMP tables in source database with relation
    DEPT table structure is like DEPT_ID, DEPT_NAME, LOC_NAME
    EMP table structure is like EMP_ID, EMP_NAME, EMP_DOJ, EMP_SAL, DEPT_ID
    2. EMP_DEPT_STAGING in destination database
    EMP_DEPT_STAGING table structure is like EMP_ID, EMP_NAME, EMP_DOJ, EMP_SAL, DEPT_ID. DEPT_NAME, LOC_NAME
    if there is any update in DEPT table, EMP_DEPT_STAGING should get populated with Department and its employee details. Similarly, if there is any update in EMP table EMP_DEPT_STAGING table should get populated with Employee details and along with department detail.
    Is it possible to accomplish this? If yes, could you please provide me some examples?
    Thanks & Regards
    Thiyagu
    Edited by: mt**** on Sep 4, 2011 11:22 PM

    like this
    INSERT @PlantNew  (PlantID, PlantName, PlantDirExists, PlantAssistantDirID, PlantDirID) 
    SELECT p.PlantID,
    p.PlantName,
    CASE WHEN pd.PlantID IS NULL THEN 0 ELSE 1 END,
    PlantAssistantDirID,
    PlantDirID
    FROM @Plant p
    LEFT JOIN (SELECT PlantID,
    MAX(CASE WHEN Assistant = 1 THEN PlantDirectorID END) AS PlantAssistantDirID,
    MAX(CASE WHEN Assistant = 0 THEN PlantDirectorID END) AS PlantDirID
    @PlantDirector
    GROUP BY PlantID)pd
    ON pd.PlantID = p.PlantID
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
    You're missing a FROM
    insert into @PlantNew
    SELECT p.PlantID,
    p.PlantName,
    CASE WHEN pd.PlantID IS NULL THEN 0 ELSE 1 END,
    PlantAssistantDirID,
    PlantDirID
    FROM @Plant p
    LEFT JOIN (SELECT PlantID,
    MAX(CASE WHEN Assistant = 1 THEN PlantDirectorID END) AS PlantAssistantDirID,
    MAX(CASE WHEN Assistant = 0 THEN PlantDirectorID END) AS PlantDirID
    from @PlantDirector
    GROUP BY PlantID)pd
    ON pd.PlantID = p.PlantID

  • Can Free add-ons be downloaded with a single Adobe ID and applied to a classroom of computers?

    Can Adobe's free extensions and add-ons be downloaded with a single Adobe ID and applied to a classroom of computers? Specifically a situation where a computer technician has a request from a teacher for a particular free extension (such as Kuler) which the technician then downloads  with his or her Adobe ID and installs on all computers in a classroom.

    Hi,
    This question is difficult to answer because it depends how the classroom of computers were set up from a licensing perspective but in talking to some fellow Adobe colleagues we do think this is technically feasible. I do not have a classroom of computers to test this with to hand and even if I did it could be different to your environment so I would love for you to try it out and give it a go. Here's how I think this could work:
    Sign in to the Creative Cloud for desktops app with the Adobe ID you want to use. It should automatically sync and install your free extensions, if not you can force a reinstall here:
    http://creative.adobe.com/addons/my_addons
    Then repeat the process for each machine. If this does not work you can just download the extension and install it using Adobe Extension Manager CC on each machine, it's a little more work but that method will definitely work.
    Please let me know how you get on.
    Thanks,
    Jonathan

  • Crystal Reports and connecting to multiple tables in a dataset - I'm Going Crazy!!

    This is my first application, first report and first everything.  Wouldn't you know the report I am trying to produce is probably more difficult!!  What is happening is that I have a form(screen) up in my application with the information displayed on it from a recrod in a table that I want to put on a report to be view and/or printed and eventually down the road I want to incorporate a signature.  One step at a time though, here is what I have accomplished.  I have created the report, I have gotten it to display in the viewer but it will not push the data from the table that I want displayed.  It only displays the text that I have typed on the form.  This is a Visual Basic application created in Visual Studio 2005 using a SQL database.  If you need more information then just ask and I will try to fumble through and tell you what I know.  (Oh and to top it off............I am also trying to get information to display from other tables also (codes connected to descriptions etc.))
    Any help would be really appreciated as I have went through tutorials, read white papers, tech notes and anything else I can find but I just can't get it to work!!
    Thanks!

    You do need to give more information. To better help, we would need to know the database, when you say SQL do you mean SQL Server, how you created the dataset, whether there are multiple tables in a single dataset or multiple datasets, etc.
    The report appears to be running so the underlying issue as you know will likely be the dataset. You may want to confirm the dataset does in fact have data in it.  Returning a simple count will let you know there are rows. If you used the components rather than code to create the objects you can also see the data returned in the fill process.
    Once you know you have data in the dataset, you can check your reports connection to the dataset.
    Just hang in there... the problem is probably a simple fix. I am sure others will follow on with more suggestions.
    Regards,
    John W.

  • How do I find out what is being captured and applied?

    Hi,
    I have the following issue i'm trying to understand.
    My test 2-way streams setup (10.2.0.3 on windows) was stopped/broken for some weeks. I got around to starting to fix it yesterday. Since then its been sat there scanning through logs starting from the 21st of May 2007 (and still on the 21st). There are large number of messages being captured queued and propagated (8378901+ at the mo). This would make some sense if there had been constant changes going through for the past weeks but there haven't. I've created and dropped a table, inserted a couple of rows, and maybe created an index but thats it.
    So what is going on?
    Is there a way to peek into the queues and see the contents of these messages?
    How do I find out what its doing and why?

    Hi,
    You can know what is being applied using the following query:
    select sid, event, p1, p2, state, seconds_in_wait, sq.SQL_ID, sql_text
    from v$session s, v$sqlarea sq
    where sid in (select sid
    from v$streams_apply_coordinator
    union all
    select sid
    from v$streams_apply_reader
    union all
    select sid
    from v$streams_apply_server) and s.sql_id = sq.sql_id
    AAN

  • SMP and jQuery Example multiple Loading of StrobeMediaPlayback.swf

    Hi,
    I downloaded the examples for SMP and tryed to open the "embed.html", which use jQuery to insert the Player into the HTML Page.
    Open Firebug and take a look at the Network tab. It shows that StrobeMediaPlayback.swf is requested 100 times. This causes a long loading time and traffic for the webserver!!!
    It seems only a problem in Firefox. I`m using Version 6.0.1
    Using:
    Strobe media Playback 1.5.1 release as well as Strobe media Playback 1.6 Sprint 3
    Any suggestions?

    Seems like a bug in my Browser. I removed the Add-on FlashFireBug and...
    It works.

  • Single approval workflow to apply on multiple selected item in Sharepoint 2010

    Hi All,
    I have the following work flow requirement:
    1. Select multiple list items/ documents from a library
    2. Start a single approval work flow for all the selected items
    3. Which creates single approval task for all the approvers (Hence Multiple approvers)
    4. rejection by single approver rejects all the approval process
    (step 4 i know)
    How can i go ahead with this?
    Met vriendelijke groet / Best Regards,
    ir. Poojith Jain | SharePoint Developer
    LinkedIn

    Hi All,
    I have the following work flow requirement:
    1. Select multiple list items/ documents from a library
    2. Start a single approval work flow for all the selected items
    3. Which creates single approval task for all the approvers (Hence Multiple approvers)
    4. rejection by single approver rejects all the approval process
    (step 4 i know)
    How can i go ahead with this?
    Met vriendelijke groet / Best Regards,
    ir. Poojith Jain | SharePoint Developer
    LinkedIn
    Hi, which solution did you follow to accomplish that?

  • How to insert records in database from a dataset with multiple tables

    Hi,
    I'm struggling with the following problem:
    I have saved a dataset to an XML file by executing the following statement:
       ds.WriteXml( "Export\\ModuleChain_Mdata.xml" );The dataset, ds, includes records from several tables.
    Is there an easy way to retrieve those records to the database, I.E inserting them again?
    regards Peter

    you can try Associative Arrays:
    http://www.oracle.com/technology/oramag/oracle/07-jan/o17odp.html
    you need to convert yore DataTables to array first and than pass them in to the associative array procedure.

  • How to Impliment Streams replication in a Single Database

    Hi,
    I need to impliment Oracle Streams in a single Database (Source and Destination are same--In Same database).
    I have four Diferent schemas in this database.
    i need to replicate some selected tables from each Schema (some selected columns in each table), and replicate it
    with other diff schema which is also resides in the same database.
    If anybody have any ideas please let me know. Thanks in advance.
    If you have any documentation please post here.
    Thanks,
    Ray

    Hello Ray,
    Please take a look at the following thread where I have given an example to replicate from schema ORDERS to SHIPPING on to a different database.
    setup streams for tables with source and destination schema is different
    The steps are almost same except the propagation is not used in this case. There would be only one queue to which capture would enqueue the messages and apply would consume the messages.
    You need to define capture and apply (as there is no propagation) on the same queue. The schema can be renamed using DBMS_STREAMS_ADM.RENAME_SCHEMA as shown in the example. If you would like to rename the table then use DBMS_STREAMS_ADM.RENAME_TABLE.
    Hope this helps. Let me know if you have further questions.
    Thanks,
    Rijesh

  • Ignore "no data found" error  in apply

    Hi
    DB VERSION = 10.2.0.4
    i got error "ORA-01403: no data found" in dba_apply_error after deleting some data from my table
    and now i want to ingore it.what i must to do?

    That is dealing with the problem after the fact. What is the intent of the question - ignore while that takes place or how to manage it after the fact?
    While it takes place - Add a rule/DML handler/error handler to capture the exception and ignore/fix it.
    When an apply process moves a transaction to the error queue, you can examine the transaction to analyze the feasibility reexecuting the transaction successfully. If an abnormality is found in the transaction, then you might be able to configure a DML handler to correct the problem. In this case, configure the DML handler to run when you reexecute the error transaction.No data found error in Streams:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28322/troub_rep.htm#i1015040
    Error handler:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17069/strms_mapply.htm#STRMS144
    You can also set disable_on_error to No and drive on, but not necessarily a good idea as that opens the door for many errors to occur, so you would want to be checking the error queue periodically/regularly.

  • SSM - Configure Multiple Webserver's with a Single Database Server

    Hi,
    I need to install SSM using the following system landscape: Distributed system using a single database server and two webserver's.
    The system is configured to use the Microsoft Network Load Balancing and that's the reason why exist two webserver's. When the user put the URL, the connection can be done to the webserver 1 or webserver 2 (the Microsoft Network Load Balancing will manage that).
    I was checking the install guide "NW CE 7_1 SP5 SQL Server Install Guide.pdf" but there is no reference to this system landscape. The only "similar" is for High Availability System using Microsoft Cluster Service (MSCS), but that's not what I need.
    I was planning to do a distributed installation and in the database server I will install:
    - the Database Instance of NetWeaver
    - the Database components of SSM (PAS)
    In the Webserver I will install:
    - the SCS Instance of NetWeaver
    - the Primary Application Instance of NetWeaver
    - the Web components of SSM (PIP, etc...)
    For a scenario of a single webserver and a single database server, this work just fine.
    My questions are:
    - how can I configure SSM to work in a scenario of two webserver's and a single database server?
    - Should I install the same components in both WebServer's?
    - Should I use the same instance number or a different one?
    - It is possible to have two netweaver instance sharing the same database?
    Thanks in advance for all the help
    Regards
    Pedro

    Hi Pedro,
    - how can I configure SSM to work in a scenario of two webserver's and a single database server?
    Yes see below. But also make sure SAP will support the configuration you're planning!
    - Should I install the same components in both WebServer's?
    yes.
    - Should I use the same instance number or a different one?
    The same makes configuration eaiser
    - It is possible to have two netweaver instance sharing the same database?
    Not for the SCS but yes for application server (your Java instances)
    The central services, SCS instance, are one per a SAP System. So you cannot install one on each Web Server and operate them simultaneously.
    Given your database is also a single point of failure then I would suggest you install the SCS with it on the database server.
    On each of the Web Servers install an application instance of SAP NW CE.
    Since the instance are on different servers they can share the same instance number.  It is not mandatory but it may make configuration easier. e.g. for the the webservice the port will not change.
    There can only be one Interactive Publisher (PIP) running so this may as well also go on your database server.
    The Pilot Application Server (PAS) there can be multiple of so install one on each Web Server.
    See section 5.2.3 of Server Installation Guide SAP Strategy Management Release 7.0 Support Package 2 and higher for configuring SAP NW CE to point to the one instance on Interactive publisher.
    See section 5.2.7 of Server Installation Guide SAP Strategy Management Release 7.0 Support Package 2 and higher for setting up the Web Service target in Interactive publisher this will need to use the virtual ip(or hostname) of your Network Load Balancer.
    Best of luck.
    Marcel.

  • DDL trigger to Capture the DDL changes on one database and applies to child level databases in same server.

    Hi friends,
            I need to create one DDL trigger to Capture the all DDL modification on parent database and applies those changes to the underlying (child) databases  in my project.
            Can anyone help me out in this,how to track the changes and applies to the child level databases?
    Thanks in Advance.

    Use Visual Studio Data Tools or
    Red Gate Compare.

  • Full database exp/imp  between RAC  and single database

    Hi Experts,
    we have a RAC database oracle 10GR2 with 4 node in linux. i try to duplicate rac database into single instance window database.
    there are same version both database. during importing, I need to create 4 undo tablespace to keep imp processing.
    How to keep one undo tablespace in single instance database?
    any experience of exp/imp RAC database into single instance database to share with me?
    Thanks
    Jim
    Edited by: user589812 on Nov 13, 2009 10:35 AM

    JIm,
    I also want to know can we add the exclude=tablespace on the impdp command for full database exp/imp?You can't use exclude=tablespace on exp/imp. It is for datapump expdp/impdp only.
    I am very insteresting in your recommadition.
    But for a full database impdp, how to exclude a table during full database imp? May I have a example for this case?
    I used a expdp for full database exp. but I got a exp error in expdp log as ORA-31679: Table data object "SALE"."TOAD_PLAN_TABLE" has long columns, and longs can not >be loaded/unloaded using a network linkHaving long columns in a table means that it can't be exported/imported over a network link. To exclude this, you can use the exclude expression:
    expdp user/password exclude=TABLE:"= 'SALES'" ...
    This will exclude all tables named sales. If you have that table in schema scott and then in schema blake, it will exclude both of them. The error that you are getting is not a fatal error, but that table will not be exported/imported.
    the final message as
    Master table "SYSTEM"."SYS_EXPORT_FULL_01" successfully loaded/unloaded
    Dump file set for SYSTEM.SYS_EXPORT_FULL_01 is:
    F:\ORACLEBACKUP\SALEFULL091113.DMP
    Job "SYSTEM"."SYS_EXPORT_FULL_01" completed with 1 error(s) at 16:50:26Yes, the fact that it did not export one table does not make the job fail, it will continue on exporting all other objects.
    . I drop database that gerenated a expdp dump file.
    and recreate blank database and then impdp again.
    But I got lots of error as
    ORA-39151: Table "SYSMAN"."MGMT_ARU_OUI_COMPONENTS" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    ORA-39151: Table "SYSMAN"."MGMT_BUG_ADVISORY" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
    ......ORA-31684: Object type TYPE_BODY:"SYSMAN"."MGMT_THRESHOLD" already exists
    ORA-39111: Dependent object type TRIGGER:"SYSMAN"."SEV_ANNOTATION_INSERT_TR" skipped, base object type VIEW:"SYSMAN"."MGMT_SEVERITY_ANNOTATION" >already exists
    and last line as
    Job "SYSTEM"."SYS_IMPORT_FULL_01" completed with 2581 error(s) at 11:54:57Yes, even though you think you have an empty database, if you have installed any apps or anything, it may create tables that could exist in your dumpfile. If you know that you want the tables from the dumpfile and not the existing ones in the database, then you can use this on the impdp command:
    impdp user/password table_exists_action=replace ...
    If a table that is being imported exists, DataPump will detect this, drop the table, then create the table. Then all of the dependent objects will be created. If you don't then the table and all of it's dependent objects will be skipped, (which is the default).
    There are 4 options with table_exists_action
    replace - I described above
    skip - default, means skip the table and dependent objects like indexes, index statistics, table statistics, etc
    append - keep the existing table and append the data to it, but skip dependent objects
    truncate - truncate the existing table and add the data from the dumpfile, but skip dependent objects.
    Hope this helps.
    Dean

  • Simultaneously Connecting Multiple Tables of the same Database to Textboxes of the same Form using a single ADO Control Code using VB6 Enterprise Edition and MS Access 2007

    Iv 10 Tables consisting of atleast 10 fields each in a single Database. Bt, Im only able to connect 1 table at a time to a form using an ADO Control. Im able to add data from table 'student' to text-boxes in my form. Bt, hw can I add data from field(0) of
    Table 'Student' to Textbox1 and data from field(0) of Table 'Marks' to Textbox2 using VB6??
    This is the current sample coding iv got to connect a single table to a form:
    Global con As New ADODB.Connection
    Global rs As New ADODB.Recordset
    Public Function Connect()
    If con.State = 1 Then con.Close
    con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path + "\bca.mdb;Persist Security Info=False"
    End Function
    Private Sub Add_Click()
    If rs.State = 1 Then rs.Close
    rs.Open "select * from student", con, adOpenDynamic, adLockOptimistic
    rs.AddNew
    rs.Fields(0) = (Text1.Text)
    rs.Fields(1) = (Text2.Text)
    rs.Fields(2) = (Text13.Text)
    rs.Fields(3) = (Text4.Text)
    rs.Fields(4) = (Text5.Text)
    rs.Fields(5) = (Text6.Text)
    rs.Fields(6) = (Text7.Text)
    rs.Fields(7) = (Text8.Text)
    rs.Fields(8) = (Text9.Text)
    rs.Fields(9) = (Text10.Text)
    rs.Fields(10) = (Text11.Text)
    rs.Update
    MsgBox " Record Added"
    End Sub
    What can I do to add fields from 2 different tables to different text boxes within the same form using a single ado control using vb6 and MS Access 2007??

    Hi,
    Since VB6 product is not supported in this forum, you may go to these forums for support:
    #Where to post your VB 6 questions
    http://social.msdn.microsoft.com/Forums/en-US/6a0719fe-14af-47f7-9f51-a8ea2b9c8d6b/where-to-post-your-vb-6-questions
    Thank you for your understanding.
    Best regards,
    Franklin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Generating VAT on intercompany movement in FI CO

    Hi, Simple question on ECC 6.0 with the New GL. I have configured the transaction OBYA for the FI CO reconciliation at company level. I generate easily the mouvement in AP and AR as open items. But I have no VAT in the booking entries. I found some O

  • Core switch and sub switch gateway

    I have a Layer 3 core switch(backbone) 10.18.16.0/24, and the core switch needs to connect to multiple Layer 2 sub switches. The Layer 2  sub switches will connect to multiple workstations. The sub switches network will be 172.20.10.0/24, 172.20.40/2

  • How to add push button in alv list

    Dear all,      I am doing ALV report, in that i have some requirements as mentioned below 6.     In the main report screen, each row should have a selection button at the left end. The entire row should be selectable by clicking on this button. By cl

  • Suppress Output for Closed PO

    Hi, actuallly the requirement suppress out put for closed po. when delivery completed and final invoice indicator is  checked the output shouldnt take place. po out put should be suppress. The following fields needs to be cleared to suppress PO outpu

  • Ability to print in white

    I have an HP Officejet J4540.  Does anyone know if I can print in white by changing the color settings?  I would like to print white letters on dark purple paper. thank you, DonnaCD This question was solved. View Solution.