Comparing streams replicated data

We have streams replication between two databases db1 & db2 (table level streams replication).
We would like to compare tables between these databases.
we can use DBMS_RECTIFIER_DIFF.DIFFERENCES to find out differences. However what is value to be passwed for REFERENCE_SITE & COMPARISON_SITE parameters?
Is it DBLINK or TNSNAMES entry ?

Look at the demo in Morgan's Library at www.morganslibrary.org/library.html under DBMS_RECTIFIER_DIFF.
If you have 11g there is a new DBMS_COMPARISON package that is even more capable. You will find it in the library also.

Similar Messages

  • How to compare table's date field with dropdown year field

    Hi All,
    I have one requirement to display the selected rows from a database table based on the selection of drop down.
    Here, I have one dropdown of year(like 2009,2010,....) and I have one database table which contains one field with "DATE".
    Now, I want to compare table's DATE field with my dropdown field.
    Problem is that table's DATE field is of type "DATS" and dropdown is of type INTEGER(or) STRING ...
    How to compare this fields?
    Can any one please give me solution for this...!
    Thanks in Advance!

    Hi  sreelakshmi.B,
    try the following:
    DATA lt_dats        TYPE TABLE OF dats.
    DATA l_dat_i        TYPE          i.
    DATA l_dat_c_4(4)   TYPE          c.
    DATA l_dat_c_12(12) TYPE          c.
    DATA l_dats_from    TYPE          dats.
    DATA l_dats_to      TYPE          dats.
    *Move Date from Integer to Char
    l_dat_c_4 = l_dat_i = 2005.
    *Create Date From use in WHERE-Clause
    CONCATENATE '01.01.' l_dat_c_4 INTO l_dat_c_12.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
         EXPORTING
              date_external            = l_dat_c_12
         IMPORTING
              date_internal            = l_dats_from
         EXCEPTIONS
              date_external_is_invalid = 1
              OTHERS                   = 2.
    IF sy-subrc <> 0.
    ENDIF.
    *Create Date To use in WHERE-Clause
    CONCATENATE '31.12.' l_dat_c_4 INTO l_dat_c_12.
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
         EXPORTING
              date_external            = l_dat_c_12
         IMPORTING
              date_internal            = l_dats_to
         EXCEPTIONS
              date_external_is_invalid = 1
              OTHERS                   = 2.
    IF sy-subrc <> 0.
    ENDIF.
    * Select records in range
    SELECT *
           FROM [DBTAB]
           INTO TABLE [ITAB]
           WHERE [DATE] BETWEEN l_dats_from
                        AND     l_dats_to.
    Regards
    REA

  • Streaming mp3 data

    Hi and thanks in advance to anyone willing to help out :)
    I was disappointed by the general lack of quality in every single J2ME app out there for listening to internet radio (and I'm not going to pay for something so simple), so I decided to have a go at it myself. I found out I could just use Manager.createPlayer() and pass the URL of the stream to it, and it would (I assume) play the stream without any problems.
    Now, the problem is that I want to parse and display metadata. In ShoutCast radio, a simple metadata block is inserted into the mp3 data at a certain interval specified by the server. This makes it fairly simple to read the metadata, however it means that passing the stream straight to the mp3 decoder will cause a glitch in the sound every second or so, so if I want metadata, I have to modify the stream before playing it.
    I thought this should be simple to do but it seems it isn't. I have been unable to locate a way to send data directly from a buffer in my application to the mp3 decoder for playback. The closest I think I got was creating a Player from an InputStream; this way after jumping through some hoops it seems to be possible to play audio from a buffer created by the app itself, but once it's finished playing I would have to destroy and re-create the Player in order to play the next chunk of sound. This would be extremely impractical and I doubt it would allow seamless playback of the stream, since it would have to interrupt playback everytime a block of metadata is received (which happens all the time, not just at song changes).
    So basically, my question is: is there a way (and if yes, what is it) to continously play audio, from my own data buffer?
    Thank you very much for your help! :)
    - dm from Hungary

    The Harman-Kardon manual for the DPR1005 has this to say about sending raw MP3 data to the unit:
    The MP 3 DSP mode found in the new DPR
    requires an MP3 SPDIF stream. Presently, only a
    few units provide this but in the coming generations
    of motherboards and operating system
    updates this will follow, since SPDIF is the standard
    for audio & video hardware.
    All the information I have found regarding this topic leads me to believe that that the iMac can not send raw data via the SPDIF output.
    However, Squeezebox can - http://www.slimdevices.com/pi_specs.html#outputs
    That is the only device I have successfully located that will stream MP3 data via optical, not just standard pcm.

  • Compare between 2 dates

    Hi,
    I would like to know how to compare between 2 dates.
    for example if I have 1 employee working from 01-01-2005 to 31-03-2005 I want to know how many days is that so that can also view how many working staff in 1 shop per day... cos I'm thinking to put it in the database something like this:
    staffname date
    staff1 2005-01-01
    staff1 2005-01-02
    staff1 2005-01-03
    staff1 2005-01-04
    staff1 2005-01-05
    staff1 2005-01-06
    staff1 2005-03-31
    thanks for your guide....

    read the API on Date and Calendar

  • Compare the elements data of the 2 context nodes using internal table

    Hi,
    How can i compare the elements data of the 2 context nodes using internal table?
    Regards,
    Ronita

    hi ronita,
    just get the nodes data into internal tables and just compare them......
    node1->get_static_attributes_table(importing table = ITAB_node1)
    node2->get_static_attributes_table(importing table = ITAB_node2)
    now u have the data of ur 2 context nodes in 2 different internal tables ..
    just compare them like
    if  ITAB_node1[ ] = ITAB_node2[ ].
    write: / 'itab1 is equal to itab2'..
    endif.
    and u can use as many as comparision operators between these 2 tables to compare them....
    regards....
    srini,,,,

  • Golden Gate: Replicate replicated data

    Hi,
    We have 3 Oracle 11GR2 database servers, A, B and C. At the moment we have GoldenGate replicating from A to B. We want to set up another GoldenGate process to replicate from B to C. Database server A cannot reach C, so the replication must come from B to C. Is there a way of replicating the replicated data in B to C? Can the second GoldenGate process (between B and C) be configured to pickup the replicated data in B from the first GoldenGate process (from A to B)?
    Rgs,
    Rob

    What I did to achieve this was to create the same GG process on B, but using a different OGGADMIN user (OGGADMIN2). Server B GG was configured to ignore data from OGGADMIN2 but not from OGGADMIN (from server A). This way I was able to replicate the replicated data from A to B and C while also maintaining a GG user between B and C.
    Thanks,
    Rob

  • Streaming large data to client

    Hi Friends,
    Need some help.
    I have to generate a pdf on fly and stream to client over internet, but the size of pdf might be 100 MB, and I think streaming this much data over network is not good. Moreover if user is on a dial up it will take too long for user to download the pdf. I cannot stream the data in any other format, I have to stream it as a PDF.
    Do you guys have any suggestions to handle this situation?
    Any help is really appreciated.
    Thanks,
    BS

    Hi Thanks for your reply.
    "Then provide him with a link to a servlet that will read the file and send it back to him."
    When reading this file, if it is huge still we have the same network and user's download speed issues, correct me if I am wrong.
    Generally how do you stream huge files to client, I am sure it is not a new problem, but I never encountered this before. Moreover, what are options for generating read only files.
    My requirement is to generate read only memo's and user wants to generate several memos at once.
    Please do let me know if there is another way to handle this requirement.
    Thanks.

  • Replicating data between oracle9i(source) and 10g database

    sucessfully replicated data between source and target in 10g
    Now I have to replicate the data between oracle9i(source) and 10g database(Target) please help me to solve this issue

    sucessfully replicated data between source and target in 10g What sort of Replication you talking about ? Is it Object level , Schema level or DB Level ?
    Now I have to replicate the data between oracle9i(source) and 10g database (Target) please help me to solve this issue
    http://www.freelists.org/archives/oracle-l/08-2005/msg01260.html
    Hare Krishna
    Alok

  • Replicating data between oracle9i(source) and 10g database(Target)

    sucessfully replicated data between source and target in 10g
    Now I have to replicate the data between oracle9i(source) and 10g database(Target)
    please help me to solve this issue

    sucessfully replicated data between source and target in 10g What sort of Replication you talking about ? Is it Object level , Schema level or DB Level ?
    Now I have to replicate the data between oracle9i(source) and 10g database (Target) please help me to solve this issue
    http://www.freelists.org/archives/oracle-l/08-2005/msg01260.html
    Hare Krishna
    Alok

  • AIR for Android: Streaming audio data won't stop unless I quit....

    I write an application (AIR-Android with Flash Builder) which can play internet radio stations (streamed audio in mp3).
    When I want to stop the stream like myChannel.stop() / mySound.close(); the sound is stopping but the stream is still loading (I can see it with a network monitor app).
    Streaming audio data won't stop unless I quit the application or I switch my connection from WIFI to 3G or from 3G to WIFI.
    I do not have this problem with Air for Mac and IOS.
    How can I solve this problem ?
    Bernard

    Hi Chris,
    I received a response from a certain Wang Zhe (from Adobe) about this bug.
    https://bugbase.adobe.com/index.cfm?event=bug&id=3070987
    It should provide an example of his test that apparently it worked but I have still no answer from him.
    Is it possible to contact him directly?

  • Regarding Address Field while replicating data from ECC to SRM

    Hi Forum,
    I have a few qauestions regarding the mandatory fields that must be maintaned in ECC before replicating data to SRM..
    1)Why is the address data (one we see in PA20 by selecting Addresses for the user) i.e. city and pincode required vefore replication.
    2)Is there a way by which it can be defaulted so that we dont have to maintain it for each and every user?
    Regards,
    Anubhav

    Hello,
    Try if this helps.
    SAP Note : Note 550055 - EBP/CRM: New integration for business partner : Section g:
    Addresses: If addresses are required to generate correct business partners of the organizational unit role (in SRM, for example), the HRALX/OADRE switch is set to X (formerly: the BUPA/ADDR switch). If it is mandatory for each business partner of the organizational unit role to have an address, but the relevant organizational units do not always have a separate address, you can define a standard address. Create a separate business partner for storing the standard address. The number of this business partner, which is used as a container, is stored in the HRALX/OADBP switch (formerly BUPA/ADRBP).
    Thanks
    Ashutosh

  • Date compare with system date

    Given date time is in yyyyMMddHHmmss format, want to compare with system date time.
    ie given date time is greater than zero then go inside if block otherwise else block.

    I am using below code which always greater than zero. But I want to use compare to method to compare given date with system date and goto if or else condition:
    SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
             String delaytimeFormat = sdf.format(new Date("10/10/2009"));    
             System.out.println("delaytimeFormat: "+delaytimeFormat);
             long timeDiff = Long.parseLong(delaytimeFormat) - System.currentTimeMillis(); 
             System.out.println("timeDiff->"+timeDiff);
             String newCallbackUrl = null;
            if(timeDiff > 0){
                 s = s+" new URL"+"test" ;
                 System.out.println("if:->"+s);
            else{
                 System.out.println("else");
            }

  • Comparing two Calendar dates

    No question. Just a comment with code example.
    Yesterday I was having issues comparing two Calendar dates. They looked equal in my println statement, but they failed the test. The solution evaded my cafeine intensified brain for hours. Then it hit me. Print out the time in milliseconds and see if the numbers were the same. Nope. Why?
    The problem was that in the real world, you get dates from all over the place, not just cooked up for a text book example. (Don't you just hate those text book examples in their unrealistic world?) Anyway, I was getting a date from an HTML form and a data from a database and comparing the two once I had converted them both to a Calendar object. This seemed a reasonable choice.
    Well, the java.sql.Date that the Oracle driver returned which was converted to a java.util.Date was fine. I ran this into a Calendar with the call calS.setTime(dbDate). The form date was split into fields and put into a difference Calendar obj with the call calF.set(fYear, fMonth, fDay, 0, 0, 0). This too seemed reasonable. Then a call to calS.equls(calF) resulted in a false even though the actual dates were in fact the same.
    The problem was with the time. The java.sql.Date (calS) had a time of 00:00:00 which was fine. The calendar from the form also had 00:00:00 for a time since I initialized it with zeros. Hummmmm. Now what? As mentioned before, I decided to print out the actuall time in milliseconds and that gave me my answer. The two calendars were off by only milliseconds, but that's why. You see, the equals method of Calendar compares two dates/time in milliseconds. You can see this in the source for yourself. It's not difficult to read at all. Download and open the api source file, src.zip, and locate Calendar.java in the java.util directory.
    The fix was to add calF.set(Calendar.MILLISECOND, 0) and calS.set(Calendar.MILLISECOND, 0) to zero out the milliseconds in each Calendar object. That did the trick. Here's example code of the problem (test1) and the solution (test2). I tried to simulate as close to real world as possible. If you have a better solution or I've made some error, please let me know. I'm always looking for better ways.
    Main.java
    import java.util.Calendar;
    import java.util.Date;
    import java.text.SimpleDateFormat;
    public class Main {
        private int fYear = 2003;
        private int fMonth = 3;  // march
        private int fDay = 14;
        public static void main(String[] args) {
            Main main = new Main();
            main.test1();
            main.test2();
        public void test1() {
            SimpleDateFormat df = new SimpleDateFormat();
            // get the date from the form
            Calendar calF = Calendar.getInstance();
            calF.set(fYear, fMonth-1, fDay, 0, 0, 0);  // month starts at 0 - so march would be 2
            System.out.println("From form date:     [" + df.format(calF.getTime()) + "] [" + calF.getTimeInMillis() + "]");
            // simulate other activity in the app
            try {
                Thread.sleep(5000);
            catch (Exception ex) {
                ex.printStackTrace();
            // get the Date from the shared object which comes from a database (java.sql.Date)
            // the return is java.util.Date
            // convert to a Calendar
            SharedObject so = new SharedObject();
            Date myDate = so.getTheDate();
            Calendar calS = Calendar.getInstance();
            calS.setTime(myDate);
            System.out.println("Shared Object date: [" + df.format(calS.getTime()) + "] [" + calS.getTimeInMillis() + "]");
            // compare the two calendars for equality
            if (calS.equals(calF)) {
                System.out.println("The same");
            else {
                System.out.println("NOT the same");
        public void test2() {
            SimpleDateFormat df = new SimpleDateFormat();
            // get the date from the form
            Calendar calF = Calendar.getInstance();
            calF.set(fYear, fMonth-1, fDay, 0, 0, 0);
            calF.set(Calendar.MILLISECOND, 0);  // the magic bean
            System.out.println("From form date:     [" + df.format(calF.getTime()) + "] [" + calF.getTimeInMillis() + "]");
            // simulate other activity in the app
            try {
                Thread.sleep(5000);
            catch (Exception ex) {
                ex.printStackTrace();
            // get the Date from the shared object which comes from a database (java.sql.Date)
            // the return is java.util.Date
            // convert to a Calendar
            SharedObject so = new SharedObject();
            Date myDate = so.getTheDate();
            Calendar calS = Calendar.getInstance();
            calS.setTime(myDate);  // just to be safe
            calF.set(Calendar.MILLISECOND, 0);
            System.out.println("Shared Object date: [" + df.format(calS.getTime()) + "] [" + calS.getTimeInMillis() + "]");
            // compare the two calendars for equality
            if (calS.equals(calF)) {
                System.out.println("The same");
            else {
                System.out.println("NOT the same");
    SharedObject.java
    public class SharedObject {
        public java.util.Date getTheDate() {
            java.util.Date d = null;
            try {
                java.sql.Date s = java.sql.Date.valueOf("2003-3-14");  // this march is converted internally
                d = (java.util.Date)s;
            catch (Exception ex) {
                ex.printStackTrace();
            return d;
    } The output
    From form date:     [3/14/03 12:00 AM] [1047621600296]
    Shared Object date: [3/14/03 12:00 AM] [1047621600000]
    NOT the same
    From form date:     [3/14/03 12:00 AM] [1047621600000]
    Shared Object date: [3/14/03 12:00 AM] [1047621600000]
    The same

    So your post boils down to the fact that Calendar's set(year, month, day, hour, minute, second) method doesn't change the milliseconds fraction?
    Given that there is this method, I guess it would be nice if there was a method that simultaneously set all fields, but the API does state:
    Previous values of other fields are retained. If this is not desired, call clear() first.

  • Comparing and Asjusting data b/w two systems using SCU0 Transaction

    I need to compare and adjust data between two systems for tables T006 , T006A  . I am using Transaction SCU0 for comparison . It is giving me comparison results  , but  coz of some reason Button for adjusting data is not active for me .
    If I do the same thing using SM30 ,  Adjust button is coming after comparison  . I don't have maintinance views available for these tables otherwise i would have used SM30 . I want to do that using SCU0 only . Any idea how can I make  Adjust button active  .
    Regards

    Hi,
    Welcome to SDN !!!
    I would suggest you to please contact your BASIS Team. They will Activate the button for you.
    Thanks,
    Chidanand

  • Importing editable data that can be compared to the data model?

    I will describe my objective and how I've solved it currently without Powerpivot.  Then I will ask if there's a way to improve upon my solution by using Powerpivot.
    The topic is project allocation forecasting.  Currently I import two copies of the same dataset from a work management system in to Excel.  One copy is then modified iteratively and produces graphs used in predict resources on various projects
    in the future.  We work through many "what if" modifications to this data.  Once we believe we have the data correct, I then compare the modified data to the second copy of the data, to see what we changed.
    With Powerpivot, much of what I coded in VBA for Excel previously is extremely simple (and better.)  Additional advantage is I don't have to actually import the data in to Excel (after first exporting it from the work management system.)  But I
    lost the ability to modify the data over and over, and then compare it back to its original source.
    Finally to my question... is there a better way to import the data in a way that it will be editable, and then compare that data back to the data existing in the data model?

    well, you cannot modify any data once it is loaded to power pivot - unfortunately
    the only thing i could think of is to use Excel linked tables which are then updated in power pivot once you modified them
    depending on how you want to change your data this may be an option for you
    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

Maybe you are looking for

  • Wrongly created depreciation for .3 months instead of 3 years

    Hi SAP gurus Assets purchased in Aug10 were wrongly created to depreciate over 3 months instead of 3 years. How do we rectify the errors as depreciation was grossly overstated for assets. Depreciation is already posting for one month and period is no

  • JButton changes size

    My button changes size when it has label START and STOP. How can i do, it not changes (sorry for my english)   import javax.swing.*; import java.awt.*; import java.awt.event.*; class Ramka extends JFrame {      JButton b2 = new JButton("START");     

  • HT1212 How do you undisable your ipad?

    I DISABLED MY IPAD WHEN ENTERING THE INCORRECT PASSWORD, ITS TELLING ME TO CONNECT TO ITUNES, BUT ITUNES CANNOT ACCESS IT BECAUSE IT IS LOCKED.  HOW DO YOU UNLOCK IT?

  • E1200 modem: Username and Password don't work! help!

    We cannot allow other devices (computers etc) on our network. the only one allowed is the one thats set up the network originally. I've contacted our internet provider, spyware and everyone else and they say its within the router. And the username an

  • MSS form Check and Send button

    Hi All I am working on a MSS form object which changes the last name of an employee. The form has basically two fields - Current Last Name and New Last Name. Current Last Name is READ ONLY field whereas New Last name is user entered one. Problem is w