Solved

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

Posted on 2008-10-21
3
1,078 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

830 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