Row counts comparison between 2 DBs

Hi Guys,
I need to migrate data in a 8i DB to a 10g DB, is there any simple way to compare the row count of each table on new db to the old db, in order to make sure all rows have been transferred.
Thousands thanks.
Ben

Thank you , Gasparotto.
1. The DB is quite a big one ( approximately 500GB)
2. The migration has not happened yet. We just need to propose some migration verification methods to the customers at this stage. We definitely will examine the log files to make sure no error in it. But the migration will be carried out at mid-night, and we only have 4 hrs downtime. We need a extra method to double verify everything is OK.
3. As you may understand, it's a e-banking DB. We'll be on news headline if we miss anything. A report is also a red-tape, which is normal in such kind of project.
Any experience to share?
Is there any witty way to achieve this? or inevitably a long script complex checking script?
Thanks!!!!

Similar Messages

  • How to setup alert for row count mismatch in replication

    Hi All,
    I noticed that in our environment there was a row count mismatch between the publisher and subscriber.Still the replication monitor was showing excellent.I reinitialized the replication to resolve the issue.
    I want to set up alert row count mismatch alert between publish and subscrber tables before the client tells it to me.How this can be done?
    Thanks!

    There is an alert called - Replication: Subscriber has failed data validation - use that in conjunction with a validation.
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • Show rows with difference between tables.

    Hi all,
    I've got two tables:
    Table 1 has a total count of 6784
    Table 2 has a total count of 6156
    The differnce between the two are 628 rows.
    I'm trying to find the rows that are different between the two (i.e. the 628).  RIght now, I've only got the counts.
    select count(*) from (
    select * from Table1
    minus
    select * from Table2
    union all
    select count(*) from (
    select * from Table 2
    minus
    select * from Table1
    1. 769
    2. 141
    I've tried:
    select * from (
    select * from Table1
    minus
    select * from Table2
    union all
    select count(*) from (
    select * from Table 2
    minus
    select * from Table1
    But that shows the two differences together. 910 rows.
    How can I isolate those 628 rows in one result, that are different between the two?
    Thanks.

    Hi,
    we5inelgr wrote:
    Thanks for all the replies and sorry it wasn't clear initially and I'm not sure this will help much but what I'm looking for are the rows (the actual data, not the cournts) from this count result:
    select count(*) from (
    select * from Table1
    minus
    select * from Table2
    union all
    select count(*) from (
    select * from Table 2
    minus
    select * from Table1
    1. 769
    2. 141
    but just the 628 rows, not the 769 rows and/or the 141 rows.  only the 628 rows that are the difference between the two.
    Table 1 is a test table that was updated with some new data.  Table 2 is a "model office" table.  I need to show which rows are different between the two (the 628 rows).  The other 6156 rows are identicle between the two tables.
    Not quite.  If the other 6156 rows were identical, then the query abouve would be producing
    628
      0
    but it's not; it's producing
    769
    141
    As Jonathan explained, there are 769 rows that are in Table1 but not in Table2.
    Why do you want to see only 628 of them?  Which 628 do you want to see?  Why do you want to see that set of 628, and not some other set of 628?
    Let's use a concrete example.  Say both tables consist of a single column, p_key.
    Table1.has 6784 rows, where p_key contains the integers 1 through 6784.
    Table2 has 6156 rows, where p_key contains the integers 770 trhough 6925.
    What are the results you want to see?  Why do you want to see them, and not some other results?  For example, if you say "I want to see the numbers 1 through 628". why those numbers?  P_key=629 is present in table1, but missing in table2, just like p_key=628 is.  Why do you want to see p_key=628 but not p_key=629?

  • Different opertimizer_mode will cause different result( ie. row count).

    Hello expert,
    in my store procedure, I have change "opertimizer_mode" from several times among "rule" and "all_rows". I am wondering for the same statement if using different opertimizer_mode will cause different result for data volume ( such as row count?).
    Many Thanks,

    What version of Oracle?
    The rule hint should probably not be used in or after 10g except in very precise and very limited circumstances which usually involve querying data where no statstics exist - an unlikely event in 10g or 11g. Maybe with collection-to-table CAST() or TABLE() conversions and similar situations.
    The cost-based optimizer is almost always to be preferred to the rule-based optimizer in recent versions because almost all of the useful new features the database implements require it.
    Like BluShadow I wonder what the need to switch between the optimzers could possibly be

  • Questions on the comparison between Oracle Forms and Oracle APEX

    Hi All,
    The link below presents information about Oracle Application Express for Oracle Forms Developers, the table at the end of the page shows a comparison between Oracle Forms and Oracle APEX, all the points of comparisons are clear for me except 3 points which are:
    •Locking, what is meant by locking models?
    •Database Connections, what is meant by Synchronous/Asynchronous connections in Oracle Forms and Oracle Apex?
    •Architecture, what is meant by 2tier and 3 tier connections?
    http://www.oracle.com/technology/products/database/application_express/html/apex_for_forms.html
    What I need is a simple explanation for these points without deep details.
    Thanks

    Hi
    That is how I understand that document:
    Locking: Forms, by default, locks a row as soon as the user starts modifying the data. That is pessimistic locking. Apex, on other hand (and optionally forms also) do not lock the record, but before applying any changes checks if the data has changed since the user queried it (what for some reason is called optimistic "locking")
    DB connections: I am not sure why they used the terms synchronous/asynchronous, but the difference is that Forms, by default, keeps an permanent DB connection while the user is using the application, while Apex gets a connection from a connection pool every time a page is requested/submitted.
    Architecture: Forms (in its web version at least) has 3 tiers: the browser, the appserver where the forms service runs and the database. As Apex runs inside the database, there are only 2 tiers: the browser and the database (though you still may need an http server in between which serves static content, I don't think it is considered part of the application in this context). If you are talking about client/server forms, then there are only 2 tiers.
    I hope this helps!
    Luis

  • Row Count

    What I would like to do is do row counts across 2 schemas with same tables and see if there are any differences in row counts and if there is any would like to generate an email and alert the user.
    Is it possible?

    Hello,
    Yes it is possible, you need to
    grant select on user2.table_name1 to user1; (you can grant select to all tables of user2 to user1 or otherway) and then write pls/sql procedure to send email using utl_smtp.
    Check this link for example
    http://www.quest-pipelines.com/newsletter-v2/smtp.htm
    Regards
    Edited by: OrionNet on Dec 30, 2008 5:48 PM

  • There was an error while updating row count for "SH".."SH".CHANNELS

    Hi All,
    Am new to OBIEE.Pls help in this regard.
    Am building the physical layer as per Repository guide.When am importing the data in to this,am getting the below error.
    *"There was an error while updating row count for "SH".."SH".CHANNELS" :"*
    channles is the table name and having 5 rows.
    but am able to see the data in the sql prompt. like SELECT * FROM SH.CHANNELS then 5 rows data would be displaying..
    pls help in this regard and where is the excat problem?
    Thanks,

    what is the error?
    Make sure that your connection pool settings are okay..
    Make sure that, you are using correct driver in case of if you are using ODBC dsn..
    Also make sure that, your oracle server is running... TNS and Oracle server services

  • DataTable.Rows.Count property is occasionally wrong

    I have a web service in C#.NET which calls a stored procedure using ADO.NET. The stored procedure is always returning 1 row, which is then loaded into a DataTable. The Rows.Count property of the DataTable is then examined.
    When this web service is called repeatedly with numerous requests, it occasionally returns Rows.Count as 0 when it should be 1. I have debugged and examined it at runtime and found that there is indeed 1 row in the datatable, but that the Rows.Count property
    is 0.
    Is this a known bug?
    I'm using .Net Framework 2.0
    Note: This is an issue that occurs very rarely. My testing shows that it takes about 90 minutes to recreate it when you have 2 concurrent processes sending requests repeatedly at a rate of about 10 requests per second.

    Are you sure that there aren't multiple threads access the DataTable?
    Can you post a repro? 
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Dynamically set maximum row count in Interactive Report

    Hi,
    Has anyone worked out a way of dynamically setting (e.g. via select list) the maximum row count value for an Interactive Report, taking into account issues with order by when the report is filtered. I'm aware of solutions like this: http://www.talkapex.com/2010/10/apex-reports-no-limit-downloads.html but as far as I can tell this doesn't work when the report is filtered and the IR is rewritten in the background. Data sets then become unreliable because they are reordered.
    Thanks,
    Mike

    Hi Mike,
    You can do that with javascript
    gReport.search('SEARCH',100)the 100 you can replace for any number you like.I have a report with filter,sorting and groups and it is gives no problem there.
    any number means any number but not higher than the number you set at Maximum Rows Per Page.
    You probably can mix the solution from Martin and the above code.
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.
    Edited by: kvlek on 24-apr-2013 12:29
    Edited by: kvlek on 24-apr-2013 12:35

  • Performance end to end testing and comparison between MPLS VPN and VPLS VPN

    Hi,
    I am student of MSc Network Security and as for my project which is " Comparison between MPLS L3 VPN and VPLS VPN, performance monitoring by end to end testing " I have heard a lot of buzz about VPLS as becoming NGN, I wanted to exppore that and produce a comparison report of which technology is better. To accomplish this I am using GNS3, with respect to the MPLS L3 VPN lab setup that is not a problem but I am stuck at the VPLS part how to setup that ? I have searched but unable to find any cost effective mean, even it is not possible in the university lab as we dont have 7600 series
    I would appreciate any support, guidence, advice.
    Thanks
    Shahbaz

    Hi Shahbaz,
    I am not completely sure I understand your request.
    MPLS VPN and VPLS are 2 technologies meant to address to different needs, L3 VPN as opposed as L2 VPN. Not completely sure how you would compare them in terms of performance. Would you compare the performance of a F1 racing car with a Rally racing car?
    From the ISP point of view there is little difference (if we don't want to consider the specific inherent peculiarities of each technology) , as in the very basic scenarios we can boil down to the following basic operations for both:
    Ingress PE impose 2 labels (at least)
    Core Ps swap top most MPLS label
    Egress PE removes last label exposing underlying packet or frame.
    So whether the LSRs deal with underlying L2 frames or L3 IP packets there is no real difference in terms of performance (actually the P routers don't even notice any difference).
    About simulators, I am not aware of anyone able to simulate a L2 VPN (AtoM or VPLS).
    Riccardo

  • How to add the Row count(number of rows in table)  in  the table header?

    Hi,
    I'm having a table. This table is viewed when i click on a search button.
    <b>On the table header it should dynamically display the number of rows in the table, i.e., the row count.</b>
    How to do this? could any one explain me with the detailed procedure to achieve this.
    Thanks & Regards,
    Suresh

    If you want to show a localized text in the table header, you should use the <b>Message Pool</b> to create a (parameterized) message "tableHeaderText" like "There are table entries".
    Next, create a context attribute "tableHeaderText" of type "string" and bind the "text" property of the table header Caption UI element to this attribute.
    Whenever the table data has changed (e.g. at the end of the supply function for the table's data source node), update the header text:
    int numRows = wdContext.node<TableDataSourceNode>().size();
    String text = wdComponentAPI.getTextAccessor().getText
      IMessage<ComponentName>.TABLE_HEADER_TEXT,
      new Object[] { String.valueOf(numRows) }
    wdContext.currentContextElement().setTableHeaderText(text);
    Maybe you want to provide a separate message for the case that there are no entries.
    Alternatively, you can make the attribute calculated and return the header text in the attribute getter.
    Armin

  • Unable to get the row count of supplier site for each supplier

    Hi,
    In the sourcing module, suppliers page is having an advanced table in which there is a field 'supplier' and another filed 'supplier sites' (supplier field is of type picklist).Now, how can i get the count of 'supplier sites' for each supplier???

    Hi sumit,
    Thanks for the reply, can u please help in writing the code to loop through the VO...
    I was trying to get the first row and then finding the count of supplier sites, but in each iteration of for loop(for each row) i am getting the same count value for each and every row...
    Code :
    int j=vo.getrowcount();//count of no. of rows
    for (int i=0;i<j;i++)
    row=(xxVORowImpl)rowsetiterator.getRowAtRangeIndex(1);
    int a=am.getSupplierSitesVO.getRowCount();//this is the view object in the pick list
    oapagecontext.writeDiagnostics(this,"value of   a is :"+a,1);
    this code is giving row count of last row of supplier.
    How to get the count for each and every row of supplier sites ?
    Thanks.

  • How to get row count(*) for each table that matches a pattern

    I have the following query that returns all tables that match a pattern (tablename_ and then 4 digits). I also want to return the row counts for these tables.
    Currently a single column is returned: tablename. I want to add the column RowCount.
    DECLARE @SQLCommand nvarchar(4000)
    DECLARE @TableName varchar(128)
    SET @TableName = 'ods_TTstat_master' --<<<<<< change this to a table name
    SET @SQLCommand = 'SELECT [name] as zhistTables FROM dbo.sysobjects WHERE name like ''%' + @TableName + '%'' and objectproperty(id,N''IsUserTable'')=1 ORDER BY name DESC'
    EXEC sp_executesql @SQLCommand

    The like operator requires a string operand.
    http://msdn.microsoft.com/en-us/library/ms179859.aspx
    Example:
    DECLARE @Like varchar(50) = '%frame%';
    SELECT * FROM Production.Product WHERE Name like @Like;
    -- (79 row(s) affected)
    For variable use, apply dynamic SQL:
    http://www.sqlusa.com/bestpractices/datetimeconversion/
    Rows count all tables:
    http://www.sqlusa.com/bestpractices2005/alltablesrowcount/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • APEX 3.1 Report pagination style limited by max row count

    I am working on an application using APEX 3.1 and am having trouble keeping the report pagination style as a select list when the max row count for the report is greater than 8000. If I use the select list as the pagination method, the first time that the first page is viewed is fine however all subsequent pages begin to use the "next" and "previous" link method of pagination. This is only occurring when the max row count is higher than 8000 and a select list is used for pagination.
    My question is: is the style of pagination, in Oracle APEX (3.1), limited by the potential number of rows returned for the report? If not, is this a bug with my version of Oracle APEX?

    The source of my problem was that the report referenced a page item for the number of rows. That select list referenced a named List of Values (LOV) that limited the number of rows that the report could display. I removed that reference and my problem disappeared!

  • Error while updating row counts

    Hello,
    I have created a connection pool and while trying to do "update all row counts" i am getting the following error.
    [NQODBC][SQL_ATATE:HY000][NQSError: 10058]A general error has occured.
    [NQSError: 43093] Anerror occured while processing the EXECUTE PHYSICAL statement.
    [NQSError: 17001] ORacle error code:942, message:ORA-00942: table or view does not exist at OCI call OCIstmtExecute
    [NQSError: 17010] SQL statement preparation failed.
    Please provide any suggestions.
    Thanks in Advance.

    hi..
    make sure that the data source name and credentials you given in connection pools are correct...
    Also, make sure that the db-user specified in the connection pool has permissions on that table...
    And make sure that the table name is correct and existing in that schema..

Maybe you are looking for

  • Unable to use ume

    Hi I installed Ep on an exisiting (ABAP + Java ) WAS. I'm unable to use the user management in the EP. Can anyone please send me a document describing how to create and modify users in EP in this setup. Thanks for your help. -M

  • Dictionary error message

    In Microsoft Word for Mac, I keep getting an error message that says the custom dictionary is not available. Sometimes it lets me add new words to my custom dictionary and sometimes it doesn't (using another error message about either the dictionary

  • Dual SG 300-10 mounting and cascading

    SG 300-10 user manual states to not mount the switch on either side (I'm assuming this means the right or left ends as you face the front) and that they can be mounted either face-up or face down or flat). The specs further say that a 5" space must b

  • Mavericks does not "see" install USB for VMware fusion 5

    I was running older version of Fusion 3 and upgraded to Mavericks. I was provided fusion 5 and want to install on macbook air (2010 4GB RAM). when I plug the USB drive into mac I just get a "USB not ejected properly" message. obviously I would use th

  • Text from Word that IDCS4 can't capture (Setting poetry...)

    I am designing some books on poetry and the autho indented to the right some words. Many lines are normal (from the left edge) but others are aligned to the right side. This text arrives from Word with the indents but no style is present at all. The