Solved

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

Posted on 2008-10-21
3
1,080 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

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…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Suggested Courses

617 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