473,386 Members | 1,752 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Table comparison using perl scripts

I am trying to connect 2 database (Sybase & Oracle) and then compare the tables in sybase & Oracle which will have similar formats. The objective is to compare 2 tables one from sybase and the other from oracle. if there is differences I would like to send those differences in the txt file.

Where can I find a similar script ?

Thank you
A L Abraham
Sep 4 '06 #1
1 4601
I am trying to connect 2 database (Sybase & Oracle) and then compare the tables in sybase & Oracle which will have similar formats. The objective is to compare 2 tables one from sybase and the other from oracle. if there is differences I would like to send those differences in the txt file.

Where can I find a similar script ?

Thank you
A L Abraham
===========================

Hi,
I can think of following steps.

1. Connect to both databases .
2. Fire the sql query on both tables
3. Write the output to two different text files
4. put each text file in an array
5. Comapre both array element by element using if loops
or
compare both text files using diff command on unix using system function of perl and redirect the output to a third text file.
then extract the contents of the file and display it on screen in tabular format.

for this you need to understand the diff command and then try to reformat the output in a way so that peopel can understand that.

i have stuck with the same situation.
i have to comapre the output of two stored procedures and report difference if any.

si i have fired diff command on both output and then dispalyed the diff in the html file.
Sep 28 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Xah Lee | last post by:
here's a interesting real-world algoritm to have fun with. attached below is the Perl documentation that i wrote for a function called "reduce", which is really the heart of a larger software. ...
2
by: noone | last post by:
Hello all, I am absolutely brand new to perl, but I understand that it is a very important aspect of web development to create dynamic web pages. I am kind of short on money, being a college...
6
by: Jens Thiede | last post by:
Q 1: I've not been using C++ much yet, but is it true that C++ is an unfriendly language to code in *OR*, as I think, is it just a case of C people, coding in C and calling it C++? Q 2: What...
12
by: rurpy | last post by:
Is there an effcient way (more so than cgi) of using Python with Microsoft IIS? Something equivalent to Perl-ISAPI?
21
by: Johan Tibell | last post by:
I would be grateful if someone had a minute or two to review my hash table implementation. It's not yet commented but hopefully it's short and idiomatic enough to be readable. Some of the code...
0
by: metaperl | last post by:
A Comparison of Python Class Objects and Init Files for Program Configuration ============================================================================= Terrence Brannon bauhaus@metaperl.com...
50
by: walterbyrd | last post by:
I don't know if this is a fair comparison or not. Any comments appreciated. - Python is more readable, and more general purpose - PHP has awful backward compatibility - PHP has a lower barrier...
1
by: foolproofplan | last post by:
I have a situation where I need to convert an xml file into two types of tables in html. I have never done anything like this before, so I have been reading up on it online. However, I am not 100...
21
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Uploading files from a local computer to a remote web server has many useful purposes, the most...
1
by: KiranKool | last post by:
Here is my code using associative array - <script type="text/javascript"> var scripts = new Array(); scripts = "PHP , ASP"; scripts = "ASP , JAVA"; scripts = "JavaScript"; scripts = "HTML"; ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.