Solved

SQL for comparing OLTP vs OLAP -(Source-OLTP) and Target-OLAP

Posted on 2008-10-21
3
1,077 Views
Last Modified: 2013-12-18
I am trying to write a SQL query to compare two databases OLTP and OLAP to get the table counts eg:
we have table name W_ACT in OLAP database where count is 2500, we need to see what is the count for same table in OLTP(S_ACT).we have a long list of table counts I was wondering if some one could help me in genrating those counts all at once.

Thanks
Mein
0
Comment
Question by:MEINKIYAKAROON
3 Comments
 
LVL 10

Accepted Solution

by:
dbmullen earned 125 total points
ID: 22781609
analyze the tables in both databases and query the catalog


insert into some_table
select
  (select instance_name from v$instance) db_name,
table_name, num_rows, sysdate from dba_tables@oltp
;
commit;

insert into some_table
select
  (select instance_name from v$instance) db_name,
table_name, num_rows, sysdate from dba_tables@olap
;
commit;


0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Oracle 12c patching 1 87
Oracle RAC 12c 8 73
selective queries 7 31
grant user/role question 11 28
Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Via a live example, show how to take different types of Oracle backups using RMAN.
This video shows how to recover a database from a user managed backup

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question