[help]why data on table (master ) different  from materialized view(slave)?

We have had Oracle RAC 2 Groups (master and slave).
We have created materialized from slave to master. and I have created materialized view log on master .
When slave group job is broken a long time(12 Hrs). We refreshed job and runned job id.
But I have found database on materialized view (slave) different from TABLE on master group. (m$log =0row)
Please tell me how can we resolve Or because that problem is m$log

Yes I do have a unique identifier on each record in the base table and therefore also in the MV.
So now the Downstream application has to update some of its own database tables based on what is in the MV that I provide - just so I understand how would that work e.g.:
1. MV gets refreshed from my base table every minute
2. Some records are newly inserted and some simply updated
and this is the part I don't understand (I might be missing something obvious)....
3. Downstream application interrogates the MV every (say 1-2 minutes) and updates its own tables based on the data there.....but let's say MV contains 10,000 records and in the last minute 100 of those records have been updated and another 100 inserted - how will it know the 200 records it needs to pull?
Thanks again

Similar Messages

  • How to make column headers in table in PDF report appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp

    Hi my name is vishal
    For past 10 days i have been breaking my head on how to make column headers in table appear bold while datas in table appear regular from c# windows forms with sql server2008 using iTextSharp.
    Given below is my code in c# on how i export datas from different tables in sql server to PDF report using iTextSharp:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using System.Data.SqlClient;
    using iTextSharp.text;
    using iTextSharp.text.pdf;
    using System.Diagnostics;
    using System.IO;
    namespace DRRS_CSharp
    public partial class frmPDF : Form
    public frmPDF()
    InitializeComponent();
    private void button1_Click(object sender, EventArgs e)
    Document doc = new Document(PageSize.A4.Rotate());
    var writer = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    doc.SetMargins(50, 50, 50, 50);
    doc.SetPageSize(new iTextSharp.text.Rectangle(iTextSharp.text.PageSize.LETTER.Width, iTextSharp.text.PageSize.LETTER.Height));
    doc.Open();
    PdfPTable table = new PdfPTable(6);
    table.TotalWidth =530f;
    table.LockedWidth = true;
    PdfPCell cell = new PdfPCell(new Phrase("Institute/Hospital:AIIMS,NEW DELHI", FontFactory.GetFont("Arial", 14, iTextSharp.text.Font.BOLD, BaseColor.BLACK)));
    cell.Colspan = 6;
    cell.HorizontalAlignment = 0;
    table.AddCell(cell);
    Paragraph para=new Paragraph("DCS Clinical Record-Assigned Dialyzer",FontFactory.GetFont("Arial",16,iTextSharp.text.Font.BOLD,BaseColor.BLACK));
    para.Alignment = Element.ALIGN_CENTER;
    iTextSharp.text.Image png = iTextSharp.text.Image.GetInstance("logo5.png");
    png.ScaleToFit(105f, 105f);
    png.Alignment = Element.ALIGN_RIGHT;
    SqlConnection conn = new SqlConnection("Data Source=NPD-4\\SQLEXPRESS;Initial Catalog=DRRS;Integrated Security=true");
    SqlCommand cmd = new SqlCommand("Select d.dialyserID,r.errorCode,r.dialysis_date,pn.patient_first_name,pn.patient_last_name,d.manufacturer,d.dialyzer_size,r.start_date,r.end_date,d.packed_volume,r.bundle_vol,r.disinfectant,t.Technician_first_name,t.Technician_last_name from dialyser d,patient_name pn,reprocessor r,Techniciandetail t where pn.patient_id=d.patient_id and r.dialyzer_id=d.dialyserID and t.technician_id=r.technician_id and d.deleted_status=0 and d.closed_status=0 and pn.status=1 and r.errorCode<106 and r.reprocessor_id in (Select max(reprocessor_id) from reprocessor where dialyzer_id=d.dialyserID) order by pn.patient_first_name,pn.patient_last_name", conn);
    conn.Open();
    SqlDataReader dr;
    dr = cmd.ExecuteReader();
    table.AddCell("Reprocessing Date");
    table.AddCell("Patient Name");
    table.AddCell("Dialyzer(Manufacturer,Size)");
    table.AddCell("No.of Reuse");
    table.AddCell("Verification");
    table.AddCell("DialyzerID");
    while (dr.Read())
    table.AddCell(dr[2].ToString());
    table.AddCell(dr[3].ToString() +"_"+ dr[4].ToString());
    table.AddCell(dr[5].ToString() + "-" + dr[6].ToString());
    table.AddCell("@count".ToString());
    table.AddCell(dr[12].ToString() + "-" + dr[13].ToString());
    table.AddCell(dr[0].ToString());
    dr.Close();
    table.SpacingBefore = 15f;
    doc.Add(para);
    doc.Add(png);
    doc.Add(table);
    doc.Close();
    System.Diagnostics.Process.Start("AssignedDialyzer.pdf");
    if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.Yes)
    var writer2 = PdfWriter.GetInstance(doc, new FileStream("AssignedDialyzer.pdf", FileMode.Create));
    else if (MessageBox.Show("Do you want to save changes to AssignedDialyzer.pdf before closing?", "DRRS", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Exclamation) == DialogResult.No)
    this.Close();
    The above code executes well with no problem at all!
    As you can see the file to which i create and save and open my pdf report is
    AssignedDialyzer.pdf.
    The column headers of table in pdf report from c# windows forms using iTextSharp are
    "Reprocessing Date","Patient Name","Dialyzer(Manufacturer,Size)","No.of Reuse","Verification" and
    "DialyzerID".
    However the problem i am facing is after execution and opening of document is my
    column headers in table in pdf report from
    c# and datas in it all appear in bold.
    I have browsed through net regarding to solve this problem but with no success.
    What i want is my pdf report from c# should be similar to following format which i was able to accomplish in vb6,adodb with MS access using iTextSharp.:
    Given below is report which i have achieved from vb6,adodb with MS access using iTextSharp
    I know that there has to be another way to solve my problem.I have browsed many articles in net regarding exporting sql datas to above format but with no success!
    Is there is any another way to solve to my problem on exporting sql datas from c# windows forms using iTextSharp to above format given in the picture/image above?!
    If so Then Can anyone tell me what modifications must i do in my c# code given above so that my pdf report from c# windows forms using iTextSharp will look similar to image/picture(pdf report) which i was able to accomplish from
    vb6,adodb with ms access using iTextSharp?
    I have approached Sound Forge.Net for help but with no success.
    I hope anyone/someone truly understands what i am trying to ask!
    I know i have to do lot of modifications in my c# code to achieve this level of perfection but i dont know how to do it.
    Can anyone help me please! Any help/guidance in solving this problem would be greatly appreciated.
    I hope i get a reply in terms of solving this problem.
    vishal

    Hi,
    About iTextSharp component issue , I think this case is off-topic in here.
    I suggest you consulting to compenent provider.
    http://sourceforge.net/projects/itextsharp/
    Regards,
    Marvin
    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.

  • Why data has not been copied from staging DB to Reporting DB even timer job status is success ?

    Hello,
    I am facing following issue regarding web analytic service for specific date 2014-08-18:
    Verified following services which are running and status was success on that specific date 2014-08-18 :
    Web Analytics Service
    Microsoft Usage Data Import
    Microsoft SharePoint Foundation Usage Data Processing
    Observed latest Web Analytics Setting as below :
    LastAggregationDateId 
    20140817 -   The date id of the last successfully completed data aggregation
    LastAggregationTime
    2014-08-18T00:00:13.210 - The time of the last successfully completed data aggregation
    LastBestBetSuggestionAggregationDateId
    20140818 - The date id of the last successfully completed best bet suggestion data aggregation. This date id should not be reset to an earlier date manually.
    LastDataCopyTime
    2014-08-17T23:59:09.693 - The last time the data were copied from the staging databases to this reporting database for aggregation
    Above settings says that Data has not copied from Staging DB to Reporting DB on Date 2014-08-18
    In order to verify the same I have checked as follow:
    SELECT COUNT (*) FROM [dbo].[WATrafficAggregationByDate] WITH (NOLOCK)
    WHERE  [DateId] = 20140818
    Above SQL Query has returned ZERO value.
    Can anyone please let me know Why data has not been copied from staging DB to Reporting DB even timer job status is success ?
    Your help will be much appreciated.
    Thanks and Regards,
    Dipti Chhatrapati

    The image itself has the answer
    The user requests a page, and the action gets picked up by the Web Analytics service that runs on SharePoint.
    The Web Analytics service logs this in the “.usage” files.
    A Timer job called “Microsoft SharePoint Foundation Usage Data Import” by default runs every 30 minutes. It imports the logs into the staging database.
    Each night the “Microsoft SharePoint Foundation Usage Data Processing” Timer job runs and transforms the data into the reporting database.
    The last run time of the import from staging and the aggregation is logged in the Settings table in the Reporting database.
    Usage and Health Data Collection Service Application collects Data about Usage and Health of your farm.
    This information is used for Health Monitoring and this is also required for running the Web Analytics Service. If you do not have a Usage and Health Data Collection Service Application or your
    Usage and Health Data Collection Proxy is stopped, you will not see any data in the Web Analytics Report
    Regards Chen V [MCTS SharePoint 2010]

  • Why is  the genius pass different from the itunes log in

    why is  the genius pass different from the itunes log in?

    Sorry, but what "genius pass" are you referring to? What exactly is happening for you, or what is the nature of the problem you're experiencing?

  • HT204053 why my iCloud email is different from my email and how do I change it?

    why my iCloud email is different from my email and how do I change it?

    iCloud email - the email service the icloud provides.
    "my email" - what do you mean by that?

  • Challan material is different from material document----Message no. 8I572

    Hi,
    I am getting the following error in subcontracting process when reconciling through J1IFQ.
    Challan material is different from material document----Message no. 8I572
    After P.O. creation and issued the materials through 541 and created a subcontract challan 57f4 and G.R has been done when reconciling through J1IFQ i am getting the above mentioned error.
    Thanks,
    Kiran Bodla

    Hi,
    In spro --> taxon goods movemnt > indiac> business transaction --> subcontrcating --> maintain movement type grp
    here miantain
    0002     101
    0002     542
    0002     543     O
    Hope help U !
    Regards,
    Pardeep Malik

  • Challan Material is Different from Material Document Message No. : 8I 572..

    Dear All,
    Good afternoon. In my company, after version upgrade from ECC5.0 to ECC6.0, facing one peculiar issue i.e in MIGO for subcontract order : When I enter challan number for reference in pop-up, We are getting the below error
    "Challan Material is Different from Material Document Message No. : 8I 572..."
    Creation of preliminary activites before migo in one user login and if i try migo for the same in same login, no errors reported. but if I do the MIGO from different user login, i have noticed with above error and vice versa.
    For this as a abaper, if I debug for trouble shooting from MIGO, no error noticed from any logins for the same activity.
    Kindly help us.
    Arunachalam S

    Dear Hema,
    Thanks for your reply.
    As you mentioned, every thing has been checked and found okey.
    The observation is with same authorization, User A can able to inward the sub-contracting material but User B coud'nt do so and noticed error of  "Challan Material is Different from Material Document Message No. : 8I 572.."
    Even thought,the input information for the both logins are same.
    have a nice day.
    Arunachalam S

  • Challan material is different  from material document

    Dear All,
       When i going to reconciliation of subcontracting challan on t-code J1IFQ
    *material document -MIGO  Number(which was created at the time of MIGO)*
    *Year-2009*
    when i feel the detail like
    year            challan no             Item
    2009           00000001
    it also show a warning message *material document MIGO  Number(which was created at the time of MIGO) 2009 is allocated a challan during GR**
    im getting a error message
    challan material is different  from material document
    Pls Guide me
    Thanks
      Amin
    Edited by: sekh amin on Jul 9, 2009 8:16 AM

    M also facing the same problem and getting the same error message.
    "Chalan material is different from material document"
    But when I checked material and challan, everything was OK.
    Can anyone guide me to solve the issue.
    Regards
    Edited by: sapsarang on Jul 13, 2009 8:14 AM

  • "challan material is different from material document " error in GR

    hi all..
    when i am trying to do GR with respect to challan that i have created its showing
    "challan material is different from material document "
    if i didn choose the option "Refer sub-con challan" and tried to post it shows dump error of
    "Exception condition "T681Z_MISSING" raised.".
    dont we get the values while creating sun con challan in J1IF01 ?
    can you suggest where i have missed the steps.
    Thanks
    r.Kannan.

    Whenever inwarding the material against the Sub contracting , challen no to be given, but can you tell , which version you r working,
    Its this problem continue for all the sub contracting & for only on login or many logins
    Regards,
    Suresh.P

  • Master Data: 2 records with different FROM-TO dates

    Hi,
    I am extracting the master data from R/3. In R/3 the master data record is created with valid FROM: 01/01/1900 and valid TO: 12/31/9999. But when I extract the data into BW it is coming as 2 records one with 01/01/1000-12/31/1899 range and the other with 01/01/1900-12/31/9999.
    What settings/steps I need to change to get only one record for now and of course in future any change to the records will comes as different valid date range.
    When I schedule the info package, the update tab consist of Fixed time interval start date: 10/20/2005; end date: 12/31/9999.
    Time being to avoid this in the transfer rule of FROM date info object selected constant option with date 01/01/1900 as in R/3????
    Appreciate your help on this.
    Thanks.
    Sudha.

    Hi Nagesh,
    Thanks for reply.
    I have assigned one-to-one from R/3 to BW.
    In R/3 I have FROM and TO date and assigned these two fields to Transfer structure FROM and TO info objects.
    I have maintained Transfer rule only after getting two records into BW for every one entry in R/3. In the rule I just assigned constant date to avoid 2 records for every entry from r/3. So nothing to do with the routine.
    I want to see one record in BW for every entry coming from R/3. At present in the BW master data sitting as 2 records.
    Example:
    one record in R/3 with:
    FROM date: 01/01/1900; TO date: 12/31/9999.
    Inserted 2 records into BW with:
    FROM date: 01/01/1000; TO date: 12/31/1899.
    FROM date: 01/01/1900; TO date: 12/31/9999.
    Thanks.
    Sudha.

  • Why co-pa extraction is different from other extraction

    any one could u tell me about the copa extraction

    Most extraction from SAP are different from each other -:)
    But more so with COPA becuase SAP does not provide any delivered tables for COPA.
    All tables in COPA is created by the company implementing it. They are similar to the tables created when you create a cube in BW. Hence there are no per say standard datasource; though you can create one using a procedure.
    Hope this helps.

  • Why does Photoshop display colors differently from the other applications even in sRGB mode ?

    Hello all !
    Here is my problem :
    Photoshop is set to use sRGB workspace (in edit/colors.../workspace/RVB).
    If I understand correctly this is how all native windows applications work.
    This means Photoshop and the other applications should display the same colors on a file with a sRGB profile.
    Now this is the case until I calibrate my monitor.
    When I do, Photoshop colors become different from the other applications (irfanview, explorer, browsers...).
    The only way I found to let everything display the same colors is to set Photoshop to use Proofing/RVB Monitor.
    What upsets me even more is that Photoshop colors look "better" to me (dark grays seem to dark to me in the other applications.)
    I have read that this is because Photoshop takes the new profile into account and others applications do not. But I don't think this is relevant here because everything is in sRGB so the only profile is my monitor's and I think calibration is handled globally by windows : everything (including browsers, explorer, and Photoshop) changes color if I choose to apply the monitor's profile or not with windows color management tool ("use my parameters for this device").
    Here is my system configuration :
    - Photoshop CS4 (11.0.2)
    - Windows 7 64 bits
    - HP ZR2440W and DELL 2209WA (these are not wide gamut screens)
    I have spent two days trying to figure the logics behind this and really am upset. Any help would be greatly appreciated. Don't hesitate to ask me if there is something that is unclear or some information I forgot to mention.
    Thanks in advance,
    Yannick

    That sounds like an invitation to continue to talk about the issue.  Fair enough.
    I'm not sure where you're getting "insecurity"...  I am just trying to help you help others more effectively.
    I invite you to re-read just the first sentence of what you wrote very carefully, putting yourself in the shoes of someone struggling with both the terminology and the concepts:
    Photoshop (CMS) reads an embedded ICC profile and CONVERTS it to the custom monitor profile for a theoretical 'true color' display
    Think about what "Photoshop (CMS)" might mean to a person who doesn't know the acronym might stand for "Color Management System" (which is I assume what you meant).  Adobe themselves don't call it "CMS", they use the acronym "CMM" (Color Management Module).  The term "CMS" is used in the computer industry for about a dozen different things.
    While a color profile might have been embedded in an image file before it was opened by Photoshop, Photoshop works on documents.  A profile is not "embedded" in a document, it is maintained by Photoshop with the document and describes the color values in the document.  If Photoshop opens a document without an embedded profile, depending on settings and user choices it might assign a profile or it might even operate on the document without color-management.  Oversimplification doesn't help people when they're trying to learn new things unless it's described as such, for example, "This is a bit of an oversimplification..." or "Generally speaking..."
    Not every monitor profile is a "custom monitor profile".  Quite often a standard profile (e.g., sRGB IEC61966-2.1) is associated with a monitor by the operating system as a default, or a factory profile is installed by a driver package or system update.  Your use of the term "custom" is a bit ambiguous and could be read as implying the creation of a profile using a calibration and profiling device specific to the particular monitor.
    Photoshop's color management code does not convert an embedded ICC profile at all (read carefully what you wrote).  As I said, it transforms color values.  That was the key error in your description that prompted me to comment.
    If ever there is a time to pick words carefully, it's in a color-management discussion.
    -Noel

  • Why do the colors appear different from photoshop when I place a picture in indesign?

    I am new to indesign, and photoshop for that matter. But when I place a picture in indesign the color looks completely different from what it was in photoshop. Is this just a display issue or will it print with the wrong color?

    You have a profile mismatch. Make sure the document and PS file's assigned profiles match. If you are not assigning color profiles then the Working Spaces in Color Settings have to match.

  • Can't update master table when creating a materialized view log.

    Hi all,
    I am facing a very strange issue when trying to update a table on which I have created a materialized view log (to enable downstream fast refresh of MV's). The database I am working on is 10.2.0.4. Here is my issue:
    1. I can successfully update (via merge) a dimension table, call it TABLEA, with 100k updates. However when I create a materialized view log on TABLEA the merge statement hangs (I killed the query after leaving it to run for 8 hrs!). TABLEA has 11m records and has a number of indexes (bitmaps and btree) and constraints on it.
    2. I then create a copy of TABLEA, call it TABLEB and re-created all the indexes and constraints that exist on TABLEA. I created a materialzied view log on TABLEB and ran the same update....the merge completed in under 5min!
    The only difference between TABLEA and TABLEB is that the dimension TABLEA is referenced by a number of FACT tables (by FKs on the FACTS) however this surely should not cause a problem. I don't understand why the merge on TABLEA is not completing...even though it works fine on its copy TABLEB? I have tried rebuilding the indexes on TABLEA but this did not work.
    Any help or ideas on this would be most appreciated.
    Kind Regards
    Mitesh
    email: [email protected]

    Thats what I thought, the MVL will only read data that has changed since it was created and wont have the option to load in all the data as though it was made before the table was created.
    From what I have read, the MVL is quicker than a Trigger and I have some free code that prooved to work from a MVL using it as a reference to know what records to update. There is not that much to a MVL, a record ID and type of update, New, Update or Delete.
    I think what I will have to do is work on a the same principle for the MVL but use a Trigger as this way we can do a full reload if required at any point.
    Many thanks for your help.

  • Moving data from Materialized View to downstream application

    Database Version: 9i Release 2
    I've created a Materialized View on a base table, the purpose of which is to capture data changes to send to a downstream application
    (I've been advizsed to avoid using Streams for now until we upgrade to 10g)
    I need to either:
    a) Make that data available for another process to pick up and have knowledge of what it needs to pick up versus what it has already picked up
    or
    b) Send/Update a table or MV at a downstream MS SQL Server database (resides within our firewall)
    Some notes/questions
    I cannot change the structure of the underlying base table
    On the MV I could capture a date-time which records each time a record is touched on the base table, the problem is that many of these updates are “meaningless” and I should not send such updates downstream
    1.Is there a way I can timestamp/flag the records as they get inserted/updated on the MV? (potentially used by the pickup process to identify what it needs to pick up)
    2. If I flag the records e.g. “needs pickup” – would it be ok to make the MV updateable so the process can then mark the records as “picked up”. Performance?
    3. Can I create a trigger on the MV to write records to a secondary table as they are inserted/updated on the MV?
    4. Could I use the MV log tables MLOG$ to help me in any way?
    I’m guessing there is no way to do the following but:
    5. Is there a way to include a column on a Materialized View but ignore it in terms of capturing changes. e.g. I have columns a,b,c,d,e on my base table, I want to include a,b,c in my Materialized View but I only want my MV to be updated if a or b is updated on base table. If only column c is updated do not send any update to MV
    Many thanks for any insight

    Yes I do have a unique identifier on each record in the base table and therefore also in the MV.
    So now the Downstream application has to update some of its own database tables based on what is in the MV that I provide - just so I understand how would that work e.g.:
    1. MV gets refreshed from my base table every minute
    2. Some records are newly inserted and some simply updated
    and this is the part I don't understand (I might be missing something obvious)....
    3. Downstream application interrogates the MV every (say 1-2 minutes) and updates its own tables based on the data there.....but let's say MV contains 10,000 records and in the last minute 100 of those records have been updated and another 100 inserted - how will it know the 200 records it needs to pull?
    Thanks again

Maybe you are looking for

  • ITunes Remote App and iPhone 5 and PC

    I just recently downloaded the Remote app from the App Store and I was trying to pair the Remote app with my PC but my PC doesn't see it at all. They're both connected to the same Wi-Fi network as well. I don't understand what I'm doing wrong. Hope t

  • Query not returning any rows?

    hi experts, My query running long but not returning any result. i have data , no locks on the tables. i have bigger ( hardware ) database on different server , where I can get results with same query. Can you tell me what are the DB settings i have t

  • ~Strange~ recording behavior... help!

    Everytime I press record, recording starts about a full second before it should! When I press stop, if further seemingly removes a front portion of the take. Any ideas??

  • Odi Agent cannot connect work repsotiroy

    Hi everyone, I upgraded odi ,I configured odiparams.sh .When start agent ,it works successfuly. But When I execute procedure,or interface etc ,on odi it says session started. But when ı look at to agent running screen command promt ERROR ODI-1224 Dat

  • Portable Document Sheetfed Scanner-Recommendations???

    Am wondering if anyone has used a portable scanner that can be traveled with, is light and has decent resolution? Any help is appreciated. AJ